udem-dlteam / pnut

🥜 A Self-Compiling C Transpiler Targeting Human-Readable POSIX Shell
https://pnut.sh
BSD 2-Clause "Simplified" License
425 stars 14 forks source link

Can it run on itself? #59

Closed daedalus closed 4 months ago

laurenthuberdeau commented 4 months ago

Yes!

Pnut can compile itself, which is why it can be distributed as a shell script while being written in C. If you want to test it, you can try make pnut-bootstrapped.sh which will bootstrap the compiler using a precompiled pnut.sh and compare the result.

This takes a few minutes, and you can follow the progress of the compiler with tail -f build/pnut-bootstrapped.sh.

daedalus commented 4 months ago

I'm glad. Really nice project. I'm closing this to not steal more of your time.