frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Jsonnet implementation in Jsonnet

https://github.com/Duologic/jsonnet-in-jsonnet
1•Duologic•1y ago
I've written a Jsonnet interpreter in Jsonnet.

A few years ago I wrote a code generator for Jsonnet (crdsonnet [1]) and found templating insufficient. This lead me to create a JSON Schema for the language along with a library[2] that can manifest the expressions reliably. I was unaware that this was an intermediate representation (in the world of interpreters). Fun fact: while cdrsonnet uses astsonnet to generate code, astsonnet is partially generated by crdsonnet.

Last year I got curious and wrote a parser, first without a lexer (I didn't knew I needed it) and later with a lexer (Oh, did my code got way more manageable). The code gets parsed into this intermediate representation, with other words using JSON Schema as a type system for Jsonnet.

This year I got curious again and tried to execute the code from within Jsonnet as well, past weekend I finally reached a point where I could reliably execute most of the test cases from the go-jsonnet repository.

It was an interesting learning experience and it gave me a much deeper understanding of how programming languages work in general.

[1] https://github.com/crdsonnet/crdsonnet

[2] https://github.com/crdsonnet/astsonnet

Memory Safety's Hardest Problem

https://matklad.github.io/2026/07/20/memory-safety-hardest-problem.html
1•miniBill•47s ago•0 comments

Continuation-Centric Computing with Arca

https://www.usenix.org/conference/osdi26/presentation/srivatsan
1•matt_d•1m ago•0 comments

Vortex – a Bluetooth-first alternative to KDE Connect

https://github.com/zoir-dev/vortex
1•zoyirjon•3m ago•0 comments

Ask HN: Teach Me Something New

1•chistev•3m ago•0 comments

Trump lashes out at 'fake news' jokes about 2028 presidential run, in press gala

https://www.france24.com/en/americas/20260725-trump-lashes-out-at-fake-news-and-jokes-about-2028-...
1•JPLeRouzic•3m ago•0 comments

Attorney General Bonta Secures Deal Halting Warner Bros

https://oag.ca.gov/news/press-releases/attorney-general-bonta-secures-deal-halting-warner-bros-pa...
1•01-_-•4m ago•0 comments

Australia's Next Target in the War on Kids Online: Your VPN

https://www.techdirt.com/2026/07/20/australias-next-target-in-the-war-on-kids-online-your-vpn/
1•01-_-•4m ago•0 comments

Against Slop: An Interview with Meghan O'Gieblyn

https://substack.nybooks.com/p/against-slop-an-interview-with-meghan
1•Michelangelo11•6m ago•0 comments

QBE Build Script for Windows

https://codeberg.org/codemplasi/QBE-Compiler-Backend-for-windows
1•triilman•8m ago•1 comments

A Rubyist in Go Land: Your First Pokémon API Client

https://baweaver.com/writing/2026/07/24/a-rubyist-in-go-land-your-first-pokemon-api-client/
1•thunderbong•8m ago•0 comments

The Last Honest Movie Star [video]

https://www.youtube.com/watch?v=1leVuo5M6w4
2•7777777phil•8m ago•0 comments

Amazon cuts some jobs in its artificial general intelligence unit

https://www.cnbc.com/2026/07/22/amazon-lays-off-some-employees-in-its-agi-unit.html
5•mgh2•11m ago•0 comments

Show HN: TS Compiler Knowledge Graph reducing AI tokens about 90%

https://github.com/samchon/ttsc/tree/master/packages/graph
2•autobe•12m ago•0 comments

Canadian woman who was NATO intern arrested in Belgium on spying charge

https://www.reuters.com/world/china/canadian-woman-who-was-nato-intern-arrested-belgium-spying-ch...
3•doener•12m ago•0 comments

Rhythm 0

https://en.wikipedia.org/wiki/Rhythm_0
2•hopelessluca•14m ago•0 comments

General Resolution: LLM Usage in Debian

https://www.debian.org/vote/2026/vote_002
4•ckastner•19m ago•0 comments

MouthPad is now available – control devices with your tongue [video]

https://www.youtube.com/watch?v=xReyIF5pwRo
3•Barbing•22m ago•1 comments

Lucky 13 Starship sends out satellites and stays intact

https://cosmiclog.com/2026/07/24/lucky-13-starship-sends-out-satellites-and-stays-intact/
2•ColinWright•25m ago•1 comments

When Notion Becomes Too Much and Obsidian Not Enough

https://rizz.dev/blog/guides/notion-versus-obsidian
1•rizzdev•27m ago•0 comments

Watching Go's new garbage collector move through the heap

https://theconsensus.dev/p/2026/07/19/observing-gos-garbage-collector-old-and-new.html
2•matheusmoreira•30m ago•0 comments

Escaping the Sandbox

https://netwars.pelicancrossing.net/2026/07/24/escaping-the-sandbox/
2•ColinWright•32m ago•0 comments

DOE Launching First Fault-Tolerant Quantum Computer Initiative

https://www.energy.gov/science/articles/energy-department-announces-initiative-create-and-deploy-...
1•donutloop•34m ago•0 comments

Why Sodaslim Is Becoming a Popular Healthy Beverage

https://finance.yahoo.com/healthcare/articles/sodaslim-releases-updated-2026-highlights-122400710...
1•marlonfoltz•34m ago•0 comments

MouthPad: A Tongue-Controlled Touchpad

https://www.augmental.tech/
3•ZaninAndrea•34m ago•0 comments

Secretary Wright Announces First AI "Genesis Mission" Projects

https://www.energy.gov/articles/secretary-energy-chris-wright-announces-first-genesis-mission-pro...
3•donutloop•35m ago•0 comments

At the altar of AI capex, Google is sacrificing the golden goose

https://twitter.com/i/status/2080229375773941871
1•Michelangelo11•35m ago•0 comments

How the Other Half Scams

https://netwars.pelicancrossing.net/2026/07/17/how-the-other-half-scams/
1•ColinWright•36m ago•0 comments

Show HN: Elizabeth Line Guide (London) – Live departures, timetables, fares

https://elizabethlineguide.com
1•ahallan•37m ago•0 comments

Pennsylvania roads are being coated in radioactive wastewater

https://theconversation.com/pennsylvania-roads-are-being-coated-in-radioactive-wastewater-heres-w...
1•geox•38m ago•0 comments

The Library and the Librarian: Why AI Needs Two Different Brains

https://www.innerkore.com/blog/library-and-librarian/
3•gagan2020•45m ago•1 comments