1
0
Fork
You've already forked k
0
forked from ngn/k
No description
  • C 85.7%
  • Vim script 5.2%
  • JavaScript 4.7%
  • Makefile 2.3%
  • HTML 1.3%
  • Other 0.8%
Find a file
2023年11月14日 15:48:09 +02:00
aoc rm S$ 2023年04月29日 19:07:10 +03:00
dy whr 2023年04月27日 05:31:51 +03:00
e e/88.k 2023年04月28日 21:34:03 +03:00
g g/all-together-now.k 2023年08月20日 18:32:22 +03:00
l l/maths.k 2023年05月16日 16:22:04 +03:00
t a¦:b 2023年11月04日 18:58:34 +02:00
vim-c . 2023年05月24日 17:06:24 +03:00
vim-k vim: au -> au! 2023年09月16日 21:45:13 +03:00
w w/x/mines.k 2023年11月14日 15:48:09 +02:00
x 2: 2023年06月10日 23:22:46 +03:00
.gitignore gitignore 2023年03月09日 20:32:21 +02:00
.ignore 2.c 2022年10月25日 23:17:58 +03:00
0.c . 2023年06月11日 02:02:00 +03:00
1.c 1.c 2023年04月07日 05:25:11 +03:00
2.c bng -> exc 2023年05月21日 06:32:29 +03:00
3.c </20円 2023年07月15日 19:35:04 +03:00
4.c LEN 2023年02月22日 15:09:36 +02:00
a.c .0#` 2023年11月04日 18:34:44 +02:00
a.h 1:(fd;off,len) 2023年08月01日 23:00:43 +03:00
b.c a¦:b 2023年11月04日 18:58:34 +02:00
e.c try() 2023年03月14日 22:20:18 +02:00
f.c rm @ ? 2023年05月26日 17:26:28 +03:00
g.h qA() 2023年08月05日 23:48:40 +03:00
g.k qA() 2023年08月05日 23:48:40 +03:00
h.c PLH -> GAP 2023年05月27日 15:14:47 +03:00
i.c 1: 2023年08月02日 12:52:09 +03:00
j.c j.c 2023年05月27日 11:43:56 +03:00
k.c uppercase macros 2023年02月20日 15:38:26 +02:00
k.h D->F 2022年10月16日 04:32:19 +03: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 1:(fd;off,len) 2023年08月01日 23:00:43 +03:00
makefile -Wl,-E 2023年09月19日 20:40:25 +03:00
o.c qA() 2023年08月05日 23:48:40 +03:00
opts opts 2023年04月20日 14:51:26 +03:00
p.c 1 1.5 2023年06月15日 22:39:15 +03:00
r.c deal 2023年05月29日 13:04:23 +03:00
readme.txt readme 2023年10月01日 15:04:27 +03:00
repl.k repl 2023年06月23日 21:21:03 +03:00
repltest.k repl 2023年06月22日 15:34:25 +03:00
s.c PLH -> GAP 2023年05月27日 15:14:47 +03:00
v.c !list 2023年09月29日 13:53:21 +03:00
w.c recurrence 2023年08月18日 20:54:23 +03:00

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: 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 (work in progress) 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://week.golf/
 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 https://arlyle.codeberg.page/k/
 kpl, apl-like extensions for k https://codeberg.org/CptJimKirk/kpl
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
e.c error handling
k.c embedding api