Passing DBs through continuations
56 points
2 days ago
| 3 comments
| remy.wang
| HN
tenwz1
4 hours ago
[-]
Long before AI psychosis, there was FP psychosis, clinically defined as the intense psychological response to understanding functional programming concepts like recursion, higher order functions, monads, or in this case, continuation passing style.
reply
remywang
4 hours ago
[-]
CPS was also the OG "AI psychosis" when it appeared in Sussman and Steele's AI Memo #349: https://en.wikisource.org/wiki/Scheme:_An_Interpreter_for_Ex...
reply
epolanski
2 hours ago
[-]
At least FP psychosis leaves you more educated and with more tools in your box.

Not sure what the AI one gives you at a personal level.

reply
DevelopingElk
4 hours ago
[-]
CPS is a way of embedding imperative computation into an FP language. I think they built a mini compiler for their binary relation language, which is then Jitted by Julia.
reply
unrealhoang
4 hours ago
[-]
reply
fredrikholm
2 hours ago
[-]
Continuations predate transducers by some ~40 years and are mostly used as a means of control flow, but yes they are very similar.

Transducers are specialized to data transformation pipelines, continuations are a form of control flow from which you can derive a lot of cool things (exceptions, time travel debugging etc).

reply