home.social

#continuations — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #continuations, aggregated by home.social.

fetched live
  1. In _Anatomy of LISP_, John Allen introduces continuations in Chapter 4, Imperative Constructs in LISP, section 4.7, `eval’ with Explicit Control.
    This helped me a lot to understand continuations back when I first read that book.

    He writes:
    «We now propose to explicitly *pass along* information about what to do after the current computation is completed.
    This information is called the *continuation*.»

    In the implementation shown, a continuation is a function supplied as the sole parameter `c’ of function `ceval’, the evaluator; `c’ is also a non-local variable in auxiliary function `ev1’.
    The whole evaluation algorithm works with a tad of higher-order mutually recursive wizardry.

    Note: the bibliography includes two items related to the handling of non-local variables in the latter, though the book doesn't have explicit references to the first one.
    Moses, J., ‘The Function of FUNCTION in LISP’, _SIGSAM Bulletin_, p. 13–27, July 1970.
    Weizenbaum, J., ‘The FUNARG Problem Explained’, unpublished memorandum, M.I.T., Cambridge, Mass., 1968.

    ***

    This book was published in 1978.
    The algorithms in it are presented in the language of M-expressions (in my view, it is a purely algorithmic language, as distinct from a programming language).
    Drawing a weak analogy, to me the exposition evokes texts on differential and integral calculus from the age of Leibniz, Newton, and Euler, before the transformations by Cauchy, Weierstrass, and others.

    «About the Author
    JOHN R. ALLEN is a member of the technical staff of the Hewlett-Packard Research Lab, Palo Alto, California.
    After graduating from Michigan Technical University, he earned an M.A. degree from the University of California at Santa Barbara.
    Mr. Allen did graduate work in computer science at Stanford University, where he was later a research associate.
    He has taught at the University of California at Los Angeles and Santa Cruz, and at San Jose State.»

    #ComputerProgramming
    #ComputerScience
    #Continuations
    #Lisp

  2. 🚀 Ah, the endless quest to make #programming as complex as possible! Here, our brave author attempts to convince us that using #continuations to abstract effects is not only a good idea but somehow necessary. 🤔 Spoiler: It's just another way to confuse your teammates while pretending to solve non-existent problems. 🤷‍♂️
    crowdhailer.me/2026-07-15/abst #complexity #software #development #team #collaboration #tech #humor #HackerNews #ngated

  3. @screwlisp

    Coincidentally, I assume, Abhijit Rao posted on LinkedIn earlier today a very interesting blurb, reporting on his use of this condition handling structure in conjunction with LLMs.

    (Works for me in an incognito window, but you may not be able to see past the first comment if you don't have a LinkedIn account.)

    linkedin.com/posts/quasiabhi_c

    The blurb references this more detailed account of the work, which I haven't been through in detail yet:

    quasilabs.in/blog/2026/02/07/c

    #CommonLisp #Lisp #ConditionHandling #Errors #Restarts #Continuations #ErrorHandling #ConditionHandling #LLM #LLMs #AI #Modularity #QuasiLabs #Reflection #Introspection #MetaProgramming

  4. The review of an #esoteric tome on #continuations blunders on like an over-caffeinated grad student's fever dream 💤💻. The author can't decide if it's groundbreaking or a $100 paperweight 📚❓. Spoiler: it has no exercises - because who needs practice when you've got #theoretical #ramblings, right? 🤷‍♂️
    swatson555.github.io/posts/202 #literature #HackerNews #gradstudent #HackerNews #ngated

  5. Вызовы функций, стек, куча и продолжения. Часть 2

    В первой части статьи мы рассмотрели общую семантику применения функции в различных языках программирования и реализацию императивного вызова функции в машинном коде в стековом и бесстековом вариантах. Теперь мы рассмотрим теорию и практику реализации императивного вызова функции в модели продолжений (continuations): что такое продолжения, зачем нужны явные и неявные продолжения, как при помощи продолжений реализовать различные используемые в языках программирования управляющие конструкции.

    habr.com/ru/articles/897812/

    #стек #продолжения #continuations #Scheme #управляющие_конструкции

  6. Just been thinking about a function that employs the tenth commandment from The Little Schemer: "Build functions to collect more than one value at
    a time.". Found a catchy phrase for it: "Wrap it till you make it."

    #scheme #programming #thelittleschemer #continuations

  7. Async/Await в C#. Часть 5. Функция-перечисление и цикл через рекурсию, асинхронный вызов без Async/Await

    В одной из предыдущих статей , посвященных анализу этого (все того же) Поста , я написал что «не возьмусь переписать всю эту хитрую логику, связанную с формированием последовательности вызовов сгенерированной функции на человеческом языке». Но подробно разбирая 5-ю главу того Поста у меня это вроде бы все-таки получилось сделать. Прошу вас оценить результаты этого труда. Там где мне придется цитировать (назовем это так) содержание исходного текста в переводе, оно будет выделено подчеркнутым курсивом .В предыдущей статье я попробовал поэкспериментировать с особым форматированием, но это не всегда удобно читателю, на сколько я понимаю.

    habr.com/ru/articles/790944/

    #async/await #continuations #task #асинхронное_программирование #параллельное_программирование

  8. First part of my chat with Adam Bien on his Airhacks podcast about my career.

    We talk about #java, #opensource, my #RIFE framework, #continuations, #gradle, my build tool #bld and many other things

    airhacks.fm

  9. Async/Await из C#. Головоломка для разработчиков компилятора и для нас

    Я рискну все таки продолжить изложение своего понимания Поста: How Async/Await Really Works in C# , которое в предыдущей статье получило название “ортогональный взгляд”. Также, недавно мы познакомились (возможно несколько преждевременно) с изначальным определением концепции SynchronizationContext на которую ссылается автор этого Поста. Это не перевод. Это изложение содержания Поста на разных уровнях раскрытия сущностей и их взаимодействия по мере развития (эволюции) моего понимания тех мыслей и идей, которые, как мне кажется, хотел донести до читателя автор Поста Stephen Toub. То есть я пишу о том, что и как я понял из этого текста и стараюсь обосновать это свое понимание из найденного материала по теме, а вы одобряете или критикуете/уточняете то, что у меня получилось сформулировать. Таким образом мы самым естественным образом получим хорошую и полную интерпретацию содержания статьи на нашем родном языке, надеюсь, да еще и обогащенную критикой возможных заблуждений происходящих из недостаточности или неполноты изложения, например, по этой теме. В этот раз попробуем сформулировать задачу, которую решает компилятор, то есть те разработчики, которые разрешили нам пользоваться конструкциями Async/Await в C#.

    habr.com/ru/articles/784630/

    #async/await #асинхронное_программирование #паралельное_программирование #continuations #tasks #threadpool

  10. I've already did a "lisp project of the day" post about cl-cont (40ants.com/lisp-project-of-the), but today I've decided to create a more realistic example of usage.

    Let's imagine we want to create a dialogue system which on each step returns a callable. User should call the function and give it the response.

    Here is how a simple dialogue will look like without continuations...

  11. It's kind of cool to see how an old project of mine has inspired others that took it to a new level.

    By random encounter I found two projects that improved on the old Javaflow continuations implementation:

    github.com/offbynull/coroutine
    github.com/vsilaev/tascalate-j

    It's a bit of a shame they didn't come together at Apache.
    After all it was the lack of people that let Javaflow die in the sandbox.

    #java #apache #continuations

  12. Finished the RIFE2 manual for the v1.0.0 release. The manual ended up being 37 chapters and I'm sure it's still going to grow!

    Now I need to finish some Javadocs and it'll be time to start announcing the next #RIFE generation in the #Java communities!

    #web #framework #continuations #productivity

    github.com/gbevin/rife2/wiki

  13. I've been experimenting with other useful systems that can be built on top of RIFE2's native #Java #continuations engine. I came up with a really small and lean #workflow engine that suspends tasks in memory with continuations, not putting threads in wait states but only waking them up when there's actual logic to execute.

    If you're curious, there's a concise example in the RIFE2 tests:
    github.com/gbevin/rife2/tree/m
    github.com/gbevin/rife2/blob/m

  14. Just finished solving day 13 part 01 of #adventofcode: notabug.org/ZelphirKaltstahl/a

    Parallelized it, even if input size does not really require it.

    Learning: One can use continuations to avoid encoding the 3 comparison (less, equal, greater) results into 3 values 💡

    #programming #coding #guile #scheme #parallelism #continuations

  15. Complete number guessing game webapp in #Java with #RIFE2 and #continuations, all the code is here, including server startup.

    You can learn more about web continuations from the RIFE2 docs:
    github.com/gbevin/rife2/wiki/C

    #webdevelopment #framework #pragmatic #productivity

  16. RIFE2 v0.9.0 provides support for #Java #web #continuations again, including several examples and documentation.

    github.com/gbevin/rife2/wiki/C

  17. Stoked that RIFE2's web #continuations are now working in plain #Java with the latest JRE versions!

    rife2.com

    #rife2 #web #programming

  18. I just learned about call/cc (#continuations) by reading this article, that was pretty crazy stuff community.schemewiki.org/?call

    Tellement c'est bordélique :ablobcatknitsweats:​

  19. @AbbieNormal @jeko

    This is what I found interesting:
    hhyu.org/posts/generator_and_c

    And this is represents what happened to me these days:

    "I suspect that in the age of cloud computing and big data, where lazy evaluation is becoming increasingly important, continuation will become more prominent, like many other concepts in functional programming."

    😀
    #scheme #functional #continuations

Share on Mastodon

Enter the server where you have an account.