frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Building a Shell

https://healeycodes.com/building-a-shell
38•ingve•1h ago

Comments

zokier•33m ago
Bit of pedantry but I don't think traditional unix shell (like this) follows repl model; the shell is not usually doing printing of the result of evaluation. Instead the printing happens more as a side effect of the commands.
lvales•23m ago
Building a shell is a great exercise, but honestly having to deal with string parsing is such a bother that it robs like 2/3 of the joy along the way. I once built a very simple one in Go [0] as a learning exercise and I stopped once I started getting frustrated with all the corner cases.

[0] https://github.com/lourencovales/codecrafters/blob/master/sh...

healeycodes•18m ago
Author here, and yeah, I agree. I skipped writing a parser altogether and just split on whitespace and `|` so that I could get to the interesting bits.

For side-projects, I have to ask myself if I'm writing a parser, or if I'm building something else; e.g. for a toy programming language, it's way more fun to start with an AST and play around, and come back to the parser if you really fall in love with it.

hristian•16m ago
The corner cases are exactly where the learning is though. Every time you hit one unquoted spaces, escaped characters, subshell expansion — you understand something deeper about how the OS actually works. The frustration is the point. Most developers never have to think about what the shell is actually doing between their keystrokes and the kernel.
Retr0id•11m ago
Fascinating that you resurrected an account from 2014 just for LLM spam, were the credentials compromised or something?
gf000•10m ago
Not sure it tells all that much about 'how the OS works'. This is a historical abstraction that happened to look how it looks today with all its numerous warts and shortcomings.

We can easily imagine it done a better way - for all the criticism of Windows, PowerShell gives a glimpse into this hypothetical future.

mzs•11m ago
Had an assignment to build a shell in a week, how hard could it be?

  controlling terminal
  session leader
  job control
The parser was easy in comparison.

My Self-Driving Car Crash – The Tesla was driving perfectly–until it wasn't

https://www.theatlantic.com/magazine/2026/04/self-driving-car-technology-tesla-crash/686054/
2•ForHackernews•2m ago•1 comments

Show HN: Autofoundry – Run autoresearch experiments across cloud GPUs

https://github.com/shea256/autofoundry
1•shea256•2m ago•0 comments

Django Studio: generator for modern Django projects

https://github.com/danjac/django-studio
1•danjac•2m ago•0 comments

Scheduling seems simple until you try to build it

https://www.slotflow.dev/blog/scheduling-complexity-ai-agents
1•nestorkoylyak•3m ago•1 comments

"Illusion of competence": Almost 80% of university students in Australia use AI

https://theconversation.com/almost-80-of-australian-uni-students-now-use-ai-this-is-creating-an-i...
1•heresie-dabord•4m ago•0 comments

Solving Cryptic Crosswords with Egraphs

https://buttondown.com/jaffray/archive/solving-cryptic-crosswords-with-egraphs/
1•ibobev•4m ago•0 comments

OWASP PTK 9.7.0 is out for Chromium and Firefox

1•DenisPodgurskii•4m ago•0 comments

GhostLink

https://holy-ruzz.web1337.net/
1•chad_broskii•7m ago•0 comments

Show HN: An Article About How I Starting Programming

https://artificesoftware.com/articles/how_i_started_programming.html
1•ArtificeAccount•7m ago•0 comments

Show HN: A club for anyone with a symmetric DNS name

https://zq.suns.bz//:sdʇʇɥ
1•mrled•10m ago•0 comments

The Math That Explains Why Bell Curves Are Everywhere

https://www.quantamagazine.org/the-math-that-explains-why-bell-curves-are-everywhere-20260316/
2•Brajeshwar•10m ago•0 comments

UK Invests £180M in National Timing Centre to Back Up GNSS

https://insidegnss.com/uk-invests-180-million-in-national-timing-centre-to-back-up-gnss/
1•throw0101c•10m ago•0 comments

AI firm Anthropic seeks weapons expert to stop users from 'misuse'

https://www.bbc.com/news/articles/c74721xyd1wo
1•BiraIgnacio•11m ago•0 comments

Show HN: I compiled every direct quote of Jesus into a single-page reading tool

https://jesuswords.me/
1•philll•14m ago•0 comments

How to Build an Enterprise-Scale GenAI Gateway

https://aws.amazon.com/blogs/industries/how-to-build-an-enterprise-scale-genai-gateway/
1•mariuz•17m ago•0 comments

Zoox and Uber Announce Strategic Partnership

https://investor.uber.com/news-events/news/press-release-details/2026/Zoox-and-Uber-Announce-Stra...
1•JumpCrisscross•18m ago•0 comments

Initial Microstructure and Diode Laser Surface Hardening of Medium-Carbon Steels

https://www.mdpi.com/1996-1944/19/5/981
1•PaulHoule•18m ago•0 comments

Border0 Is Joining Tailscale

https://tailscale.com/blog/border0-joins-tailscale
2•usrme•19m ago•0 comments

Icewarp CVE-2025-14000 Technical Analysis

https://mileniumsec.com/blog/icewarp-cve-2025-14500-root-cause-reverse-engineering
2•azqzazq•19m ago•0 comments

You Could Be Next

https://www.theverge.com/cs/features/877388/white-collar-workers-training-ai-mercor
2•Michelangelo11•20m ago•0 comments

Tmux enables AIs to operate servers safely

https://blog.est.im/2026/stdout-11
2•est•20m ago•0 comments

31,828 silver contracts were somehow traded in COMEX while trading was halted

https://no01.substack.com/p/technical-issues
3•OgsyedIE•20m ago•0 comments

We Use Our AI Testing Tool to Test Our AI Testing Tool

https://aiqaramba.com/blog/ai-testing-ai-recursive-qa-loop/
2•arogiers•21m ago•0 comments

Show HN: Inferential – Multi-robot inference scheduling on shared GPUs

https://github.com/nalinraut/inferential
2•nalinraut•22m ago•0 comments

Pokemon Yellow rewritten in TypeScript, runs in the browser

https://github.com/gididaf/retro-rom-player
2•gididaf•22m ago•0 comments

Ok

3•yuvrajdahal•25m ago•2 comments

Show HN: Traul – Local-first search engine for all comms for AI agents

https://github.com/dandaka/traul
3•dandaka•25m ago•0 comments

Socratic Ecosystem

https://github.com/Nireus79/Socrates
2•Nireus79•26m ago•0 comments

87% of AI-Generated Pull Requests Ship Security Vulnerabilities

https://grith.ai/blog/87-percent-of-ai-pull-requests-ship-vulnerabilities
4•edf13•27m ago•0 comments

Unnecessary and Unstable: Why Stablecoins Are Bad

https://www.stephendiehl.com/posts/stablecoins_bad/
3•dpmartinez•30m ago•0 comments