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 56ae8c165e repl.k 4 hours ago
aoc aoc 5 days ago
dy dvd() 5 hours ago
e . 3 days ago
g g/insert-inbetween.k 3 days ago
l maths.k 5 days ago
t 01 4 days ago
vim-c 01 4 days ago
vim-k vim-k 7 months ago
w ZZ -> LEN 2 weeks ago
x Add example of registering foreign functions into the REPL. Make link options easier to modify. 3 weeks ago
.gitignore makefile 1 year ago
0.c ZZ -> LEN 2 weeks ago
1.c evK1(),evK2() 2 days ago
2.c rln() -> cyc() 4 hours ago
3.c 01 4 days ago
4.c rln() -> cyc() 4 hours ago
LICENSE agpl 3 years ago
a.c rln() -> cyc() 4 hours ago
a.h rln() -> cyc() 4 hours ago
b.c rln() -> cyc() 4 hours ago
e.c 01 4 days ago
f.c rln() -> cyc() 4 hours ago
g.h 01 4 days ago
g.k 01 4 days ago
h.c rln() -> cyc() 4 hours ago
i.c 01 4 days ago
j.c j.c 2 weeks ago
k.c d8 2 weeks ago
k.h K1(),K2() -> Kx() 5 months ago
lopts Add example of registering foreign functions into the REPL. Make link options easier to modify. 3 weeks ago
m.c evK1(),evK2() 2 days ago
makefile aoc 5 days ago
o.c evK1(),evK2() 2 days ago
opts -Wno-string-plus-int 7 months ago
p.c a1() -> aA1(), .. 2 weeks ago
readme.txt readme 5 hours ago
repl.k repl.k 4 hours ago
s.c 01 4 days ago
v.c rln() -> cyc() 4 hours ago
w.c rln() -> cyc() 4 hours ago
x.c 01 4 days 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

related projects:
https://github.com/gitonthescene/ngnk-mode - emacs mode
https://github.com/razetime/ngn-k-tutorial - tutorial (work in progress)
https://xpqz.github.io/kbook/ - book (work in progress)
https://github.com/secwang/ngnkcart - searchable database of snippets
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


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 * aoc/ https://adventofcode.com/
4.c prime sieve
i.c i/o and \cmds
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