Kdb+ FFI: Access external libraries more easily from q

22 Nov 2017 | , , ,

Following on from the hugely popular Python library and interface embedPy and PyQ, Kx has released an FFI as part of the Fusion for kdb+ interfaces. As with embedPy and PyQ, this FFI is open-sourced under the Apache 2 license. The kdb+ FFI is a foreign function interface library for loading and calling dynamic libraries from q code. It has been adapted and expanded upon from a library originally written by Alex Belopolsky of Enlightenment Research. With the kdb+ FFI you can now call your favorite C/C++ libraries directly from q without the overhead of having to compile shared objects and load into q using the 2: command.

Kx Technical Whitepaper: C API for kdb+

20 Jul 2017 | , , , ,

In the latest Kx technical whitepaper by Jeremy Lucid, "C API for kdb+," it is illustrated how the C API can be used to enable a C program to interact with a kdb+ process, and thereby leverage the real-time streaming and processing strengths of kdb+. The paper includes multiple working code samples, made available for reference and reuse on GitHub,  which cover a broad range of common use cases - including publishing data to, and consuming data from, kdb+ instances.