frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Zrc, I tried making a Unix shell scripting language with Tcl syntax

https://github.com/Edd12321/zrc
3•edward_9x•1h ago

Comments

edward_9x•1h ago
Greetings, HN! This is a small project I first began working on around 2022 or 2023 or so, in high school. I learned quite a bit since then but I'd like to share it here anyways. I began to be curious about why shell languages implemented if statements and similar constructs not as plain commands in the true sense of the word (a sequence of whitespace separated tokens), but as special syntax. And I was also quite upset about the "quoting hell" in Bash and co.

So when I found out about Tcl, a language where everything is a string, including "code blocks". My first thought was "why doesn't this have pipes and execv* as first-class features like an actual shell?". And so Zrc was born.

Granted, the code is not production ready. But it's a sturdy little shell capable of some cool stuff, given that I implemented minesweeper and game of life in it, and I took the risk of daily driving it just because why not?

I've never written an interpreter before so the parsing technique may come off as ad-hoc to some, but it's certainly better than csh.

If I could have changed one thing about the design, maybe it would've been not adding expr at all. I'd have made control flow commands just call their first braced arg as a script (not as an arithmetic expression), and 0 would have been the truthy value and nonzero would be a non-truthy value (like in any other shell). I'd also have added rc's ~ command instead of regexp. And maybe I'd have replaced the <{...} and `{...} substitutions with special commands called ` and `<, to be used with [...] substitution.

Help Me Find Missing Issues of Australian Personal Computer

https://blog.decryption.net.au/posts/apc-callout.html
1•naves•1m ago•0 comments

LoongArch Reference Manual

https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
1•welovebunnies•2m ago•0 comments

The new light of Jony Ive's life

https://www.wallpaper.com/design-interiors/lighting/jony-ive-lovefrom-balmuda-sailing-lantern
2•Nrbelex•4m ago•0 comments

Claude 4.5, AI Biology and World Models

https://cmpld.ai/issues/003/
1•mantcz•6m ago•0 comments

Mexico: Tax Code reform seeks permanent access to data from digital platforms

https://articulo19.org/reforma-al-codigo-fiscal-pretende-acceso-permanente-a-datos-de-plataformas...
1•CharlesW•6m ago•0 comments

Ask HN: Any local agents to help repetitive browser tasks?

2•pcdoodle•8m ago•0 comments

Claude Sonnet 4.5 is probably the "best coding model in the world", at least now

https://simonwillison.net/2025/Sep/29/claude-sonnet-4-5/
1•coloneltcb•8m ago•0 comments

RealClimate: "But you said the ice was going to disappear in 10 years "

https://www.realclimate.org/index.php/archives/2025/09/but-you-said-the-ice-was-going-to-disappea...
3•speckx•10m ago•0 comments

DIY Flight Simulator Motion Rig [video]

https://www.youtube.com/watch?v=YphV5v7aZSg
1•gregsadetsky•10m ago•0 comments

Kagi Translate appears to be down - giving HTTP 400 false positive

1•casenmgreen•10m ago•0 comments

99% of heart attack, stroke cases linked to preventable risk factors

https://www.medicalnewstoday.com/articles/heart-attack-stroke-heart-failure-linked-to-preventable...
2•akyuu•11m ago•0 comments

Olly – AI Native Observability

https://olly.new
1•pranay01•12m ago•0 comments

Why the Hertz-Amazon deal poses threats to auto dealers

https://www.cnbc.com/2025/09/29/hertz-amazon-auto-dealers.html
1•e2e4•13m ago•0 comments

An insurance company is introducing a new threat to American medicine

https://www.statnews.com/2025/09/29/cigna-downcoding-prior-authorization-doctors-bureaucracy/
2•bikenaga•15m ago•0 comments

Learn Kubernetes Security book, second edition just published

https://www.amazon.com/Learning-Kubernetes-Security-containerized-environments-ebook/dp/B0F5VZ3CRX
2•bernardoortega•16m ago•0 comments

Energy Dept. adds 'climate change' and 'emissions' to banned words list

https://www.politico.com/news/2025/09/28/energy-department-climate-change-emissions-banned-words-...
11•doener•16m ago•0 comments

The Handoff to Bots

https://kevinkelly.substack.com/p/the-handoff-to-bots
3•thm•18m ago•1 comments

DuckDB can be 5x faster than Spark at 500M record files

https://blog.dataexpert.io/p/duckdb-can-be-100x-faster-than-spark
1•peterdstallion•18m ago•1 comments

Photos show 44,000-year-old mummified wolf discovered in Siberian permafrost (2024)

https://www.livescience.com/animals/extinct-species/stunning-photos-show-44000-year-old-mummified...
1•binning•19m ago•1 comments

Buckley Institute Releases Eleventh Annual National Undergraduate Student Survey

https://buckleyinstitute.com/buckley-institute-releases-eleventh-annual-national-undergraduate-st...
1•mhb•19m ago•0 comments

A DHT for iroh – Part 1, The Protocol

https://www.iroh.computer/blog/lets-write-a-dht-1
1•g0xA52A2A•19m ago•0 comments

When AI is trained for treachery, it becomes the perfect agent

https://www.theregister.com/2025/09/29/when_ai_is_trained_for/
2•rntn•19m ago•0 comments

Omi – A Fast Pokémon Card Scanner

https://tcgscanneromi.com/
1•crovillas•20m ago•1 comments

Finding stillness and focus in the chaos of open source

https://ruthcheesley.co.uk/blog/buddhism/finding-stillness-and-focus-in-the-chaos-of-open-source
1•mooreds•20m ago•0 comments

Offshore to onshore: Europe expands carbon storage with nature-inspired tech

https://projects.research-and-innovation.ec.europa.eu/en/horizon-magazine/offshore-onshore-europe...
1•PaulHoule•21m ago•0 comments

First highway sign with Superchargers, more to come

https://twitter.com/TeslaCharging/status/1970987475951903142
1•toomuchtodo•21m ago•0 comments

Beyond Reading the RFC: How to Shape Identity Standards

https://ciamweekly.substack.com/p/beyond-reading-the-rfc-how-to-actually
1•mooreds•21m ago•0 comments

DeepSeek-v3.2-Exp: Long-Context Efficiency with DeepSeek Sparse Attention [pdf]

https://github.com/deepseek-ai/DeepSeek-V3.2-Exp/blob/main/DeepSeek_V3_2.pdf
1•g42gregory•22m ago•0 comments

Agentic Commerce Protocol

https://developers.openai.com/commerce/guides/get-started/
1•brandonb•23m ago•1 comments

Cloudflare Confidence Scorecards to Deal with Shadow IT/AI

https://blog.cloudflare.com/cloudflare-confidence-scorecards-making-ai-safer-for-the-internet/
1•nilsandrey•24m ago•0 comments