k on cosmo
- C 86.1%
- Vim script 4.7%
- JavaScript 4.2%
- Makefile 2.9%
- HTML 1.2%
- Other 0.8%
| aoc | aoc | |
| dy | whr | |
| e | rm e/100.k | |
| g | g/all-together-now.k | |
| l | #! | |
| t | segv | |
| vim-c | SN -> ZN | |
| vim-k | vim: au -> au! | |
| w | fix comment | |
| x | More coverage for foreign tests | |
| .gitignore | toolchain | |
| .ignore | 2.c | |
| 0.c | optionally compile in current build hash | |
| 1.c | REFB | |
| 2.c | clearer | |
| 3.c | &/ and |/ of k+!n | |
| 4.c | (c) | |
| a.c | cruft | |
| a.h | overflow detection in addition and subtraction | |
| b.c | . | |
| c.c | can't squeeze bits | |
| cosmo.sh | toolchain | |
| Dockerfile | tighter control on symbol visibility in libk.so | |
| e.c | e.c | |
| f.c | handle directly | |
| g.h | psh | |
| g.k | psh | |
| h.c | psh | |
| i.c | cosmo | |
| j.c | (c) | |
| k.c | typo | |
| k.h | sync with ktye's k.h | |
| LICENSE | agpl | |
| lopts | Add example of registering foreign functions into the REPL. Make link options easier to modify. | |
| m.c | cleaner way to hand exception | |
| makefile | toolchain | |
| o.c | more efficent k string. tighter calibration | |
| opts | opts | |
| p.c | segv on bad booleans | |
| r.c | clear rand buffer when recalculating jumps | |
| readme.txt | toolchain | |
| repl.k | cosmo | |
| s.c | Fix stringop-overflow error caused by I5 being longer than P5 | |
| v.c | vector reverse | |
| w.c | 0N-do | |
this is a fork of growler/k made to compile under cosmopolitan building should be simply % make which will download the toolchain for you ngn/k is a simple fast vector programming language try: https://ngn.codeberg.page/k build: make # Dockerfile uses latest gcc and should be considered canonical use: rlfe -h ~/.k_history ./k repl.k chat: https://matrix.to/#/#ngnk:matrix.org license: GNU AGPLv3 (v3 only) - https://codeberg.org/ngn/k/raw/branch/master/LICENSE community: learn: book (work in progress) https://xpqz.github.io/kbook/ tutorial (work in progress) https://github.com/gitonthescene/ngnk-libs/tree/master/tutorial tutorial https://github.com/razetime/ngn-k-tutorial embedding example https://codeberg.org/suhr/kes searchable database of snippets https://github.com/secwang/ngnkcart edit: vim mode (in this repo) ./vim-k emacs mode https://github.com/gitonthescene/ngnk-mode fun: code golf https://code.golf/rankings/holes/all/k/bytes code golf https://codegolf.stackexchange.com/search?tab=newest&q=ngn aoc solutions by multiple people https://k.miraheze.org/wiki/Advent_of_Code analysis of ngn/k AoC solutions https://github.com/kidd/arraylangs-index dyalog competition solutions https://github.com/xpqz/dyalogk interop: windows port https://github.com/traws0/ngnk-windows rust bindings https://crates.io/crates/ngnk continuous integration for osx https://github.com/xpqz/ngnk_mirror nix package https://github.com/nathyong/ngnk-nix more: collection of libraries https://github.com/gitonthescene/ngnk-libs unparser https://github.com/chrispsn/ngn-k-unparser codemirror lezer parser https://github.com/SirBogman/codemirror-lang-k various utils http://arlyle.sdf.org/k/ kpl, apl-like extensions for k https://codeberg.org/CptJimKirk/kpl bindings for a regex library https://github.com/x86y/onikuruma videos of solving aoc in ngn/k https://www.twitch.tv/fcopy 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 c.c type conversions g/ https://codegolf.stackexchange.com/ f.c find e/ https://projecteuler.net/ r.c random dy/ https://problems.tryapl.org/ 1.c arithmetic monadic verbs aoc/ https://adventofcode.com/ 2.c arithmetic dyadic verbs 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 e.c error handling k.c embedding api