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 4acb4ab761
.
2 days ago
aoc . 1 week ago
dy dy 3 days ago
e tests 1 week ago
g . 1 week ago
l l/runparts.k 6 days ago
t `p@ 4 days ago
vim-c vim 1 week ago
vim-k vim 3 months ago
w ktyye's lz4 1 week ago
x Add example of registering foreign functions into the REPL. Make link options easier to modify. 7 months ago
.gitignore gitignore 3 weeks ago
.ignore 2.c 5 months ago
0.c strchrnul 1 week ago
1.c . 1 week ago
2.c tE 7 days ago
3.c tE 7 days ago
4.c LEN 1 month ago
LICENSE agpl 3 years ago
a.c `p@ 3 days ago
a.h `p@ 3 days ago
b.c b.c 2 weeks ago
e.c try() 2 weeks ago
f.c f.c 4 days ago
g.h tE 2 weeks ago
g.k tE 2 weeks ago
h.c tE 7 days ago
i.c . 1 week ago
j.c . 1 week ago
k.c uppercase macros 1 month ago
k.h D->F 5 months ago
lopts Add example of registering foreign functions into the REPL. Make link options easier to modify. 7 months ago
m.c `p@ 3 days ago
makefile dy 5 days ago
o.c tE 1 week ago
opts Revert "rm -Wno-unused-result" 1 week ago
p.c `p@ 3 days ago
r.c tE 1 week ago
readme.txt readme 2 weeks ago
repl.k . 2 days ago
s.c tE 6 days ago
v.c tE 6 days ago
w.c tE 7 days ago
x.c uppercase macros 1 month ago

readme.txt

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

community projects:
https://github.com/gitonthescene/ngnk-mode                 - emacs mode
https://github.com/gitonthescene/ngnk-libs                 - collection of libraries
https://github.com/razetime/ngn-k-tutorial                 - tutorial (work in progress)
https://xpqz.github.io/kbook/                              - book (work in progress)
https://github.com/kidd/arraylangs-index                   - analysis of ngn/k AoC solutions
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://week.golf/                                         - code golf
https://codegolf.stackexchange.com/search?tab=newest&q=ngn - code golf
https://k.miraheze.org/wiki/Advent_of_Code                 - aoc solutions by multiple people
https://github.com/xpqz/dyalogk                            - dyalog competition solutions
https://codeberg.org/CptJimKirk/kpl                        - kpl, apl-like extensions for k
https://github.com/SirBogman/codemirror-lang-k             - codemirror lezer parser
https://codeberg.org/suhr/kes                              - embedding example

source:
0.c main()                       k.h  embedding api
m.c memory manager and repl      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: . @      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 to string: $x `k@x           l/   k libraries
f.c find                         g/   https://codegolf.stackexchange.com/
r.c random                       e/   https://projecteuler.net/
1.c arithmetic monadic verbs     dy/  https://problems.tryapl.org/
2.c arithmetic dyadic  verbs     aoc/ https://adventofcode.com/
3.c arithmetic       adverbs
4.c prime sieve
i.c input/output
v.c other verbs
w.c other adverbs
j.c json: `j@x `j?x
x.c serialization: `@x `?x
e.c error handling
k.c embedding api