A challenge for the weekend? Something from the Vector Dōjō… A
single-expression function to replace multiple embedded spaces in a
string with single spaces. E.g. q)rmeb "the quick brown fox" "the quick
brown fox" If you find yourself writing a loop,...
Last few puzzles still to write up for AOC 2022, but it’s time to Return
to the Vector Dojo. The Vector Dojo is a free, informal 90-minute video
call to practice vector-programming techniques together. It’s easy to
get started in q using expressions ...
Q derives from the mathematical notation Ken Iverson developed at
Harvard. Years before, when Ken was a young man in Alberta, a farmer he
worked for asked him if he knew how to use a certain tool. Ken didn’t.
“Well,” said the farmer, “you won’t learn...
In the latest episode of the Array Cast podcast we interview KX’s CEO,
Ashok Reddy. On this episode we speak to Ashok about his experience in
software development and the roles that KX, q and time-series computing
will play in the future.
The qbists review of Advent of Code 2022 solutions has reached Day 17,
which includes a simple console animation. (Below.) In the latest
episode of the Array Cast podcast we discuss the relevance of
recreational programming. It has a special importan...
Thanks for catching a blatant error! I can see the error and the fix but
I am more interested in what would allow you to do the same. I'm on a
bike tour right now, camping and visiting friends and family. Here's my
bike, the Invincible Summer, at San...
dc: .Q.a -1+ "j"$ sqrt %[;3] -[;8] :: / decrypt dc 371 56 20 251 1091 35
683 683 440 A sequence of unaries is close to an ideal style in q.
According to Arthur Whitney, Ken Iverson considered even infix notation
as a sequence of unaries, e.g. 2*3+4 a...
Nicely timed question! I’m just up to the chapter on composition in the
book I’m writing, Vector Programming in Q, and I need to settle a few
questions about it myself. For example, is there ever a reason to prefer
Compose to a train suffixed by @ or...
q)list1:4 7 9 7 2 8 9 q)ru:@[;1] desc distinct:: /runner-up q)ru list1 8
Using general list notation (items separated by semicolons and embraced
by parentheses) suggests a list is general; better to write a vector as
a vector literal. Composition ru ...