A kdb+/q developer's guide to integrating with the rest of the world.
You know Q. You know it's fast. You know it eats time-series data for breakfast and asks for seconds. What you might not know is how to make it talk to Python without wanting to flip a table, how to expose it as a REST API without crying, or why your Rust FFI attempt keeps segfaulting in a way that feels personal.
This book fixes that.
Q in the Wild is a practical, code-first guide to integrating kdb+/q with everything else: Python, Rust, R, web frameworks, streaming platforms, REST APIs, and the IDE that won't make you feel like it's 2003. It assumes you know Q. It doesn't assume you know everything else.
- Q in the Wild: Breaking Out of the Silo
- Python and Q: PyQ, qPython, and Getting Along
- Rust and Q: FFI, IPC, and High-Performance Integration
- R and Q: Statistical Power Meets Time-Series Performance
- IDE Support: What Actually Works in 2026
- Web Frameworks and Q: Serving Data to the Outside World
- Q IPC Deep Dive: The Protocol, the Patterns, and the Pitfalls
- REST and Q: Building APIs Around kdb+/q
- Streaming Integrations: Kafka, WebSockets, and Real-Time Q
- Developer Tooling: Linters, Formatters, and Making Q Less Lonely
- Where to Go From Here
The book is published at: https://cloudstreet-dev.github.io/Q-in-the-Wild/
Install mdBook:
cargo install mdbookOr via a package manager:
# macOS
brew install mdbook
# Linux (via cargo)
cargo install mdbookgit clone https://github.com/cloudstreet-dev/Q-in-the-Wild.git
cd Q-in-the-Wild
mdbook buildThe output is in ./book/. Open book/index.html in a browser.
mdbook serve --openThis starts a local server at http://localhost:3000 and rebuilds on file changes. Useful when writing or editing chapters.
mdbook cleanFound a bug? An outdated library version? Code that doesn't compile because a crate changed its API again? Open an issue or PR.
The bar for contributions: code must actually run, explanations must be accurate, and humor must be earned.
MIT. Use it, build on it, ship it.
A CloudStreet production. Technical, accurate, and genuinely amusing.