News for hackers. Stuff that matters.
Re:Arthur Whitney's one liner sudoku solver by skrebbel on Sunday October 06, 2024 @09:26AM (#41757022)
This oneliner was obviously done for the giggles, and nobody pretends it's reasonably readable code. Getting anal about definitions here is entirely missing the point. (which is "look, K lets you write extremely dense code!")
Re:Arthur Whitney's one liner sudoku solver by wk_end on Sunday October 06, 2024 @09:45AM (#41757146)
I don’t know if that’s the case, simply because all code that I see written by array language programmers looks like code golf. Even the language implementation itself!

https://code.jsoftware.com/wiki/Essays/Incunabulum

Re:Arthur Whitney's one liner sudoku solver by mlochbaum on Sunday October 06, 2024 @10:23AM (#41757371)
Is this because all the code you see is through HN or similar? No one's going to share something titled "an unremarkable script I use to help run my business" here. Not sure what your threshold for code golf is, but you can see APL written in a variety of styles by searching Github. It doesn't recognize K but does have Q, which is basically K plus keywords, obviously promoting more verbose code. Whitney originated the dense style of implementation shown at your link, and a few other implementers (including myself in the past) have picked it up, but it's not that common. For example April, GNU APL, Kap, Goal, and Uiua all use an idiomatic style for their implementation languages.

APL: https://github.com/search?type=code&q=language%3AAPL

Q: https://github.com/search?type=code&q=language%3Aq

Implementation: https://aplwiki.com/wiki/List_of_open-source_array_languages

Re:Arthur Whitney's one liner sudoku solver by jodrellblank on Sunday October 06, 2024 @01:12PM (#41758533)