Qu

71 programs, whole

Not fragments. Each one is a file in catalog/ that runs as it stands — a real problem from measurement, signals, or data, solved end to end. The build runs every one of them, so the printed output and the figure on each page are what the engine produced, not what someone typed.

Read one near your own work and change it. That is the fastest way into the language, and it is why these exist.

Getting started

Signal processing

Measurement & instrumentation

Statistics & estimation

Machine learning

Computer vision

Math & linear algebra

Data & I/O

FIFO & double buffer

a small acquisition-loop simulation showing why a real sensor pipeline needs BOTH a `fifo` and a `double_buffer`, not just one or the other.

qu_fifo_double_buffer.qu

File formats

three real filesystem extensions in one flow: `touch(path)` (Unix `touch` semantics), streaming reads via ordinary `fopen`/`read_line` (no longer an eager whole-file load internally), and read-only memory-mapped random access (`mmap_open`/`mmap_len`/

qu_file_extensions.qu

JSON / CSV / XML

the data-format conversion builtin family (§ format conversion builtins, 2026-09-01, Ahmed's ask -- BACKLOG.md's "Format conversion builtins" entry): three formats (JSON/CSV/XML), each with an `xify(value) -> str` / `parse_x(str) -> value` primitive pair,

qu_format_conversion.qu

HTTP requests

a genuine HTTP(S) GET over the real network, using Qu's `http_get(url)` builtin (§ HTTP fetch, see docs/qu-language-tour.md §21). `http_get` is GET-only, has a fixed 30-second connect+read timeout, and always returns the response body as

qu_http_get.qu

Linked list & graph

a double-ended `linked_list` used to build a small road network's edge list, then a weighted `graph` over the same five towns, solved with Dijkstra's algorithm via `.shortest_path`.

qu_linked_list_and_graph.qu

Streaming files & URLs

`StreamFile(path)` and `StreamURL(url)` (§ StreamFile/StreamURL polymorphic streams, see docs/qu-language-tour.md §23) are two different constructors that expose the SAME method names -- `read_line`/`read_all`/`eof`/`close` -- so one

qu_streamfile_streamurl.qu

TCP echo server

a genuine client/server TCP round trip on loopback.

qu_tcp_echo.qu

Concurrency & performance

Simulation

Language & UI

Uncategorised