A port of FlightAware's dump1090, a Mode S and ADS-B decoder for software defined radios, to Zig 0.16.

Make it run: sample queue, file input, and a working main

The pipeline now goes end to end. A recording is read, converted, demodulated, decoded, tracked and printed, and the result is byte-for-byte what upstream produces. The queue that hands sample blocks from the radio to the demodulator is `std.Io` rather than pthreads: an `Io.Mutex`, `Io.Group.concurrent` for the two tasks, and a small epoch-futex condition variable because `Io.Condition` has no timed wait and the consumer needs one — it must be able to go and do its periodic work when the radio has gone quiet. The queue also owns the overlap between blocks, as upstream's does, so that neither end has to know a message can straddle two of them. `main` takes `std.process.Init`, so the `Io` implementation comes from the runtime rather than being named here. Checked against upstream on synthetic recordings, a few million samples each with real frames planted at every sub-sample phase and amplitude. `--raw` output is identical across every combination of --fix, --fix-2bit, --no-fix, --no-fix-df, --mlat and --modeac, in UC8 and SC16, and on a noisy recording where correction changes the outcome (794 frames with no correction, 816 with one-bit, 822 with two-bit — the same numbers and the same frames from both programs). That comparison found one real difference: upstream never initialises `Modes.nfix_crc`, so its default is *no* error correction and `--fix` opts in. The port had defaulted to one-bit. The default now matches, and `--fix` no longer weakens a `--fix-2bit` given earlier, as upstream's does not. Two AVR text outputs exist and disagree about case: the network one is upper, the terminal display lower. Both are reproduced as they are, because tools exist that read each. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LihwT2HJSoj6WWcUABgdSJ


Author jcollie.dev
Co-author Claude Opus 5 (1M context) Date Commit Parent 587836e8