#generators

[ follow ]
fromLos Angeles Times
6 hours ago

Gas is $10 a gallon at a Big Sur station. The owner explains why his prices can't go higher

"The software only goes to $10," said Leo Flores, owner of the gas station and mini-market. "I know, sometimes someone wants to make a good story because of it, but we have to tell you why."
Alternative transportation
Web development
fromCSS-Tricks
1 day ago

Making Complex CSS Shapes Using shape() | CSS-Tricks

Creating complex CSS shapes with randomness and curves is challenging but achievable using modern features and generators.
fromFortune
1 month ago

Russian attacks on Ukraine's energy infrastructure are the biggest threat to its economy, which could shrink as much as 3% | Fortune

It is pre-dawn in the historic Podil district of the Ukraine capital, Kyiv, and warm light from the Spelta bakery-bistro's window pierces the darkness outside. On a wooden surface dusted with flour, the baker Oleksandr Kutsenko skilfully divides and shapes soft, damp pieces of dough. As he shoves the first loaves into the oven, a sweet, delicate aroma of fresh bread fills the space.
Miscellaneous
#javascript
Python
fromMathspp
4 months 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.
[ Load more ]