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 890a1f2186 mergesort 1 day ago
.builds . 3 months ago
a19 a19 3 months ago
a20 (-x)!-y 6 days ago
e e.k 117 2 months ago
g g/simplify-ijk-string.k 3 weeks ago
t . 2 days ago
vim-c extern -> EX 3 months ago
vim-k vim \\ 3 months ago
web k.js 1 week ago
.gitignore g/implement-swap-encoding.k 2 months ago
0.c sr.ht -> codeberg 2 months ago
1.c sr.ht -> codeberg 2 months ago
2.c int-float cmp 2 days ago
3.c sr.ht -> codeberg 2 months ago
LICENSE agpl 2 years ago
a.h int-float cmp 2 days ago
b.c sr.ht -> codeberg 2 months ago
c.c sr.ht -> codeberg 2 months ago
e.c e.c 2 months ago
f.c sr.ht -> codeberg 2 months ago
g.h sr.ht -> codeberg 2 months ago
g.k sr.ht -> codeberg 2 months ago
h.c sr.ht -> codeberg 2 months ago
i.c ` 0:(1 2;3 4) 3 days ago
j.c sr.ht -> codeberg 2 months ago
k.c fix ."\t --------------------1" 4 weeks ago
k.h sr.ht -> codeberg 2 months ago
m.c fix #1 7 days ago
makefile . 2 months ago
p.c sr.ht -> codeberg 2 months ago
readme.txt sr.ht -> codeberg 2 months ago
repl.k i$c 2 days ago
s.c sr.ht -> codeberg 2 months ago
v.c mergesort 1 day ago
w.c bin() 3 days ago
x.c sr.ht -> codeberg 2 months 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-10 make -e # or CC=clang-7 or CC=gcc-8
usage: rlwrap ./k repl.k

a.h common header
g.h header generated by g.k
k.h header for ffi
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
s.c object to string: $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 parser: `j?x
x.c serialization: `@x `?x
c.c cryptography
e.c error handling
t/ unit tests
g/ https://codegolf.stackexchange.com/
e/ https://projecteuler.net/
a19/ https://adventofcode.com/2019
a20/ https://adventofcode.com/2020
o/ build tmp
web/ browser ui