Get the latest tech news
Advent of Code 2024 and BQN
s usual I've been participating in this year's advent of code challenge and as usual I've picked up a new language to learn. This year, I wanted to try out an array language (more specifically, an "Iversonian" array language).
But debuggers - contrary to popular misconception - isn't just for fixing bugs, they're also an excellent tool to explore and inspect working programs. But with combinators, lightweight functions & the rich set of builtin array operations, you can write some really terse code packing a lot of punch. And so I found myself writing a good chunk of the solution in "imperative" style with the various escapes hatches at first and then rewriting them to be more array-like once I gained a better understanding of the problem.
Or read this on Hacker News