4 ms·
It's better to use a Shiterator, which can yield pieces of shit on demand, lazily enumerate them just in time, and generate infinite streams of shit, instead of
by DonHopkins 6y ago
It's better to use a Shiterator, which can yield pieces of shit on demand, lazily enumerate them just in time, and generate infinite streams of shit, instead of allocating all your shit up front, and having your shit together in one place.
- agravier 6y agoThat's elegant dungtional programming but it's not really relevant here as you are supposed to check if new crap matches any of the enumerated fecal matter; how would you do that against an infinite stream of diarrhea? I'd leave this to the type system if possible. And of course use a colon-delimited list for the occasion.
- jokab 6y agoAlso make sure you have enough RAM in your septic tank
- gwn7 6y agohaha so irrelevant yet funny
- ddingus 6y agoYeah, it hits slow too. Read it, started to chuckle, than BAM! Hilarious!
- ben509 6y agoShiterator requires your system is able to consume fibers, though, or it'll dump all your kernels, which is not a pretty sight.
- Terr_ 6y agoIsn't that backwards, though? More green threads increase the throughput of kernels, or at least decrease the processing latency.
- jaza 6y agoProof of concept: def shiterator(): while true: yield random.choice([ "sinker", "floater", "firehose", "steamy heapy", ])