Pnut: A C to POSIX Shell Compiler you can Trust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. cosmopolitan

    build-once run-anywhere c library

    > I cant run cosmolibc on Android, for example.

    You can:

    https://justine.lol/cosmo3/

    > After nearly one year of development, I'm pleased to announce our version 3.0 release of the Cosmopolitan library. [...] we invented a new linker that lets you build fat binaries which can run on these platforms: AMD ... ARM64

    https://github.com/jart/cosmopolitan/releases/tag/3.5.3

    > This release fixes Android support. You can now run LLMs on your phone

  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. pnut

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

    One of the example we include is a base64 encoder/decoder:

      https://github.com/udem-dlteam/pnut/blob/main/examples/compiled/base64.sh

  4. 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 !

    I don't know about the specific motivations for this project, but if you're curious about why work like this has real-world relevance beyond scratching an itch, idle exploration, or meeting a research paper quota, you can look to similar work and literature:

    GNU Mes: https://www.gnu.org/software/mes/

    Stage0: https://bootstrapping.miraheze.org/wiki/Stage0

    Ribbit (same authors): https://github.com/udem-dlteam/ribbit

    See also this LWN article about bootstrappable and reproducible builds: https://lwn.net/Articles/841797/

  5. shlibs

    Adding bash sweetness in POSIX sh

    I used almost the same idea, but with files in my https://github.com/steveschnepp/shlibs

  6. oksh

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

    All of Android is still based on a pdksh-derivative known as mksh, which is an enormous install base.

    http://www.mirbsd.org/mksh.htm

    OpenBSD switched their default shell to their own pdksh-derivative known as oksh.

    https://github.com/ibara/oksh

    There was an effort to (re)start ksh93 development, but AT&T halted this effort. The bugfixes from the failed effort have moved back into Korn's last release.

    https://github.com/ksh93/ksh/tree/dev

  7. ksh

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

    All of Android is still based on a pdksh-derivative known as mksh, which is an enormous install base.

    http://www.mirbsd.org/mksh.htm

    OpenBSD switched their default shell to their own pdksh-derivative known as oksh.

    https://github.com/ibara/oksh

    There was an effort to (re)start ksh93 development, but AT&T halted this effort. The bugfixes from the failed effort have moved back into Korn's last release.

    https://github.com/ksh93/ksh/tree/dev

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to make http request without curl or wget in bash

    1 project | dev.to | 26 Aug 2024
  • Tenth ksh 93u+ was just released

    1 project | news.ycombinator.com | 1 Aug 2024
  • Faster Shell Startup with Shell Switching

    3 projects | news.ycombinator.com | 16 Jan 2024
  • ksh 93u+m/1.0.5 is out, with another large amount of bugfixes

    1 project | /r/ksh | 9 Jun 2023
  • Announcing: KornShell 93u+m/1.0.5

    1 project | /r/ksh | 9 Jun 2023