Send Feedback
Skip to content

Fusionx for KDB-X

This page introduces the Fusionx module for KDB-X. Learn what Fusionx is in KDB-X and how to use it.

Overview

Fusionx is a lightweight and extensible module for KDB-X that simplifies the use of native libraries within your q environment.

It provides pre-built wrappers around common C libraries (for example, BLAS, PCRE2, Expat), so you can call high-performance native functions directly from q without recompiling or managing dependencies manually.

Fusionx is designed for portability, performance, and flexibility. It works across all major Linux distributions and library versions. You only need to build it once, and it supports any compatible environment out of the box.

Building and extending Fusionx

Fusionx is built once and works with all distributions and library versions, eliminating the need for repeated compilation. Testing across different environments is managed using docker.q.

To add new modules:

  1. Create a new directory for your module.

  2. Define the module in the Makefile under modules :=.

  3. Implement the C wrapper (refer to pcre2/pcre2.c for an example).

Fusionx automatically detects and exposes new modules, making it simple to extend.

Next steps

  • See the fusionx documentation on GitHub for more information on how to install it and update the module.

Learn more about: