Q idioms

14 May 2014 | ,
Share on:

A post by Simon Garland, Chief Strategist, Kx Systems.

Aeons ago, when learning APL, the FinnAPL Idiom list was absolutely invaluable. A little blue book published by the Finnish APL Association containing about 600 hand polished APL idioms.

TWEET: Resisting the temptation to tell a neighbour's young son that before they invented the lightbulb, people read by the light of their iPhones.

This was in the days before the internets or iPhones – it was portable and it was THE REFERENCE. Dragged around in my rucksack for years, scribbled on by kids, and used as a notepad when nothing else was available.

FinnAPL pocket idiom library (opened)

FinnAPL pocket idiom library (opened)

Years later Eugene McDonnell took that list and ported it – or those that made sense – to k. The original text lived quietly on the kx.com website for many years, but slid out of sight as q took the limelight.

Until … out of the blue Jay Han emailed saying that he’d ported (re-ported) the list from k to q as part of his path to learning q – and were we interested in putting it on code.kx.com? We sure were. It’s been there for some years now, but I’ve noticed that few people make much use of it as the one -l-o-n-g- page format isn’t really accessible.

So when this site came along I thought that reposting the individual idioms in homeopathic doses would be a good way to raise the visibility of the code beyond the first couple of browser screens. Having a pile of idioms hardwired into your fingers has always been looked on as an essential part of getting comfortable any of the array languages q, k or APL – I hope this epic series will help new users. Some of the more snappy idioms may even end up tweeted if I can see a way to avoid anything containing the # symbol turning into a bizarre hashtag.

UPDATE: follow or add your own tweets to #qidioms


Q for all intro to kdb+

Q for All: Introduction to kdb+ and q video series by Jeffry Borror

4 Jun 2018 |

If you are considering learning how to use kdb+, and its built-in programming language q, or have just begun to work with it, you will want to check out the latest resources for getting started. Kx has created a video series called Q for All: Introduction to kdb+ and q, with Jeffry Borror. The two-hour, […]

Kdb+ Mastermind Challenge

Kdb+ Mastermind Challenge

4 Oct 2017 | , , , , ,

The Kx Community NYC Meetup recently competed in a Mastermind coding competition moderated by expert kdb+ programmer Nick Psaris, author of the book “Q Tips: Fast, Scalable and Maintainable Kdb+.” The top four solutions were notable for the completely different approaches they took. Mastermind is a popular code-breaking game introduced in 1975 that pits a “codemaker” against a “codebreaker.” The “code,” represented by four pegs chosen from a universe of 6 colors, is picked by the “codemaker.” The “codebreaker” continually makes 4-peg guesses and is told by the “codemaker” how many are the correct color in the correct position, and how many are the correct color in the wrong position.

Kx for IoT in Asia with kdb+

Kx and the Internet of Things Asia

21 Apr 2017 | , , , ,

Adoption of connected devices and Internet of Things data analysis has become a compelling business imperative for companies and countries around the world. In Asia, the IoT revolution has unique characteristics reflecting the infrastructure and politics of the region. The conference is fittingly held in Singapore, which is striving to become the world’s first Smart City.