2
Ngn/k (free K implementation)
source link: https://codeberg.org/ngn/k
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
ngn/k - k - Codeberg.org
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 | large mod | 2 days ago |
vim-c | j.c | 3 months ago |
vim-k | vim-k | 2 months ago |
w | wasm | 4 months ago |
x | . | 2 weeks ago |
.gitignore | makefile | 8 months ago |
0.c | strlen() | 3 months ago |
1.c | ^nan | 4 months ago |
2.c | large mod | 2 days ago |
3.c | 2022 | 4 months ago |
LICENSE | agpl | 2 years ago |
a.c | (1+;2*)[1;3] | 1 week 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 | 2 months ago |
j.c | j.c | 3 months ago |
k.c | K1(),K2() -> Kx() | 2 weeks ago |
k.h | K1(),K2() -> Kx() | 2 weeks ago |
m.c | \t : /fix | 6 days ago |
makefile | 2.c | 5 months ago |
o.c | (1+;2*)[1;3] | 1 week ago |
opts | -Wno-string-plus-int | 2 months ago |
p.c | p.c | 3 months ago |
readme.txt | readme | 3 months ago |
repl.k | i_Y docs | 7 days ago |
s.c | . | 3 months ago |
v.c | 2022 | 4 months ago |
w.c | d\ - nyi | 7 days ago |
x.c | 2022 | 4 months ago |
readme.txt
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK