Hacker GitHub

← All repos

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

Mentions per year 7 mentions · busiest year 2024 (4)
20082026
  1. …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…
  2. 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…
  3. …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.
  4. …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)
  5. 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)
  6. The batch system call part is not so hard on its own: https://github.com/c-blake/batch