Re:Pipelining might be my favorite programming language feature
by choult on Monday April 21, 2025 @12:15PM
(#43753625)
... and then recreate the scripting language...
Re:Pipelining might be my favorite programming language feature
by stogot on Monday April 21, 2025 @12:58PM
(#43754028)
I was just thinking does this not sound like a shell language? Using | instead of .function()
Re:Pipelining might be my favorite programming language feature
by dayvigo on Monday April 21, 2025 @05:23PM
(#43756644)
Sure. But how do you write that in a way that is expressive, terse, and readable all at once? Nothing beats x | y | z or (-> x y z). The speed of both writing and reading (and comprehending), the sheer simplicity, is what makes pipelining useful in the first place.
Re:Pipelining might be my favorite programming language feature
by zelphirkalt on Monday April 21, 2025 @11:46PM
(#43758922)
I like partial application like in Standard ML, but it also means, that one must be very careful with the order of arguments, unless we get a variant of partial application, that is flexible enough to let you specify which arguments you want to provide, instead of always assuming the first n arguments. I use "cut" for this in Scheme. Threading/Pipelines are still very useful though and can shorten things and make them very readable.
One day, we'll (re)discover that partial application is actually incredibly useful for writing programs and (non-Haskell) languages will start with it as the primitive for composing programs instead of finding out that it would be nice later, and bolting on a restricted subset of the feature.