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 7e7420217f ngn/k frozen 2 days ago
a19 a19 5 months ago
a20 a20 5 months ago
a21 a21 5 months ago
dy dy p196 3 months ago
e e/80.k 5 months ago
g rm g/0.sh 3 months ago
l l/runparts.k 4 months ago
t 2\[;]1 2 3 4 1 week ago
vim-c j.c 3 months ago
vim-k vim-k 3 months ago
w wasm 4 months ago
x . 3 weeks ago
.gitignore makefile 8 months ago
0.c strlen() 3 months ago
1.c ^nan 4 months ago
2.c large mod 2 weeks ago
3.c 2022 4 months ago
LICENSE agpl 2 years ago
a.c (1+;2*)[1;3] 3 weeks ago
a.h j.c 3 months ago
b.c b.c 3 months ago
e.c 2022 4 months ago
f.c 2022 4 months ago
g.h 2022 4 months ago
g.k 2022 4 months ago
h.c cat() 3 months ago
i.c <0 3 months ago
j.c j.c 3 months ago
k.c K1(),K2() -> Kx() 3 weeks ago
k.h K1(),K2() -> Kx() 3 weeks ago
m.c \t : /fix 3 weeks ago
makefile 2.c 5 months ago
o.c (1+;2*)[1;3] 3 weeks ago
opts -Wno-string-plus-int 3 months ago
p.c p.c 4 months ago
readme.txt ngn/k frozen 2 days ago
repl.k i_Y docs 3 weeks ago
s.c 2\[;]1 2 3 4 1 week ago
v.c 2022 4 months ago
w.c d\ - nyi 3 weeks ago
x.c 2022 4 months ago

readme.txt

i've decided to stop working on my free reimplementation of k6 for an indefinite period.
-ngn, 24 may 2022



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
(for unusual platforms or compilers, if that doesn't work, try "make k-libc" instead of "make")
usage: rlwrap ./k repl.k
try 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/razetime/ngn-k-tutorial - tutorial (work in progress)
https://xpqz.github.io/kbook/ - book (work in progress)
https://github.com/xpqz/ngnk_mirror - continuous integration for osx
https://github.com/traws0/ngnk-windows - windows port
https://github.com/nathyong/ngnk-nix - nix package
https://code.golf/rankings/holes/all/k/bytes - code golf
https://copy.sh/k/ - aoc20 and aoc21 solutions
https://github.com/chrispsn/aoc2017 - aoc17 solutions
https://github.com/xpqz/dyalogk - dyalog competition solutions
https://codeberg.org/CptJimKirk/kpl - kpl, apl-like extensions for k