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.

2.2 KiB

ngn/k is a simple fast vector programming language
license: GNU AGPLv3 (v3 only) -
build: make CC=clang-11 # or CC=gcc-10
(for unusual platforms or compilers, if that doesn't work, try "make k-libc" instead of "make")
usage: rlwrap ./k repl.k
try online: or

related projects: - emacs mode - tutorial (work in progress) - book (work in progress) - searchable database of snippets - continuous integration for osx - windows port - nix package - code golf - aoc20 and aoc21 solutions - aoc17 solutions - dyalog competition solutions - kpl, apl-like extensions for k - codemirror lezer parser

0.c syscalls and main() k.h embedding api
m.c memory manager a.h common header
p.c parser g.h header generated by g.k
b.c bytecode compiler and vm t/ unit tests
a.c eval, apply, amend, drill: . @ w/ web ui
h.c shape-related: x#y ,x x,y x/ example for using
o.c order and equivalence o/ build output
s.c string formatting: $x `k@x l/ k libraries
f.c find, random: x?y g/
1.c arithmetic monadic verbs e/
2.c arithmetic dyadic verbs dy/
3.c arithmetic adverbs aoc/
4.c prime sieve
i.c input/output
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
k.c impl of embedding api