cancel
Showing results for 
Search instead for 
Did you mean: 

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

Alexander_Shend
New Contributor
charset=utf-8

Subject: Can't run K code from nsl.com (K n00b warning)
To: personal-kdbplus@googlegroups.com
From: Alexander Shendi
Message-ID: <322A2B6D-128C-4B54-A917-0B4C17FA7116@web.de>
X-Provags-ID: V03:K1:onkuEXbX1dOYssgSuCQ5fURUxBQCX+LEog9akuH52P7v9WHVKZ5
ryfYKihvKdEcrNzjdjPS5OPNPJkwT2VaT5LoUzGRl8rlDkWDuoVjYBMNPdPzSo94c47O8/i
LhkpYmvv83KNjMCBATyd/KPE4cvESQZvlZ2IIwST3A+hrbPr8ZXrbbDmQf47ELVcTifuay3
/u0+fpixCp+Wino16u7Bg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:IMKeogNOds0=:FoiJgkAqt69ah/gRzTfijF
hybMKyJMpJoRmtjfP6cT6bqNhvWMtLzfmHYhengyboa2efCKSjCqEwx5yS3ozkMz2R5xKNlWQ
VmuRZ4MYCI+GB+xmydD2jU7XefGHyHkP9tQae3V+3iSqmH07p4z6sjzOtYOU33Dl9fwpMKcfT
wudueAuSTO8eTr7aS0vlOwdWO8pJIRigcUxmHO7pGGwgVEiRBd7V2BSF/Dk0dEattfQ7WY90g
EKgLRvkNj7T6Cz+2iiCJaGjvO0UujFL3FEbdj9FzYVwUY2iTDZWyxDLEweUmnH04cNK05s8T0
Ad/KM7egSKa7wwJZz7tbLlH3eFimJRpKGBFKzDcDThL7zfRfirhjQAGi+TUP9oo9I0ND2PMad
JhwK7QWkEC+PRIMlEMRKN09xBa27yekpaE5XVGhD21pPnPdITX6MlDBAMk5XFtxhSi9zJG9wU
tIVfuxCytdjbyBzNEARRO17LuqmTMvjtAateg8nkA4Qd86wHNsf/9risiT/bTiQibnMkzqrKQ
Yg3hV9Ong4mmV7RQhO+LtTgpFCSKy3BJWFfa4RSc0rm3l/VaO4bRPbV9++EEEiXxZq+/jV0dy
wk5HlavYl8UTjV6JNrVcup7Hxy28NwhybKmrtHP4uFgvu+jzQ6dYbX/8Cvk82eY8oYpOiv4IR
4kxYbwpMJccl74cY51hID07IOz0TuxBlSwdcTMzE939Zl2CMoFAyely+huMiaxJwQPU7V6ZJa
QOwyXYOqa7TmawMmuCnFPaHpRya/o6KwDqZnNsw6HIh6zuyNXdmXG3ejHI5WMFLwxtKB1eGVV
Vz+8gpqJ6p48VxxBds3YzeWGoQmuCHYaR94cRs0ADXTIyOfnExEZz5qTiJkb/iVEAcYHzUpW9
+O8ESEBElXpGV0bdB6wLwN94HerrJPDPFjrkGaOtXFDgDzrnnwmNcLoaceTdJFGGbut3jrWJU
8RlvO+t2uFgT8WV0sB4H18Ad7Aa/stXN6uhnkaHRrUQ8sXXHfpW5X0OWh/49zEdBnV3C5Oa7w
UghhkaChfYnr9HWVsZDv5c7eqy672uOQr/ef1i0k8lovAWFqXGk3kosHqK0f3yWGuPaEjnGYP
A+b9VC9B1mMT/iA3ygq3z9edmHOwa3ILnx3D25E9oU6OSm4jsBTtYaP2saPJruw6OA9+WdgAE
kNNU9/xb8WAomC8ypJ+BJygG9FqC15bU9tGsFP9HVYlpNERa9xSyeCMVwYrhDnslzH8WwhQPb
yQdGqdX8tw5COe2FL

So I wanted to run the spreadsheet code from: http://nsl.com/papers/spread=
sheet.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=3D"xterm-256color" TTY=3D"/dev/pts/0" COLUMNS=3D"104" LINES=3D"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] ()

)\\
alexandershendi0@penguin$ exit
exit

Script done on 2021-06-01 08:29:10+02:00
[COMMAND_EXIT_CODE=3D"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.



=2D-
Ceci n'est pas un courriel.

2 REPLIES 2

charlie
New Contributor II
New Contributor II
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

sa1
New Contributor

To: personal-kdbplus@googlegroups.com
In-Reply-To: <322A2B6D-128C-4B54-A917-0B4C17FA7116@web.de>
Message-Id: <8C1885D6-098D-4D69-9453-3572C201DBD8@nsl.com>
X-Mailer: Apple Mail (2.3654.60.0.2.21)
Authentication-Results: mfg.siteprotect.com; auth=pass smtp.auth=sa@nsl.com smtp.mailfrom=
X-Originating-IP: 64.26.60.150
X-SpamExperts-Domain: mfg.outbound
X-SpamExperts-Username: 64.26.60.150/31
Authentication-Results: mfg.siteprotect.com; auth=pass smtp.auth=64.26.60.150/31@mfg.outbound
X-SpamExperts-Outgoing-Class: ham
X-SpamExperts-Outgoing-Evidence: Combined (0.20)
X-Recommended-Action: accept
X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+bYffHq4XmcU0GFD6qZI3PPUtbdvnXkggZ
3YnVId/Y5jcf0yeVQAvfjHznO7+bT5zioTItKW2Bt4OFe9doXRptgqocyKcb0i7hcu6L922gPbFw
UM6oguH7gOpTzNootZdeVjRQmO8hgFJ5EoBy28AVBMmyNbDn7R5kilAhwr3KtCfMSIIugTT4+3ce
GAuJssf0sWGQnUvSr3ipj8ui9IaPwXftbQEFnTQGIdn9up74ZUpaF0eMYoDPo5EPYofbBQrMiPFj
sA6uV7Gm3lwVQOs4M31TM1ch3HlZieC31fbxJgjwG04n/pTDdCpxQ1d24/WZOZh/196Uh/xDSW9g
kA3LEWgKIJ7Ay0RVJqlA03GHx7ObK052/jLuewOcI5amMxstChAJ8MhPXbXvhZAyklffRAwX31WV
Y5lWjWxuGSRuxeU4qipPeA6CsZuJ5e5ru0uU/86+VeHQfEPfz3YUMMqBqSIGAS5g6SocktP6HR2V
1EsCjvyNFCcOipkD0BkCnId6fJD/2oHVey6Nh14iDYuB1fbAJnEOHT0ETQv8a/cJbovhSJcbnX/H
QqL/X9rNCJCc6iESJvKm1NV8gkr+Wu8ScVDXinOVyuIpITQ9z3M3DF1PTA35GXan5bwmEe7cWkM0
Wd+uqA1UOBZ6K6aPlAFPnUh5SZtOmD64ZjhZzwRA+3buY2/zN9evqmMYUbFOXs4Ts+4i4xmEi49n
kTAaQKlWt8ELwLq0wGxzmpBg6sHtGS32EoSnB0KQ6B3xt8UP9IrQ8Tlzq8vJ6SWV+m1DUr+U0Xx3
hgsz+SWXRDtZPpsoQz/0s9s5tcMc7yGHSfMTVje/LXcRyNDlrjoiSZxZ0DIR/mqacrypSHJmhNbq
aBr5TsA/9xGgj7taJxWtHZ97uYqdHt/bmcdsvIfkhxaJkJVT647lNwN4qOsSZg+fYhVZG+ptlz8P
xgI8cNc056NAQ4IY4L7u6QJ/jXXAPItovk04xiisdaPtfmYpTBMKaRxJRvhvAMN3GhqW5XDFV4dt
ipsA5OZ1iIiHLYXU2qLZCGq0nud0Eldt9znR76WK7wkEDhPkyEu+2hhLecHWUDz4bETkvzBcS2e9
UPCJijNvQYO2
X-Report-Abuse-To: spam@semfq01.mfg.siteprotect.com

alexander - much of the code on nsl.com is k3. the version of k from kx =
is k4.

thanks for looking

sa