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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Code

Code

Photo of advent

advent

Photo of BQN

BQN

Related news:

News photo

AI Text-to-Code Startup StackBlitz Is in Talks for a $700 Million Valuation

News photo

Ruff: Python linter and code formatter written in Rust

News photo

Yek: Serialize your code repo (or part of it) to feed into any LLM