What Languages is Arthur Whitney Style Code Possible in?

9 points by veqq


The goals of modern C-replacements seem exactly opposed to it which really obscures things and mostly results in mocking responses, but I'm curious where else you can do stuff like: https://github.com/kparc/ksimple using macros to succinctly overload core operators into a DSL.

doug-moen

My first guess is "all of them". The essence of Whitney style is to find a set of idioms in the language you are using to write extremely terse code. Macros can be leveraged for this, but macros are not a requirement for writing terse code. APL has no macros. You can write extremely terse code in Haskell without macros, using functional programming idioms, such as point-free programming.

It seems to me that Go would be more challenging, but I'm not a Go programmer, so I'll leave that puzzle to others.

PuercoPop

Ruby https://github.com/camping/camping/blob/main/lib/camping.rb

Prolly Common Lisp or at least you can hack de readtable

Jelly is a Golflang it is likely https://github.com/DennisMitchell/jellylanguage

Although my take away from APL is to learn to read code, not scan it.