Settings

Theme

Data analysis in Python using the concatenative paradigm

github.com

5 points by punkbrwstr · 2 comments

Reader

1 thread
eindiran

Very cool. OP, what is your previous exposure to concatenative programming? Have you written or used a Forth before?

One thing I noticed was that you opted for passing parameters to words directly, rather than placing them on the stack; it does seem to improve readability quite significantly. (eg `c(10.0) | some_word`)

The anonymous quotations for combinators are a nice addition as well.

  • punkbrwstrOP

    Thanks! I tried keeping it all stack-based, but I really wanted default arguments. In the end the parameters felt more usable even if they are "impure". I made a bunch of iterations of a postfix calculator for time series before realizing there is a whole world of concatenative langauges. The Factor paper really blew my mind.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection