Re:APL compiler targeting a typed array intermediate language
by jxy on Friday June 24, 2016 @11:38PM
(#11975091)
For q/k in particular, you can just write a wrapper in q/k. Nothing stops you from doing
while[1;0N!. 0:0]
you can save the history in a table and do whatever you want.
Re:APL compiler targeting a typed array intermediate language
by uudecode on Saturday June 25, 2016 @04:16PM
(#11977804)
"Nothing stops you..."
Except my lack of creativity using k at this point.
Thanks for this.
As a k noob, I wonder: is thinking of solutions using iteration and control structures a bad habit, at least until I have command of the rest of the language?
Currently I'm using recordio to save my sessions; crude, but it works well enough:
recordio q 2>log
Would the k community appreciate this as useful, pragmatic solution?
I am a BSD /emul/linux, /bin/sh, vi-mode, ESC / user. I need searchable commandline history for q)k) and I really do not like rlwrap as a solution.
sources:
http://kx.com/q/c/c/ http://raw.githubusercontent.com/antirez/linenoise/master/li... http://raw.githubusercontent.com/antirez/linenoise/master/li...