Re: core.async -- lazy evaluation on take

2015-02-16 Thread janpaulbultmann
Make the channel unbuffered, that way it turns into a rondevouz a la ada and every producer will block until a consumer takes something from it. cheers Jan On 16.02.2015, at 21:45, Huey Petersen eys...@gmail.com wrote: Hello, I was playing around with having a lazy sequence abstracting

Re: If code is data why do we use text editors?

2014-11-17 Thread janpaulbultmann
To be honest I think that all the whitespace retaining approaches kinda miss the point. The reason code is mannually formatted is only because it consists of characters in a grid aka text. To me manual formatting is a chore, most of the time I rely on paredits or codemirrors auto formatting

Re: If code is data why do we use text editors?

2014-11-17 Thread janpaulbultmann
Example 1: I'm pretty sure one could create a set of rules with penalty scores, like latex does, for rendering the prettiest, most dense code. (- (some lengthy collection expr here) (map f2) (reduce f1 #{})) But I find this to be the most readable. [[(dec x) y wh