q for mortals – Version 3

The excellent Q For Mortals: A Tutorial In Q Programming by Jeffry Borror will soon be updated to version 3.
Jeff mentioned it at the recent NY user meeting.

You can read q for mortals online for free at: http://code.kx.com/wiki/JB:QforMortals2/contents
version 2 – added a new chapter on kdb database disk storage.

He said to get in touch if there’s anything you feel you would really like added.

UPDATE December 2015

q for mortals 3 is now out.

Q for Mortals Version 3 is a thorough presentation of the q programming language and an introduction to the kdb+ database. It is a complete rewrite of the original Q for Mortals that is current with q3.3. The presentation is derived from classes taught by the author at international financial institutions over the last decade. It is a series of tutorials based on q snippets intended to be entered interactively into the q console by the reader. The text takes its subject seriously but not itself. Technical explanations are augmented by mathematical observations, references to general programming concepts and other programming languages, and bad jokes. Coding style recommendations and advice to avoid gotchas appear liberally throughout. Examples are as simple as they can be but no simpler.

  • Chapter 1, Q Shock and Awe, provides a piquant panorama of the power of q and its dazzling zen-like nature.
  • Chapter 2 describes the base data types of q.
  • Chapter 3 discusses lists, the fundamental data structure of q
  • Chapter 4 presents the basic operators.
  • Chapter 5 introduces dictionaries, which associate keys and values.
  • Chapter 6 presents an in-depth description of functions and q’s constructs for functional programming.
  • Chapter 7 demonstrates transforming data from one type to another.
  • Chapter 8 introduces tables and keyed tables, the fundamental data structures for kdb.
  • Chapter 9 describes q-sql and all the methods to manipulate tables.
  • Chapter 10 presents ways to control execution of q programs.
  • Chapter 11 covers file and interprocess communication I/O
  • Chapter 12 describes workspace organization and management.
  • Chapter 13 discusses system commands and command line parameters.
  • Chapter 14 serves as an introduction to the kdb+ database. M

Available at all good bookstores.
http://www.amazon.com/For-Mortals-Version-Introduction-Programming/dp/0692573674
qTips is also good: http://www.amazon.co.uk/Tips-Fast-Scalable-Maintainable-Kdb/dp/9881389909

3 Responses to “q for mortals – Version 3”


  1. Dominik

    Any news regarding Q for Mortals v3? Can’t wait..;-)

    Cheers,
    Dominik

  2. Dominik

    I am asking again:
    Any news regarding Q for Mortals v3?

    Thanks,
    Dominik

  3. Chankey Pathak

    @Dominik: It’s available for free on the official website. http://code.kx.com/q4m3/preface/