c-blake/batch
View on GitHub ↗ ★ 26 C
Generic batch system calls for Linux
7 mentions on Hacker News by 2 people: 1 story, 6 comments · first 2020-11-26 · latest 2026-01-25
20082026
-
…check for failures. This was a driving inspiration for the tiny 27 lines of C virtual machine in https://github.com/c-blake/batch that allows you to, e.g., synthesize a single call that mmaps a whole file…
comment by cb321 · 2026-01-25 · in I built a 2x faster lexer, then discovered I/O was the real bottleneck -
You might both still be interested in the tiny (EDIT: 27 lines! https://github.com/c-blake/batch/blob/9c7e07670ef1fd0e98687c... ) little "virtual machine interpreter" I linked to. Per-interpreter loop overheads are below 100 CPU cycles on…
comment by cb321 · 2024-07-15 · in Fusion – A hobby OS implemented in Nim -
…these lines ("how much" individual calls do), you might want to consider an approach like this: https://github.com/c-blake/batch to amortize costs of crossing expensive call boundaries.
comment by cb321 · 2024-07-15 · in Fusion – A hobby OS implemented in Nim -
…pre-saged io_uring work. Anyway, a 20-line example of a program written against said interpreter is https://github.com/c-blake/batch/blob/1201eefc92da9121405b79... but that only needs the wdcpy fake syscall not the conditional jump forward…
comment by cb321 · 2024-01-30 · in On the Costs of Syscalls (2021) -
Using https://github.com/c-blake/batch/blob/master/examples/closes... from the examples/ directory of https://github.com/c-blake/batch , I get: L2:bat/examples$ BATCH_EMUL=1 ./closes|awk '{print $3,$2,$1*$2}'|fitl -s0 -c,=,n,b -b100 1 2 3…
comment by cb321 · 2024-01-30 · in On the Costs of Syscalls (2021) -
▲ 4
Batch: Generic Linux System Call Batchingstory by xk3 · 2023-07-21 · 0 comments
-
The batch system call part is not so hard on its own: https://github.com/c-blake/batch
comment by cb321 · 2020-11-26 · in How io_uring and eBPF Will Revolutionize Programming in Linux