nowfound

Life & fun · May 7, 2026

Ced – C REPL in 50 lines of POSIX shell

Yesterday, I found myself writing a little C throwaway script to test something out. That happens often enough to clutter my HOME and some other directories with these useless text files and binaries. So I thought that I can use a repl instead. Quick google search didn't find any good and tested solutions. So I wrote my own with help of a tcc compiler. Why POSIX Shell? Because it would be far too easy in a normal language (it'd probably take me ~10 minutes to rewrite this in Nim) and where is fun in that?

Ced – C REPL in 50 lines of POSIX shell launched on May 7, 2026 with 5 votes, #2,008 of 20,538 launches that month and more than 75% of that year's launches.

Visit codeberg.org ↗Alternativestop 10% of May 2026

What it does

ced - C REPL in 50 lines of POSIX shell + awk

ced is an interactive C REPL. Type a line, press Return, and see the result immediately. A minimal valid C program is maintained behind the scene. #include <stdio.h> int main() { return 0; } and positions you at line 3 (inside main). All line numbers are 1-indexed. Enter a statement without a semicolon and press Return to run it immediately. If the line is not a preprocessor directive, semicolon will be appended automatically. To continue a statement across multiple lines, end a line with ; or { and press Return. The following line will be joined to the previous one. It won't be executed until you submit the normal statement. To split a statement across lines while preserving the line…from codeberg.org

Does a similar job

all alternatives →
  • GI
    Going into freshman year, figured I should build an interpreter2023 · ▲138

    Hi all! I'm going into my freshman year, and figured that the best way to prepare for the intro to programming Racket course would be to implement my own garbage-collected, dynamically typed, functional programming language in C ;) Anyways... here's the repo: https:&#x2F;&#x2F;github.com&#x2F;liam-ilan&#x2F;crumb I started learning C over the summer, so I still have a whole lot to learn... Any feedback would be greatly appreciated! :D

  • Zrc, I tried making a Unix shell scripting language with Tcl syntax2025 · github.com · ▲5

    Welp, second time posting this project! Bourne shell's ALGOL-inspired syntax seems a bit verbose, and while `rc` is quite nice, it lacks some features I'd prefer in a shell (this is probably by design). Though don't let the name I chose fool you, this shell is probably more related to `tcl` or `csh` than `rc`, except in some small places. It's been a while since my last post. Notable new features include a stack trace (via `caller`), `try`&#x2F;`catch` (but only with user-supplied strings), `fc`, `disown`, login shell detection, and a shorter argv alias (`${argv number}` becomes `$number`).…

  • Sed to C translator written in sed2020 · github.com · ▲160

    sed to C translator written in sed. Contribute to lhoursquentin/sed-bin development by creating an account on GitHub.

  • Clamshell- an experimental Python based shell2023 · github.com · ▲51

    About a month ago I started a suprisingly-not-that tricky project to build an experimental python repl that I could use instead of bash as a daily shell in windows, mac or linux. It"s more hack-for-exploration than a production ready shell, but here it is! Hope somebody finds it anywhere near as interesting to check out as I found making it. Disclaimer: I know about xonsh and love it (if you haven't heard of it, google it). This project is more pure python and less python and bash interacting - see the readme for more details.

  • RC
    Replify – Create a REPL for any command2016 · gist.github.com · ▲112

    GitHub Gist: instantly share code, notes, and snippets.

  • IW
    I wrote a book on GNU grep and ripgrep2019 · ▲182

    My book on "GNU grep and ripgrep" is free to download today and tomorrow [1][2] Code snippets, example files and sample chapters are available on GitHub [3] The book uses plenty of examples and regular expressions are also covered from scratch. The book is suitable for beginners as well as serves as a reference. Hope you find it useful, I would be grateful for your feedback and suggestions. I used pandoc+xelatex [4] to generate the pdf. [1] https:&#x2F;&#x2F;gumroad.com&#x2F;l&#x2F;gnugrep_ripgrep [2] https:&#x2F;&#x2F;leanpub.com&#x2F;gnugrep_ripgrep [3]…

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, May 2026

the whole month →
  • Brew ▲900

    Like Claude design for email marketing

    AI · May 2026 · brew.new

  • Parallel agents, diff reviewer, and multi-model comparisons

    Dev tools · May 2026 · kilo.ai

  • StoreClaw▲806

    Grow your store profits with agents that know how to sell

    AI · May 2026 · storeclaw.ai

  • Give your agent a real number and voice to make calls.

    AI · May 2026 · pollyreach.ai

  • Hey HN, Henry here from Cactus. We open-sourced Needle, a 26M parameter function-calling (tool use) model. It runs at 6000 tok&#x2F;s prefill and 1200 tok&#x2F;s decode on consumer devices. We were always frustrated by the little effort made towards building agentic models that run on budget phones, so we conducted investigations that led to an observation: agentic experiences are built upon tool calling, and massive models are overkill for it. Tool calling is fundamentally retrieval-and-assembly (match query to tool name, extract argument values, emit JSON), not reasoning. Cross-attention…

    Life & fun · May 2026 · github.com

  • 🌱 Private, quiet space for thinking. Simple app for .md files. - zakirullin/files.md

    Dev tools · May 2026 · github.com