TorQ loads on PeachQ 0.88¶
The best test of q compatibility is other people's code: frameworks, client libraries and extensions written for kdb+. Since 0.77, a lot of that code now loads on PeachQ.
TorQ by Data Intellect¶
Data Intellect's TorQ is an open-source framework for building kdb+ applications. Its Finance Starter Pack now installs with its own scripts and loads on PeachQ, with a one-line change to its monitor page. Wooi Kent Lee asked for this in issue #56; the TorQ recipe walks through the live trade path.
Built by the community, running on PeachQ¶
-
Python with Kola, by Jo Shinonome. Upload a Polars DataFrame, aggregate it in PeachQ and bring the result back. Recipe
-
Syntax highlighting, from Maurice Lim. His highlighting pull request was the basis of the REPL colouring PeachQ ships today, and his 19 issues pointed us at real gaps. Thank you, Maurice.
- YAML with qYaml, by Andrew Steele,
is now part of PeachQ's standard library as
.yml.loadand.yml.dump.
The wider q ecosystem¶
embedPy and javakdb are open-source projects published by KX, and C
extensions build against KX's k.h. All three work with PeachQ through the
same C API and IPC protocol they use with kdb+.
-
embedPy: NumPy, pandas, SciPy and matplotlib from a q session. It passes its own test suite on PeachQ. Recipe
-
javakdb: query from Java, subscribe to updates and stream trades in with a feed handler. Recipe
-
C extensions with
2:: build againstk.h, load with2:, pass a vector and call back into q. Recipe
New guides for q beginners¶
Each guide comes with a recording you can follow along with.
- Data types: atoms, lists and the type numbers behind them.
- Casting and parsing: converting between types and reading text.
- IPC: connecting processes, sync and async calls, and credentials.
Also new since 0.77¶
q conformance has risen from 77.3% to 88.0% across 0.78 to 0.88.
- Parquet, DuckDB and S3:
-duckdbdownloads bundle DuckDB, soselect from `:trades.parquetworks locally, over HTTPS and from S3. - kdb splayed data:
getand\lread splayed tables and database roots, mapping columns on demand. - Enumerations are real
20hvalues, including in splayed data. - Readers: streaming
.csv.read, a JSON reader, andread0/read1over HTTP. - Linux arm64 downloads, and a glibc x86-64 build that loads C extensions.
- The browser REPL runs in a Web Worker and can call DuckDB.
- Markdown and YAML libraries, and standard library namespaces load on first use.
- Comparisons run up to 200x faster per element.
- Breaking in 0.88:
:pq:handles are spelled:pq:<kind>:<alias>and opened by.pq.hopen_<kind>; newqforkandqspawnkinds open q workers.
What should run next?¶
TorQ is on this list because someone asked. Tell us which framework, library or client you want to see running on PeachQ in the issue tracker.





