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
20082026
-
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.
comment by wahern · 2026-04-03 · in C89cc.sh – standalone C89/ELF64 compiler in pure portable shell -
That sounds like pnut: https://github.com/udem-dlteam/pnut
comment by gaigalas · 2026-04-03 · in C89cc.sh – standalone C89/ELF64 compiler in pure portable shell -
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…
comment by ACAVJW4H · 2025-12-23 · in Show HN: C-compiler to compile TCC for live-bootstrap -
…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...
comment by laurenth · 2024-11-11 · in The Design of a Self-Compiling C Transpiler Targeting POSIX Shell -
…https://justine.lol/sectorlisp/ . For the interested, my new favorite project from Marc's team is https://github.com/udem-dlteam/pnut
comment by syvon · 2024-09-18 · in Ribbit: A portable, compact and extensible R4RS Scheme implementation -
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…
comment by Cloudef · 2024-07-24 · in Pnut: A C to POSIX shell compiler you can trust -
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…
comment by laurenth · 2024-07-24 · in Pnut: A C to POSIX shell compiler you can trust