You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
n 750c6f8004 k.c 2 days ago
a19 makefiles 2 weeks ago
a20 makefiles 2 weeks ago
d14 d14 2 weeks ago
e e/ 2 weeks ago
g g/convert-height-to-us-men-s-jacket-size.k 2 weeks ago
l d14 2 weeks ago
t 1%(0 1;2) 4 days ago
vim-c vim-c 2 weeks ago
vim-k vim-k 3 weeks ago
w k.js 4 days ago
.gitignore makefile 2 weeks ago
0.c _start 4 days ago
1.c `sin@ `e@ `e? 2 weeks ago
2.c 1%(0 1;2) 4 days ago
3.c 3.c 1 week ago
LICENSE agpl 2 years ago
a.h m.c 6 days ago
b.c err 2 weeks ago
e.c e.c 2 weeks ago
f.c fnd 1 week ago
g.h openbsd 2 weeks ago
g.k 0.c 7 days ago
h.c f#d 1 week ago
i.c m.c 6 days ago
j.c j.c 2 weeks ago
k.c k.c 2 days ago
m.c \v \f 4 days ago
makefile k.js 5 days ago
o.c !n 1 week ago
opts makefile 2 weeks ago
p.c xtsSA 2 weeks ago
readme.txt d14 2 weeks ago
repl.k \v \f 4 days ago
s.c UC 3 weeks ago
v.c !n 1 week ago
w.c err 2 weeks ago
x.c g.k 2 weeks ago

readme.txt

ngn/k is a simple fast vector programming language
license: GNU AGPLv3 (v3 only) - https://codeberg.org/ngn/k/blob/master/LICENSE
build: CC=clang-12 make -e # or CC=gcc-10
usage: rlwrap ./k repl.k
online: https://ngn.codeberg.page/k or https://ngn.bitbucket.io/k

a.h common header
g.h header generated by g.k
0.c syscalls and main()
m.c memory manager
p.c parser
b.c bytecode compiler and virtual machine
k.c eval, apply, amend, drill: . @
h.c shape-related: x#y ,x x,y
o.c order and equivalence
s.c string formatting: $x `k@x
f.c find, random: x?y
1.c monadic arithmetic
2.c dyadic arithmetic except + and *
3.c dyadic arithmetic + and *
i.c i/o and \cmds
v.c the rest of the verbs
w.c adverbs
j.c json: `j@x `j?x
x.c serialization: `@x `?x
e.c error handling
t/ unit tests
w/ web ui
o/ build output

l/ k libraries
g/ https://codegolf.stackexchange.com/
e/ https://projecteuler.net/
a19/ https://adventofcode.com/2019
a20/ https://adventofcode.com/2020
d14/ https://problems.tryapl.org/psets/2014.html