pnut

🥜 A Self-Compiling C Transpiler Targeting Human-Readable POSIX Shell (by udem-dlteam)

Pnut Alternatives

Similar projects and alternatives to pnut

  1. cosmopolitan

    build-once run-anywhere c library

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. ksh

    ksh 93u+m: KornShell lives! | Latest release: https://github.com/ksh93/ksh/releases

  4. ribbit

    19 pnut VS ribbit

    A portable, compact and extensible Scheme implementation that is fully R4RS compliant. This includes closures, I/O, tail calls, first-class continuations and a Read Eval Print Loop (REPL). The R4RS Scheme REPL fits inside 6.5Kb !

  5. oksh

    Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).

  6. shlibs

    Adding bash sweetness in POSIX sh

  7. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better pnut alternative or higher similarity.

pnut discussion

Log in or Post with

pnut reviews and mentions

Posts with mentions or reviews of pnut. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-12.
  • The Design of a Self-Compiling C Transpiler Targeting POSIX Shell
    1 project | news.ycombinator.com | 11 Nov 2024
    Author here,

    > assuming the resulting shell script is as inscrutably as binary executable

    It's quite the opposite, pnut generates shell code that's close to the original C code to make it easy to audit the code. A useful way to see pnut is as a tool that rewrites C code to POSIX shell, without significantly changing the structure.

    This means that even if GCC is required for the initial compilation of pnut (GCC compiles pnut, then pnut compiles itself and we get the pnut-sh.sh script), the script can be "sanitized" from trusting trust attacks by simply comparing the script to the C code and making sure GCC hasn't introduced any malicious code.

    Page 10 of the SLE24 presentation 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...

  • Ribbit: A portable, compact and extensible R4RS Scheme implementation
    3 projects | news.ycombinator.com | 12 Sep 2024
    Hi!

    One of the original author of Ribbit here, glad to see it is still getting attention. Léonard and Marc took the project much further than I imagined.

    As a fun fact, the project started as a riff of Justine Tunney's famous https://justine.lol/sectorlisp/.

    For the interested, my new favorite project from Marc's team is https://github.com/udem-dlteam/pnut

  • Pnut: A C to POSIX Shell Compiler you can Trust
    7 projects | news.ycombinator.com | 23 Jul 2024
    One of the example we include is a base64 encoder/decoder:

      https://github.com/udem-dlteam/pnut/blob/main/examples/compiled/base64.sh
  • A note from our sponsor - SaaSHub
    www.saashub.com | 24 Apr 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic pnut repo stats
3
458
9.8
5 days ago

udem-dlteam/pnut is an open source project licensed under BSD 2-clause "Simplified" License which is an OSI approved license.

The primary programming language of pnut is C.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C is
the 6th most popular programming language
based on number of references?