On Jan 27, 2009, at 16:28, cliffc wrote:
> I think TCO is very doable and likely to appear in some common JVMs at
> some point.
> Continuations, on the other hand, are likely to require a massive
> infrastructure overhaul.
TCO would already by a step forward: it would make continuation-
passing
I think TCO is very doable and likely to appear in some common JVMs at
some point.
Continuations, on the other hand, are likely to require a massive
infrastructure overhaul.
Cliff
On Jan 26, 4:38 am, Rich Hickey wrote:
> On Jan 26, 3:20 am, Konrad Hinsen wrote:
>
> > On 25.01.2009, at 21:33,
On 26.01.2009, at 20:58, Mark Engelberg wrote:
> On Mon, Jan 26, 2009 at 4:38 AM, Rich Hickey
> wrote:
>> Continuations, like TCO, will have to come from the JVM.
>
> Perhaps a better question to ask is whether it is possible to
> implement yield without user-available continuations. I assume
On Mon, Jan 26, 2009 at 4:38 AM, Rich Hickey wrote:
> Continuations, like TCO, will have to come from the JVM.
Perhaps a better question to ask is whether it is possible to
implement yield without user-available continuations. I assume it's
possible since Python has yield, but not continuations
On Jan 26, 3:20 am, Konrad Hinsen wrote:
> On 25.01.2009, at 21:33, Rich Hickey wrote:
>
> Something else that would be nice for implementing generators and
> thus streams is Scheme-style continuations. That would permit to
> write generators like in Python, as loopy code with "yield" calls
>
On Jan 26, 3:20 am, Konrad Hinsen wrote:
> On 25.01.2009, at 21:33, Rich Hickey wrote:
>
> > Looks interesting. I made AStream.Iter an IFn, so you can try that.
>
> Thanks! It works fine, the changes to stream-utils are checked in.
>
> There is just one situation that still requires a wrapper:
On 25.01.2009, at 21:33, Rich Hickey wrote:
> Looks interesting. I made AStream.Iter an IFn, so you can try that.
Thanks! It works fine, the changes to stream-utils are checked in.
There is just one situation that still requires a wrapper: it is not
possible to make a stream directly from a s
On Jan 25, 11:10 am, Konrad Hinsen wrote:
> For those who like me are playing with the stream-enabled branch of
> Clojure, there is a new module stream-utils on clojure.contrib:
>
>http://code.google.com/p/clojure-contrib/source/browse/trunk/src/
> clojure/contrib/stream-utils.clj
>
> O
For those who like me are playing with the stream-enabled branch of
Clojure, there is a new module stream-utils on clojure.contrib:
http://code.google.com/p/clojure-contrib/source/browse/trunk/src/
clojure/contrib/stream-utils.clj
Obviously this is very experimental, and absolutely no