the k tree

https://app.element.io/#/room/#ngnk:matrix.org
643d ago – ngn
71

export all events for this room

Starred posts

1 2 3
Feb 11, 2022 14:50
I've written some (mainly) ngn/k docs; it's not finished, but someone might find it useful xpqz.github.io/kbook
6
ngn
Oct 17, 2021 17:02
Jul 12, 2021 08:08
new article: WAR ON RAZE
5
Jan 27, 2023 23:46
it's one of these small scale things, kinda like local politics, where the contributions of individuals essentially are the thing
2
ngn
Mar 9, 2021 23:06
Sep 3, 2021 05:50
Achievement "Back to the roots" (20,000 pts): implement full APL interpreter in K
4
ngn
Aug 2, 2021 07:03
6
Q: Language of the Month for August 2021: K

BubblerIn accordance with our meta agreement, since one candidate received more votes than the others, we have a new featured language! Throughout August 2021, our Language of the Month will be: K What's a Language of the Month? See the meta post for nominations. In short, during August, those who wis...

4
ngn
Jul 8, 2021 10:34
empty highlighter works well for k :)
4
Jul 3, 2021 14:19
Announcement: k.miraheze.org is now live!
4
Mar 2, 2021 18:23
new language: https://ktye.github.io/j.html
the core is 2576 bytes in webassembly.
animations: https://ktye.github.io/js.html#eJyLTi9KTc2LTSsuqcxJ5YqONlQwjC0pSswrzlGINlAwUDAFodi0otTkktjotKLE3NRYKwDXPhFk
4
ngn
Oct 2, 2021 10:24
this is playable:
https://ngn.bitbucket.io/k/#eJxFkW+TmjAQxt/zKXKJlb9CQHttd8fpfQLHsS+RKVEicFL0gA564n32C1htZpLNZn+bJ/Mkfq1pllaGSXEJY103pkZng7k29aUDna5PArYEyuicIl3rlNA1ZWoQxnBYGbrMVdFV8ZYz16WakWFrQtZCEBCfo1BbxnEDv4Ovz18yXAHXariMQsv7EMT1wO5O9jI8R+8YHgFOmAOcsQJ4Rz9CHl21pKfr8Ghz4mOOVYQ+hgJAdYeIoDDP7o7qjjyqcBSWYHsFWJ4uBsoomTNuTUe8jD8KjDmMVjZMfNvyShZEGOEi7GWUzuKmY0yCpxa5iZb/ky37dRYhhg0AX/TYPgFjGpDpNzL9TqY/yIw/GZfTNfHwoh458QkfHnkdUrWdPfn2PbX/VxPTfPECRoi2U3bQ1N3lRfGrORdyrlPHGJ1Mh+r0qr09iiu5bQxVog71RsbGUsRGyfkKNBWYVKKFS/xaG4rfFlJUQwN3uKOc76eJqVs31WEv/+m0Wd5I/XH64O8iG6vL2uF6jezqeHsWZXyWRXFo4z8ilWUj4rS
3
Jul 20, 2022 06:05
Floor is _ and round to the nearest integer is _0.5+ (which rounds up at the mid-point.) Or -_--0.5+ to round down at the mid-point. -_- is ceiling.
2
May 24, 2022 16:54
Mar 13, 2021 16:55
(I assume the "real" solution is to prod @ngn to implement a "parse-number-from-string" overload =P)
3
Mar 9, 2021 03:17
J has all the right ideas in all the wrong ways
3
ngn
Nov 20, 2021 19:04
@xpqz have you tried to compile it lately? user eightsixfivezero from matrix gave me a patch for mac - it should work when you build k with "make k-libc"
2
Jan 26, 2023 07:18
@nathanrogers try {x. y}' or .'
Oct 9, 2020 15:07
ngn vs ktye: ktye.github.io/nk.html
3
Sep 3, 2021 05:46
you've managed to fold together a very elaborate pretzel
2
Aug 28, 2021 05:57
you're asking why K doesn't have a fleshed-out equivalent to all the functionality popular open-source languages have, to the group of people who were frustrated enough with K being closed-source to take the first painful steps toward independence. It's a lot of work, it requires patience and sustained effort over time, and case in point even the enormous amount of work that has been done already doesn't get rewarded
2
Aug 19, 2021 18:25
but in general, macros are mechanisms of abstraction and detail-hiding. APL-family languages eschew obfuscatory abstraction, and aim to provide a toolkit of language features that can be brought to bear directly on a wide range of problems
2
ngn
Aug 2, 2021 07:03
thanks to @bubbler's nomination, k is now:
2
Jul 20, 2021 08:02
k.miraheze.org/wiki/Primitives all symbol primitives from K6-K9 have pages with content now.
2
Nov 1, 2022 08:22
Incredible english-like K language from @JohnE - beyondloom.com/decker/lil.html ; Make sure you also look at the graphic environment that hosts it, beyondloom.com/decker (you should probably start looking at Decker unless you are allergic to GUIs)
Sep 8, 2022 01:55
My impression is that they were only willing to devote so much energy to it as they had bigger fish to fry. I believe it was taken more seriously in the never released kOS. The long and the short of it us that this is fairly blue sky territory in the open source K world. @kyte’s efforts are pretty exciting in that regard.
Mar 15, 2021 04:09
The listboxes: https://web.archive.org/web/20060704054229/http://www.kx.com/listbox/k/index.html

https://web.archive.org/web/20060715025722/http://www.kx.com/listbox/kdb/index.html
2
ngn
Dec 17, 2019 18:06
@AlexanderBelopolsky bitbucket.org/ngn/k is open for contributions now, with a CAA to protect my back. tbh i don't expect code to start pouring in, given the unusual style and the extra step of signing a document, but at least i hope the AGPL might make people more willing to use the language, find bugs, suggest improvements.
3
Jan 22, 2021 22:36
@rak1507 yes, but one of the charming (for me) things about the prior unification is that you can replace a function with a cached version of it (array or dict), and in k4 it just worked . Now it only mostly works. There are other "almost equiv but not quite" things; e.g. if you have a list L and a dictionary version of it d:(!#L)!L (! is iota, # is rho).
2
Jul 19, 2022 22:26
@PyGamer0 There's also splice for ranges instead of explicit indices. ?[x;y;z] splice ?["abcd";1 3;"xyz"] -> "axyzd"
Jul 19, 2022 14:21
@oeuf use @ like so @[1 2 3 4 5;1 3;:;3 5]
Dec 8, 2020 16:21
Nov 30, 2020 07:31
Advent 2020 k leaderboard join code: 419401-2f52b175
2
ngn
Oct 14, 2020 21:21
May 20, 2022 16:36
total time of the 3 evaluations
May 25, 2019 22:25
And now at kparc.github.io/ref
3
May 2, 2022 01:05
Nope, but you can use reduce like so 5(2*)/1 for 2^5.
ngn
Apr 14, 2019 21:21
@KelvinSherlock ah right, gitlab would have been the right choice for that. anyway, i decided it's not worth a bother and made bitbucket.org/ngn/k publicly accessible - it contains just the binary, the tests, and a small sample of my c code
3
Mar 15, 2019 23:40
Jan 21, 2022 19:13
@ngn i wrote a js module with an api similar to the c-api: github.com/ktye/i/tree/master/web. warning: includes documentation.
Feb 21, 2020 20:52
hi all
2
Feb 13, 2020 20:52
if you're in NYC - come along to the shakti meetup on 26 February! i'll present a k version of mesh spreadsheet. meetup.com/shaktidb-nyc/events/267966767
2
Jan 10, 2020 22:03
,: makes a list and a table is a list of dicts.
2
Jan 8, 2020 10:44
https://github.com/ktye/i/tree/master/_/ngn
Is the link sufficient?
2
ngn
Dec 17, 2019 22:40
i also wanted to say: if you seek simplicity, this style is to a large extent discovered (as opposed to invented)
2
ngn
Oct 9, 2021 09:52
"bottleneck" is a misleading analogy with fluid dynamics. software slowness doesn't have to have a single cause.
Oct 2, 2019 07:28
@ngn please don't. it serves well for learning some concepts. Just mark it as archeologic and leave it online.
2
Sep 24, 2021 21:03
@nathanrogers have you ever tried to sit back and think objectively about why your communication style pisses people off? Your lack of tact will seriously limit what you're able to accomplish in life.
ngn
Sep 20, 2021 05:03
the most natural size should be 1x1 :)
Sep 13, 2021 13:10
1=#|:\ is an ingenious way of saying {x~|x}
1 2 3