Cracking the code with code

6 Aug 2014 |
Share on:

Some of the world’s best mathematicians have been cryptologists, a few of whom played a role in geopolitics during the Second World War.

The stakes may be lower today, but the bragging rights are still worth trying for in the third installment of AquaQ’s ongoing q programming challenge:

 In cryptography one of the simplest forms of encryption is the substitution cipher, where you take each letter and pick a replacement for it. Encryption is then as simple as substituting each letter in your message with the replacement letter from the cipher. This type of encryption is usually not difficult to break, since much of the structure in the underlying information remains.

More here.


kdb+ FFI

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.

C API to kdb+

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.