#generators

[ follow ]
Python
fromMathspp
3 weeks ago

A generator, duck typing, and a branchless conditional walk into a bar

Generators provide lazy evaluation in Python, enabling iterable objects like range to create values on demand and avoid upfront computation.
Python
fromAntocuni
15 years ago

Improving Memory Behaviour to Make Self-Hosted PyPy Translations Practical

Deallocating unused JIT-generated loops via a loop_longevity policy dramatically reduces PyPy translation memory usage, enabling successful 32-bit compilations and lower RAM on 64-bit.
React
fromAlex MacArthur
6 months ago

I think the ergonomics of generators is growing on me.

JavaScript's recent syntactic sugar enhances programming by addressing real pain points, while the practical use of generator functions remains less established.
[ Load more ]