Hacker GitHub

← All repos

udem-dlteam/pnut

View on GitHub ↗ ★ 537 C

🥜 A Self-Compiling C Transpiler Targeting Human-Readable POSIX Shell

8 mentions on Hacker News by 6 people: 1 story, 7 comments · first 2024-07-24 · latest 2026-04-03

Mentions per year 8 mentions · busiest year 2024 (4)
20082026
  1. It's an ongoing project: https://github.com/udem-dlteam/pnut See also pnut.sh, but the server seems to be down at the moment.
  2. That sounds like pnut: https://github.com/udem-dlteam/pnut
  3. Related: pnut.sh https://github.com/udem-dlteam/pnut just released. It’s a self-compiling C->POSIX shell transpiler that outputs readable shell, aimed at live-bootstrap and reproducible build chains. The shell edition is auditable and can…
  4. …has a tombstone diagram showing the compilation steps to go from pnut's C code to a GCC binary: https://github.com/udem-dlteam/pnut/blob/main/doc/presentati...
  5. …https://justine.lol/sectorlisp/ . For the interested, my new favorite project from Marc's team is https://github.com/udem-dlteam/pnut
  6. There seems to be libc in the repo but many functions are TODO https://github.com/udem-dlteam/pnut/tree/main/portable_libc Otherwise the builtins seems to be here https://github.com/udem-dlteam/pnut/blob/main/runtime.sh FYI all your…
  7. One of the example we include is a base64 encoder/decoder: https://github.com/udem-dlteam/pnut/blob/main/examples/compiled/base64.sh It doesn't support NULs as you pointed out, but it's interesting to see similarities between your…