ngn/k
19
63
Fork
You've already forked k
17
No description
  • C 85.5%
  • Vim script 5%
  • JavaScript 4.5%
  • Makefile 2.5%
  • HTML 1.3%
  • Other 1.1%
Find a file
2025年11月17日 14:35:40 +02:00
aoc aoc 2023年12月30日 03:54:52 +02:00
dy whr 2023年04月27日 05:31:51 +03:00
e rm e/100.k 2023年12月03日 19:29:54 +02:00
g g/all-together-now.k 2023年08月20日 18:32:22 +03:00
l #! 2023年12月08日 03:42:01 +02:00
t fix #112 2025年11月17日 14:35:40 +02:00
vim-c vim-c 2024年12月22日 18:40:29 +02:00
vim-k vim: au -> au! 2023年09月16日 21:45:13 +03:00
w Merge pull request 'cruft' ( #90 ) from growler/k:mines into master 2024年06月28日 00:46:07 +00:00
x #! 2023年12月08日 03:42:01 +02:00
.gitignore gitignore 2023年03月09日 20:32:21 +02:00
.ignore 2.c 2022年10月25日 23:17:58 +03:00
0.c (c) 2024年01月02日 19:54:02 +02:00
1.c REFB 2024年01月07日 16:50:07 +02:00
2.c REFB 2024年01月07日 16:50:07 +02:00
3.c (c) 2024年01月02日 19:54:02 +02:00
4.c (c) 2024年01月02日 19:54:02 +02:00
a.c REFB 2024年01月07日 16:50:07 +02:00
a.h apv() 2024年01月08日 04:19:26 +02:00
b.c . 2024年01月08日 03:24:55 +02:00
c.c c,ドルs 2024年02月10日 13:29:11 -05:00
Dockerfile tighter control on symbol visibility in libk.so 2024年06月02日 13:34:32 +09:00
e.c e.c 2024年01月07日 13:36:20 +02:00
f.c (c) 2024年01月02日 19:54:02 +02:00
g.h rm _m() 2024年01月07日 20:49:31 +02:00
g.k rm _m() 2024年01月07日 20:49:31 +02:00
h.c (),tbl 2024年01月19日 10:05:40 +02:00
i.c . 2024年01月08日 03:24:55 +02:00
j.c fix #112 2025年11月17日 14:35:40 +02:00
k.c typo 2024年06月06日 05:21:51 +00:00
k.h sync with ktye's k.h 2024年06月05日 11:14:05 +09:00
LICENSE agpl 2019年12月17日 02:19:05 +02:00
lopts Add example of registering foreign functions into the REPL. Make link options easier to modify. 2022年09月12日 09:11:44 +02:00
m.c tighter control on symbol visibility in libk.so 2024年06月02日 13:34:32 +09:00
makefile note about debian packages 2025年11月10日 07:40:54 +02:00
o.c . 2024年01月08日 03:24:55 +02:00
opts opts 2023年04月20日 14:51:26 +03:00
p.c . 2024年01月08日 03:24:55 +02:00
r.c r.c 2024年02月14日 21:08:16 -05:00
readme.txt readme - growler's fork 2025年01月12日 18:58:57 +02:00
repl.k "case" example like in growler/k 2025年11月10日 07:25:54 +02:00
s.c Fix stringop-overflow error caused by I5 being longer than P5 2024年01月28日 21:43:16 -05:00
v.c (c) 2024年01月02日 19:54:02 +02:00
w.c REFB 2024年01月07日 16:50:07 +02:00
wasm-push.sh wasm-push.sh 2024年12月22日 18:40:29 +02:00

this k implementation is no longer supported
there's an actively maintained fork at https://codeberg.org/growler/k
for other implementations, see https://k.miraheze.org/wiki/Running_K
ngn/k is a simple fast vector programming language
try: https://ngn.codeberg.page/k
build: make CC=clang-17 # or CC=gcc-10 or other
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
 fun little ngn/k programs https://github.com/shadowninja55/funk
 simple graphics programming https://github.com/NuxTuxSux/ASDL
 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