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.
 
 
 
 
 
 

1.6 KiB

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

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 libk.so
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/ https://codegolf.stackexchange.com/
1.c monadic arithmetic e/ https://projecteuler.net/
2.c dyadic arithmetic except + and * dy/ https://problems.tryapl.org/
3.c dyadic arithmetic + and * a19/ https://adventofcode.com/2019
i.c i/o and \cmds a20/ https://adventofcode.com/2020
v.c the rest of the verbs a21/ https://adventofcode.com/2021
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

related projects:
https://github.com/xpqz/ngnk_mirror - continuous integration for osx
https://github.com/traws0/ngnk-windows - windows port
http://copy.sh/kaoc20/ - aoc20 solutions
https://github.com/chrispsn/aoc2017 - aoc17 solutions
https://codeberg.org/CptJimKirk/kpl - kpl, apl-like extensions for k