Passing DBs through continuations

(remy.wang)

62 points | by remywang 2 days ago

3 comments

  • tenwz1 7 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.
    • remywang 7 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...
    • antonvs 45 minutes ago
      Worth noting that’s a quote from the article (footnote 1).
    • epolanski 4 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.

      • antonvs 42 minutes ago
        As a happy sufferer from FP psychosis, I can tell you that LLMs can be a fantastic tool for learning if you choose to use them that way.
  • DevelopingElk 6 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.
    • IsTom 22 minutes ago
      I'd rather compare CPS to goto than regular imperative computation.
  • unrealhoang 6 hours ago
    • fredrikholm 5 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).