logoalt Hacker News

Generators in Lone Lisp

39 pointsby matheusmoreiralast Monday at 1:51 PM6 commentsview on HN

Comments

hencqtoday at 5:59 AM

I like the overview given in this Stackoverflow answer [1] (based on an even earlier comment) which classifies different types of continuations:

- Asymmetric or symmetric

- Stackful or stackless

- Delimited or undelimited

- Multi-prompt or single prompt

- Reentrant or non-reentrant

- Clonable or not

Based on that these generators (or semi-coroutines as the article also calls them) seem to be asymmetric, stackful, delimited, single prompt(?), non-reentrant continuations.

[1] - https://stackoverflow.com/questions/62817878/what-are-the-sp...

show 1 reply
geontoday at 9:32 AM

This is awesome!

I haven't seen Lone Lisp before. Is it meant to be like a Symbolics Lisp Machine, where the entire userspace is lisp?

I really like using generators in typescript. They make a lot of problems much easier.

show 1 reply
bjolitoday at 9:35 AM

Fun read! If anyone is interested in more, I believe Andy Wingo has written about the implementation of delimited continuations in guile scheme over at https://wingolog.org

show 1 reply