News for hackers. Stuff that matters.
Re:Lisp in Space by kazinator on Sunday August 06, 2023 @02:17PM (#37024948)
I just put out a new release of TXR, which has a change that can reduce the nesting.

In pipes, you can now bind variables that are in scope of later pipeline elements.

  1> (flow "/usr/share/dict/words"  ; start with this path
       (file-get-lines)             ; get content as list of lines
       (let lines)                  ; bind lines variable to this list
       len                          ; take length of list
       rand                         ; get pseudo-random in [0, length)
       lines)                       ; index into lines
  "subdues"
Re:Lisp in Space by manicennui on Sunday August 06, 2023 @04:31PM (#37026328)
Clojure has several threading macros: https://clojure.org/guides/threading_macros
Re:Lisp in Space by pfdietz on Sunday August 06, 2023 @05:24PM (#37026951)
These can all be defined in CL and have been.

https://quickref.common-lisp.net/arrows.html