Urgent.News

What's breaking now, across thousands of outlets.

Tech

Parsing nested lists in BQN

Three methods are presented for parsing nested lists from Advent of Code 2022 day 13 in BQN. The first approach, known as cheating, utilizes the •BQN function to handle the heavy lifting. The second method involves writing a conventional recursive descent parser. The third method employs an array-style parser. Benchmarks are conducted to compare the performance of the three approaches. The data is tested using a file containing the Advent of Code input.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at saltysylvi.github.io →

More in Tech

Exit codes in CI: what every number means and how to fix it

Exit codes in CI are the only thing a failed step gets to say about itself, which is why so much of debugging a pipeline comes down to reading one number.

  • Exit codes indicate success (0) or failure in CI pipelines
  • 0 means successful completion, others are convention-based
  • Bash reserves 127 (missing command) and 126 (executable issue)

More from Sunday 15 November →