frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Jsonnet implementation in Jsonnet

https://github.com/Duologic/jsonnet-in-jsonnet
1•Duologic•8mo 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

Trump Is Risking a Global Catastrophe

https://www.theatlantic.com/ideas/2026/01/trump-greenland-risk-global-conflict/685616/
1•perihelions•39s ago•0 comments

Reddit Is Down

https://old.reddit.com
2•jerhewet•1m ago•2 comments

Ask HN: Best setup for Golang HTTP API development in 2026?

1•labarilem•5m ago•0 comments

Show HN: Epistemic Protocols – Decision Checkpoints for Claude Code

https://github.com/jongwony/epistemic-protocols
1•jongwony•5m ago•0 comments

Wolfspeed Achieves 300mm Silicon Carbide (Sic) Technology Breakthrough

https://www.wolfspeed.com/company/news-events/news/wolfspeed-achieves-300mm-silicon-carbide-sic-t...
1•osnium123•6m ago•1 comments

Apple: You (Still) Don't Understand the Vision Pro

https://stratechery.com/2026/apple-you-still-dont-understand-the-vision-pro/
1•m463•8m ago•0 comments

Better Convex

https://www.better-convex.com/
1•handfuloflight•8m ago•0 comments

Treatment of Exploding Head Syndrome with Ketamine

https://www.cureus.com/articles/434424-successful-treatment-of-exploding-head-syndrome-with-ketamine
1•wjb3•9m ago•0 comments

Choose Boring Technology (2015)

https://mcfunley.com/choose-boring-technology
1•tarasyarema•10m ago•1 comments

How I'd Build a Platform in 2026

https://twitter.com/burcs/status/2011542877420294233
1•handfuloflight•11m ago•0 comments

Grub 2.14 Released

https://lists.gnu.org/archive/html/grub-devel/2026-01/msg00029.html
1•cbmuser•12m ago•0 comments

Translation of Ingarden's "Controversy over the Existence of the World: Vol. I"

https://library.oapen.org/bitstream/handle/20.500.12657/90159/9783653037678.pdf?sequence=1&isAllo...
1•danielam•13m ago•0 comments

SpaceX Introduces New Residential Starlink Service Plans in the U.S.

https://twitter.com/SawyerMerritt/status/2011567264643105273
1•dayyan•15m ago•2 comments

Joe Rogan Blasts Trump's "Gestapo" ICE

https://www.axios.com/2026/01/14/ice-trump-joe-rogan-immigration-minneapolis-shooting
7•leopoldj•16m ago•5 comments

Siblings Who Say Michael Jackson Molested Them Appear in Court

https://www.rollingstone.com/music/music-news/michael-jackson-siblings-molested-1235499441/
2•handfuloflight•16m ago•0 comments

US, for first time in 50 years, experienced negative net migration in 2025

https://abcnews.go.com/US/us-1st-time-50-years-experienced-negative-net/story?id=129175522
2•pqtyw•16m ago•0 comments

Rewiring My HVAC to Maximize My EcoBee's Control Capabilities

https://benhouston3d.com/blog/upgrading-hvac-control
3•bhouston•18m ago•0 comments

Gas Town Decoded

https://www.alilleybrinker.com/mini/gas-town-decoded/
1•alilleybrinker•19m ago•0 comments

ICE Is Waging War on Blue Cities

https://www.nytimes.com/2026/01/14/opinion/ice-trump-minnesota.html
4•mickle00•19m ago•0 comments

We built a browser with GPT-5.2 in Cursor

https://twitter.com/mntruell/status/2011562190286045552
2•jacobedawson•20m ago•0 comments

Hopper – A Gopher/Gemini Protocol Browser for Playdate

https://tkers.itch.io/hopper
1•rickcarlino•23m ago•0 comments

It's illegal to build a gaydar in the EU

https://artificialintelligenceact.eu/high-level-summary/
1•jordigh•25m ago•0 comments

With tensions high, Israel and Iran reassured each other via Russia

https://www.washingtonpost.com/world/2026/01/14/israel-iran-russia-secret-messages/
2•ent101•25m ago•0 comments

AI code creates 1.7x more problems

https://www.coderabbit.ai/blog/state-of-ai-vs-human-code-generation-report?ck_subscriber_id=26164...
1•krinn_silver•28m ago•1 comments

The motivic class of the space of genus $$0 maps to the flag variety

https://arxiv.org/abs/2601.07222
2•gmays•28m ago•0 comments

Show HN: Forecats – Weather-themed images of your cats in Home Assistant

https://github.com/jwardbond/forecats
2•jwardbond•28m ago•0 comments

Ask HN: Weird Archive.today Behavior?

2•rabinovich•28m ago•0 comments

ChromaDB Explorer

https://www.chroma-explorer.com/
1•arsentjev•28m ago•0 comments

US Debt Monitor Live

https://www.us-debt-clock.com/
2•vednig•29m ago•1 comments

Show HN: Smart Tab Suspender – Reduce Chrome memory usage by autosuspending tabs

https://chromewebstore.google.com/detail/smart-tab-suspender/mmhfonkfehekiofpkjiofjeoofloidog
1•yavuzyildirim•32m ago•0 comments