Is function overloading supported in q?

Despite the fact that many native functions are overloaded, no. The last function definition simply overwrites the prior ones.

q)f: {[x]}
q)f: {[x; y]}
q)f
{[x; y]}
q)

Can q script be compiled down to native code?

We are not aware of an available q-to-native-code compiler.

If your goal is to prevent clients from being able to read your code, see this related faq.

What data structures does q provide out of the box?

The q language has only 3 non-atomic data structures:

  • lists
  • dictionaries
  • tables

However, q does use other structures internally (e.g., hash tables) to enhance the performance of operations on the above language-level structures.


This work is licensed under a Creative Commons License.
The views and opinions expressed herein are those of the authors and do not necessarily reflect those of any other person or legal entity.
Kdb+ is the registered trademark of Kx Systems, Inc.