frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A small programming language where everything is a value

https://github.com/Jcparkyn/herd
22•jcparkyn•1h ago
This is a hobby project of mine that I started a few years ago to learn about programming language implementation. It was created 95% without AI, although a few recent commits include code from Gemini CLI.

I started out following Crafting Interpreters, but gradually branched off that until I had almost nothing left in common.

Tech stack: Rust, Cranelift (JIT compilation), LALRPOP (parser).

Comments

discarded1023•9m ago
At the risk of telling you what you already know and/or did not mean to say: not everything can be a value. If everything is a value then no computation (reduction) is possible. Why? Because computation stops at values. This is traditional programming language/lambda calculus nomenclature and dogma. See Plotkin's classic work on PCF (~ 1975) for instance; Winskel's semantics text (~ 1990) is more approachable.

Things of course become a lot more fun with concurrency.

Now if you want a language where all the data thingies are immutable values and effects are somewhat tamed but types aren't too fancy etc. try looking at Milner's classic Standard ML (late 1970s, effectively frozen in 1997). It has all you dream of and more.

In any case keep having fun and don't get too bogged in syntax.

ekipan•7m ago
"Everything is a value" is not very informative. That's true of most languages nowadays. Maybe "exclusively call-by-value" or "without reference types."

I've only read the first couple paragraphs so far but the idea reminds me of a shareware language I tinkered with years ago in my youth, though I never wrote anything of substance: Euphoria (though nowadays it looks like there's an OpenEuphoria). It had only two fundamental types: the atom, a possibly floating point number, and the sequence: a list of zero or more atoms and sequences. Strings in particular are just sequences of codepoint atoms.

It had a notion of "type"s which were functions that returned a boolean 1 only if given a valid value for the type being defined. I presume it used byte packing and copy-on-write or whatever for its speed boasts.

https://openeuphoria.org/

https://rapideuphoria.com/

rvba•6m ago
> In herd, everything is immutable unless declared with var

So basucally everything is var?

Why Some People See Collapse Earlier Than Others

https://adrianlambert.substack.com/p/why-some-people-see-collapse-earlier
1•zeech•15s ago•0 comments

SHDL – A Minimal Hardware Description Language Built from Logic Gates

1•rafa_rrayes•2m ago•0 comments

I cut Claude API costs from $70/month to pennies

1•ok_orco•3m ago•1 comments

LLMs vs. Geolocation: GPT-5 Performs Worse Than Other AI Models (2025)

https://www.bellingcat.com/resources/2025/08/14/llms-vs-geolocation-gpt-5-performs-worse-than-oth...
1•mooreds•3m ago•0 comments

Parsing Counter-Strike 2 demo files in .NET

https://counterstrike.blog/blog/guides/extract-demo-files-csharp/
1•sieep•4m ago•0 comments

Field of clones: How horse replicas came to dominate polo

https://knowablemagazine.org/content/article/technology/2026/cloned-polo-horses
1•wjb3•4m ago•0 comments

Clawdbot - open source personal AI assistant

https://github.com/clawdbot/clawdbot
2•KuzeyAbi•10m ago•0 comments

Does Pentagon Pizza Theory Work?

https://www.lesswrong.com/posts/Li3Aw7sDLXTCcQHZM/does-pentagon-pizza-theory-work
1•nreece•14m ago•0 comments

Insect Pollination Before Angiosperms and Lessons for Modern Ecosystems

https://www.mdpi.com/2075-4450/17/1/103
1•PaulHoule•17m ago•0 comments

PyTorch to CoreML converter that generates production Swift/Kotlin code

https://refactor-ai-website.vercel.app/#
1•AbdoulayeSeydi•17m ago•0 comments

The Engineer who invented the Mars Rover Suspension [video]

https://www.youtube.com/watch?v=QKSPk_0N4Jc
1•skrubis•17m ago•0 comments

Zip Game Unlimited

https://zipgameonline.com
1•jgsteven•18m ago•0 comments

/Sanctuary – A Terminal Elegy

https://a-life.vercel.app/
1•mattcbaker•18m ago•0 comments

Conservatism Consists of One Proposition

https://crookedtimber.org/2018/03/21/liberals-against-progressives/
1•ravenical•19m ago•0 comments

AI Took Control of My Life and I Love It

https://www.thefp.com/p/ai-took-control-of-my-life-and-i
1•mhb•20m ago•0 comments

If You Want Different Outcomes, You Have to Do Different Things

https://freddiedeboer.substack.com/p/if-you-want-different-outcomes-you
1•c0nsumer•23m ago•0 comments

The Engineering Behind Clawdbot

https://vindler.solutions/blog/clawdbot-technical-deep-dive
1•cdutra•24m ago•0 comments

The clever way food trucks are now using e-bike batteries

https://electrek.co/2026/01/25/the-clever-way-food-trucks-are-now-using-e-bike-batteries/
3•jerlam•26m ago•0 comments

Scientists Identify Brain Waves That Define the Limits of 'You'

https://www.sciencealert.com/scientists-identify-brain-waves-that-define-the-limits-of-you
2•mikhael•27m ago•0 comments

GNU Guix 1.5.0 Released

https://guix.gnu.org/blog/2026/gnu-guix-1.5.0-released/
1•_emacsomancer_•29m ago•0 comments

Show HN: Beach Report – Real-time beach conditions, weather, and surf reports

https://beach.report
1•theantonym•29m ago•0 comments

Halley's Comet wrongly named: 11th-century English monk predates British astrono

https://phys.org/news/2026-01-halley-comet-wrongly-11th-century.html
5•bookmtn•30m ago•1 comments

Tell HN: I Have Won HN

10•neilv•33m ago•6 comments

Cool Discussion on Signs

https://old.reddit.com/r/OpenChristian/comments/13ogqcn/signs_from_god_does_anyone_feel_this_actu...
1•marysminefnuf•38m ago•2 comments

MIT-Human License Proposal

https://github.com/tautvilas/MIT-Human/blob/main/LICENSE
2•brisky•39m ago•3 comments

Trade an alliance for an island? That's a bad deal

https://www.cnn.com/2026/01/25/politics/greenland-nato-ancient-greece-expert-analysis
2•breve•40m ago•0 comments

De-Vibing a Codebase

https://dumbideas.xyz/posts/de-vibing-a-codebase/
2•omegastick•41m ago•0 comments

Google's Gist: Greedy Independent Set Thresholding for Retrieval Explained

https://websiteaiscore.com/blog/gist-vector-exclusion-zones
2•aggeeinn•42m ago•1 comments

Show HN: GroqBash – Single‑File Bash Client for Groq API

https://github.com/kamaludu/groqbash
1•kamaludu•44m ago•0 comments

"We're aware of the DMCA takedown notice of julialang logo by an OF creator"

https://twitter.com/KenoFischer/status/2014327875277602983
6•sundarurfriend•45m ago•0 comments