Lalish-Menagh, Trevor on 21 Oct 2011 13:45:56 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Functional Fall tomorrow


My notes are up at
http://trevmex.com/post/11743420266/continuations-functions-and-jumps

Thanks for everything Kyle!

Yours,
Trevor

On Thu, Oct 20, 2011 at 10:36 AM, Kyle R. Burton <kyle.burton@gmail.com> wrote:
>> I took the liberty of writing a few examples in ruby (since it has
>> continuations) that I could walk through during the discussion if
>> people are interested:
>>
>> Âhttps://github.com/kyleburton/sandbox/tree/master/examples/ruby/continuations
>
> Trevor asked me to forward the code examples I used last night.
> They're at that link above in my sandbox project on GitHub. ÂAlso
> included is the other code I was typing up that mirrored the SICP code
> where you define storage (a cons cell) with nothing but a lambda
> (closure) and a conditional (in this case: if, but you could do it
> with any conditional). ÂKeep in mind that doing it this way is the
> opposite of efficient, it's just beautiful (to me) that you can do
> something like invent storage with such basic constructs.
>
> Michael Glaseman also pointed out that the Ruby examples won't run
> with Ruby 1.9, since (I think) they don't (yet, though I think it's
> coming) have support for continuations where they did in Ruby 1.8.x.
>
> Other technologies that you can use to explore continuations:
>
> ÂUncommon Web:
>
> Â ÂCommon Lisp, delimited continuations
> Â Âhttp://common-lisp.net/project/ucw/
>
> ÂWeblocks:
>
> Â ÂCommon Lisp, delimited continuations
> Â Âhttp://weblocks.viridian-project.de/
>
> ÂChicken:
>
> Â ÂA full R5RS Scheme. ÂThe full monty: call/cc
> Â Âhttp://common-lisp.net/project/ucw/
>
> Â ÂI've done some minor work with Chicken and I think it's a great
> Â ÂScheme implementation (fast, easy integration with C libraries)
> Â Âand has lots of libraries (for a Scheme), and a cpan/gem style
> Â Âlibrary system:
>
> Â Â Â http://wiki.call-cc.org/chicken-projects/egg-index-4.html
>
> ÂClojure:
>
> Â Â(delimited) https://github.com/swannodette/delimc
>
>
> Unfortunately (?) these are all Lisps, which are the only technologies
> I know if where you can commune with continuations outside of ruby
> 1.8.
>
> Does anyone else know of other approachable languages that support
> full (or even delimited) continuations?
>
> Thanks for all the great discussion last night. ÂContinuations were
> definitely something I wanted to learn more about and y'all helped me
> with it a lot.
>
> Regards,
>
> Kyle
>
> --
> Twitter: @kyleburton
> Blog: http://asymmetrical-view.com/
> Fun: http://snapclean.me/
>



-- 
Trevor Lalish-Menagh
trev@trevmex.com
484.868.6150 (mobile)
trevmex (AIM)