Better HN
topnewbestaskshowjobs
Log inSign up

tubular

1 karma · joined Oct 20, 2014 (12y ago) · 2 submissions

classically trained kolmogorov complexity calculator python js php ruby scheme lua j k/q hn is bad and you should feel bad for using it
Submissions

comment 7mo ago · link · parent

the first few paragraphs lay out the precise extent to which this matters. there's a snippet of code (`x^x*/:x:2_!100`) in a language (k7) using a feature ("rank-sensitive" set difference) not present in previous langs (before 2019); the prev langs' workaround (razing `,/` the table into a list) is bothersome (to chrispsn) so his article examines some alternatives.

chrispsn is sharing the map he drew of the rabbit hole he explored. it involves a lot of haggling with "depth", which is when you nest a list in another list: good for organizing your data, but bad for producing long vectors over which your programs could vectorize. so if you want this to matter more broadly, you can consider it a meditation on some of the mechanics of that, i.e. how to flatten some deep constructions in algorithms, and how to generalize shallow operations to apply at depth

comment 12y ago · link · parent

A mite of pedantry: the J train (a b c d) is a hook with a fork on the right, and so dyadically acts like

a(x, c(b(y), d(y)))

Roger himself has dismissed [0] hooks as an unfortunate result of J4's myriad train rules, made in the name of tacitable everything, which I lament because for some reason, tacit programming is just so much more satisfying than normally solving the problem.

[0]: http://www.jsoftware.com/jwiki/Essays/Hook%20Conjunction%3F