Can't run K code from nsl.com (K n00b warning)

43 views
Skip to first unread message

Alexander Shendi

unread,
Jun 1, 2021, 3:42:46 AMJun 1
to personal...@googlegroups.com
So I wanted to run the spreadsheet code from: http://nsl.com/papers/spreadsheet.htm

I duly downloaded the files, then downloaded kdb+ from kx.com.

Here is the log of my interaction with the system:

Script started on 2021-06-01 08:28:22+02:00
[TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="104" LINES="23"]
alexandershendi0@penguin$ q/l32arm/q
KDB+ 3.5 2017.10.11 Copyright (C) 1993-2017 Kx Systems
l32/ 8()core 2782MB alexandershendi0 penguin 127.0.1.1 NONEXPIRE

Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)\
\l q/s/s.k
'r
[0] (<load>)

)\\
alexandershendi0@penguin$ exit
exit

Script done on 2021-06-01 08:29:10+02:00
[COMMAND_EXIT_CODE="0"]



I have changed line 3 of s.k to:

A:(`char$(97+!26);`char$(48+!10))
since _ci doesn't seem to be available in this version of K.

Also total K/Q n00b warning!

Unfortunately I can't make head nor tail of the error messages.

Additional question:
I'd like to start in "K mode". Is there any way to do so?

Many thanks in advance for your assistance.



--
Ceci n'est pas un courriel.
Message has been deleted

Charles Skelton

unread,
Jun 1, 2021, 4:07:11 AMJun 1
to personal...@googlegroups.com
Hi Alexander,

that particular example uses k3 which had a built-in GUI. k3 was superseded by k4, which underpins kdb+; Kx stopped distributing k3 more than 10 years ago. kdb+ does not have a built-in GUI, prefering to push UI to client apps.

Within kdb+, you can toggle between q and k modes via \
e.g.

q)\
  !10
0 1 2 3 4 5 6 7 8 9
  \
q)

hth,
Charlie

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/personal-kdbplus/322A2B6D-128C-4B54-A917-0B4C17FA7116%40web.de.


--
Charles Skelton | Kx | cha...@kx.com

stevan apter

unread,
Jun 1, 2021, 9:32:53 AMJun 1
to personal...@googlegroups.com
alexander - much of the code on nsl.com is k3. the version of k from kx is k4.

thanks for looking

sa
Reply all
Reply to author
Forward
0 new messages