frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A Lisp Interpreter for Shell Scripting

https://github.com/gue-ni/redstart
52•quintussss•3d ago
Redstart is a lightweight Lisp interpreter written in C++ with a focus on shell scripting. It lets you combine the expressive power of Lisp with the practicality of the Unix shell: you can run commands, capture output, pipe between processes, and still use Lisp syntax for logic and structure. Think of it as writing your shell scripts in Lisp instead of Bash.

Comments

esrh•2h ago
awesome! I have wanted something like this for a long time. Currently I use a janet fork <https://github.com/eshrh/matsurika> with some trivial additions, the most important of which is a `$` macro that does what the `sh` does here. I have two questions:

- I see that `sh` does not take in strings but instead lisp forms. How do you distinguish between variables that need to be substituted and commands? In my fork, the way to do variable substitution involves quasiquoting/unquoting. - Almost all of the features that make your language good for shell scripting are essentially syntactic features that can easily be implemented as a macro library for say, scheme. Why'd you choose to write in C++? Surely performance is not an important factor here. (I'm interested because I am currently working on a scheme-based shell scripting language).

antics9•1h ago
This looks good! I've seen other tries of shell scripting with lisp dialects but Redstart syntax looks more intuitive (from a shell scripting standpoint) and easy to read.
ctenb•1h ago
Very nice! I've often wondered how close you could get to a POSIX-like syntax with something like this while maintaining a LISP semantics as much as possible. Especially pipelines are much easier to read with the | and > operators. I guess you need some sort of LISP dialect that supports infix operators
lycopodiopsida•15m ago
Would take threading macros over pipelines every other day of the week.
sshine•4m ago
You can have regular shell infix pipes combined with Lisp/Scheme macros as control flow. I think the tradeoff that Schemesh is nice, even though it does sacrifice POSIX:

The best of both worlds of shell and Lisp is quick ability to run and pipe processes, and full programming functionality without the shell scripting shenanigans like obscure semantics and lack of good data structures.

sakesun•39m ago
If you don't mind .NET, BraidLang is another interesting project.
sshine•8m ago
Related: Schemesh — A Unix shell and Lisp REPL, fused together

https://github.com/cosmos72/schemesh

https://news.ycombinator.com/item?id=43061183 (7 months ago, 177 upvotes)

Meta Superintelligence's surprising first paper

https://paddedinputs.substack.com/p/meta-superintelligences-surprising
275•skadamat•10h ago•144 comments

Pipelining in psql (PostgreSQL 18)

https://postgresql.verite.pro/blog/2025/10/01/psql-pipeline.html
73•tanelpoder•4h ago•10 comments

The Flummoxagon

https://n-e-r-v-o-u-s.com/blog/?p=9827
24•robinhouston•4d ago•4 comments

Show HN: Rift – A tiling window manager for macOS

https://github.com/acsandmann/rift
127•atticus_•9h ago•56 comments

Show HN: Sober not Sorry – free iOS tracker to help you quit bad habits

https://sobernotsorry.app/
15•molozhenko•2h ago•8 comments

I/O Multiplexing (select vs. poll vs. epoll/kqueue)

https://nima101.github.io/io_multiplexing
37•pykello•3d ago•6 comments

Coral Protocol: Open infrastructure connecting the internet of agents

https://arxiv.org/abs/2505.00749
23•joj333•6h ago•1 comments

Ask HN: Abandoned/dead projects you think died before their time and why?

119•ofalkaed•11h ago•360 comments

Vancouver Stock Exchange: Scam capital of the world (1989) [pdf]

https://scamcouver.wordpress.com/wp-content/uploads/2012/04/scam-capital.pdf
88•thomassmith65•9h ago•40 comments

Anthropic's Prompt Engineering Tutorial

https://github.com/anthropics/prompt-eng-interactive-tutorial
143•cjbarber•15h ago•15 comments

Show HN: A Lisp Interpreter for Shell Scripting

https://github.com/gue-ni/redstart
52•quintussss•3d ago•7 comments

The World's 2.75B Buildings

https://tech.marksblogg.com/building-footprints-gba.html
45•marklit•4d ago•17 comments

A Guide for WireGuard VPN Setup with Pi-Hole Adblock and Unbound DNS

https://psyonik.tech/posts/a-guide-for-wireguard-vpn-setup-with-pi-hole-adblock-and-unbound-dns/
81•pSYoniK•14h ago•8 comments

Paper2Video: Automatic Video Generation from Scientific Papers

https://arxiv.org/abs/2510.05096
45•jinqueeny•10h ago•9 comments

Spyware maker NSO Group confirms acquisition by US investors

https://techcrunch.com/2025/10/10/spyware-maker-nso-group-confirms-acquisition-by-us-investors/
99•corvad•4h ago•61 comments

Microsoft only lets you opt out of AI photo scanning 3x a year

https://hardware.slashdot.org/story/25/10/11/0238213/microsofts-onedrive-begins-testing-face-reco...
609•dmitrygr•15h ago•211 comments

Floating Electrons on a Sea of Helium

https://arstechnica.com/science/2025/10/new-qubit-tech-traps-single-electrons-on-liquid-helium/
7•coloneltcb•3d ago•0 comments

The App Store was always authoritarian

https://infrequently.org/2025/10/the-app-store-was-always-authoritarian/
96•bertman•2h ago•59 comments

LineageOS 23

https://lineageos.org/Changelog-30/
229•cdesai•9h ago•90 comments

Testing two 18 TB white label SATA hard drives from datablocks.dev

https://ounapuu.ee/posts/2025/10/06/datablocks-white-label-drives/
177•thomasjb•6d ago•106 comments

CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

https://www.legitsecurity.com/blog/camoleak-critical-github-copilot-vulnerability-leaks-private-s...
37•greyadept•10h ago•9 comments

Windows Subsystem for FreeBSD

https://github.com/BalajeS/WSL-For-FreeBSD
258•rguiscard•1d ago•106 comments

How Apple designs a virtual knob (2012)

https://jherrm.github.io/knobs/
141•gregsadetsky•4d ago•89 comments

Google blocks Android hack that let Pixel users enable VoLTE anywhere

https://www.androidauthority.com/pixel-ims-broken-october-update-3606444/
155•josephcsible•10h ago•52 comments

Superpowers: How I'm using coding agents in October 2025

https://blog.fsck.com/2025/10/09/superpowers/
354•Ch00k•1d ago•185 comments

The World Trade Center under construction through photos, 1966-1979

https://rarehistoricalphotos.com/twin-towers-construction-photographs/
215•kinderjaje•5d ago•102 comments

The <output> Tag

https://denodell.com/blog/html-best-kept-secret-output-tag
763•todsacerdoti•1d ago•170 comments

Vibing a non-trivial Ghostty feature

https://mitchellh.com/writing/non-trivial-vibing
265•skevy•19h ago•124 comments

Beyond indexes: How open table formats optimize query performance

https://jack-vanlightly.com/blog/2025/10/8/beyond-indexes-how-open-table-formats-optimize-query-p...
59•jandrewrogers•3d ago•2 comments

GNU Health

https://www.gnuhealth.org/about-us.html
406•smartmic•17h ago•114 comments