Solving Advent of Code with Jq

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • advent-of-code-jq

    Solving Advent of Code with jq

  • A nice little Makefile driving each day too:

    https://github.com/odnoletkov/advent-of-code-jq/blob/master/...

    And I somehow just learned about asciicinema from it:

    https://asciinema.org

  • asciinema

    Terminal session recorder πŸ“Ή

  • A nice little Makefile driving each day too:

    https://github.com/odnoletkov/advent-of-code-jq/blob/master/...

    And I somehow just learned about asciicinema from it:

    https://asciinema.org

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • aoc-2022-jq

    I'm doing Advent of Code 2022 in jq!

  • i’m doing the same thing on my github :D. i think my code looks a bit cleaner too… ;)

    https://github.com/pingiun/aoc-2022-jq

  • jq

    Discontinued Command-line JSON processor [Moved to: https://github.com/jqlang/jq] (by stedolan)

  • Repo author here, let me promote jq a bit – it's much more than a simple command-line JSON processor you know it for:

    * It is a generator-based language which means you operate streams of values rather than single values. Takes some time to get used to, but you'd never want to go back to traditional model, at least for data processing. See 'Generators and iterators' section of the man page: https://github.com/stedolan/jq/blob/cff5336ec71b6fee396a95bb...

    * Designed for CLI, it makes it easy and even pushes you to express your program as a single pipeline. You rarely need variables, functions or any control structure. And pipelines are great to build iteratively, debug and compose (see https://jqplay.org, https://jqterm.com)

    * Core language is small but powerful with features like slicing, destructuring, complex assignments and error handling. And you are already an expert in it's (immutable) data structures – it is just JSON

    * Batteries included in the stdlib – regex, path operations, C math/dates, algorithms. Modules are supported, but I did not need any dependencies for solving Advent of Code.

    * jq is ubiquitous. Often pre-installed, tiny binary, no dependencies, basically single version (ok, awk is better – anything else?)

    Being a go-to tool for JSON is sort of a double-edged sword – people just don't look past that. But nowadays JSON is the format for data, everything is convertible to it. And you can feed plain text into jq using --raw-input flag. i.e.:

        jq -nR '[inputs]' /etc/hosts

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • [2023 Day 8 (Part 2)] The slot machine way!

    2 projects | /r/adventofcode | 8 Dec 2023
  • Asciinema: Record and share your terminal sessions, the simple way

    1 project | /r/patient_hackernews | 6 Nov 2023
  • Asciinema: Record and share your terminal sessions, the simple way

    1 project | /r/hackernews | 5 Nov 2023
  • Asciinema: Record and share your terminal sessions, the simple way

    1 project | /r/hypeurls | 5 Nov 2023
  • Asciinema: Record and share your terminal sessions, the simple way

    6 projects | news.ycombinator.com | 3 Nov 2023