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•11mo 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

Surprising Signs of an Atmosphere Around a Tiny World, Billions of Miles Away

https://www.nytimes.com/2026/05/07/science/plutino-atmosphere-astronomy-pluto.html
1•lxm•6m ago•0 comments

Energy Prices Are Driving Demand for Solar Panels and Heat Pumps

https://www.nytimes.com/2026/05/08/business/europe-solar-panels-iran-war.html
1•lxm•7m ago•0 comments

Catch breaking API changes before merge

https://ImpactGuard.dev
1•dclavijo•11m ago•0 comments

Challenging the Way We Pedal

https://hackaday.com/2026/05/09/challenging-the-way-we-pedal/
1•lxm•14m ago•0 comments

Mariculture Systems to begin the construction of Portugal aquaculture facility

https://www.seafoodsource.com/news/aquaculture/mariculture-systems-approved-to-begin-the-construc...
1•mooreds•14m ago•0 comments

How we know if our agent is right

https://www.mendral.com/blog/how-we-know-if-our-agent-is-right
2•shad42•16m ago•0 comments

A Preview of the Future

https://unsung.aresluna.org/a-preview-of-the-future/
2•zdw•19m ago•0 comments

Make America AI Ready: Strengths, Weaknesses, and Recommendations

https://blog.citp.princeton.edu/2026/05/05/make-america-ai-ready-strengths-weaknesses-and-recomme...
2•Kye•23m ago•0 comments

Bonsai of the Imperial Palace [video]

https://www.youtube.com/watch?v=HXoECYXr_Bk
1•tkgally•25m ago•0 comments

Diversity as the Bottleneck in Self-Play

https://ivison.id.au/2026/05/06/self-play.html
1•jxmorris12•25m ago•0 comments

Learning on the Shop floor

https://twitter.com/tobi/status/2053121182044451016
1•jmacd•26m ago•0 comments

New map shows where electric truck charging is scaling

https://electrek.co/2026/05/08/new-map-electric-truck-charging-is-scaling/
2•Bender•30m ago•0 comments

¡Hola, soy DORA. Why hasn't AI improved my metrics?

https://www.vaines.org/posts/2026-05-09-why-hasnt-ai-improved-my-metrics/
1•gpi•33m ago•0 comments

UK wants fresh fingerprints on £300M biometrics platform

https://www.theregister.com/public-sector/2026/05/09/uk-wants-fresh-fingerprints-on-300m-biometri...
1•Bender•40m ago•0 comments

The new Wild West of AI kids' toys

https://www.wired.com/story/the-new-wild-west-of-ai-kids-toys/
1•Bender•41m ago•0 comments

AI Productivity Fails

https://blog.sshh.io/p/how-ai-productivity-fails
3•sshh12•50m ago•0 comments

You Need AI That Reduces Maintenance Costs

https://www.jamesshore.com/v2/blog/2026/you-need-ai-that-reduces-your-maintenance-costs
3•cratermoon•53m ago•0 comments

PS3 Emulator Devs Politely Ask That People Stop Flooding It with AI PRs

https://kotaku.com/playstation-3-emulator-devs-politely-ask-that-people-stop-flooding-it-with-ai-...
26•stalfosknight•56m ago•6 comments

Usein

1•USEIN•59m ago•0 comments

Rep. Crane Introduces Legislation to Pause and Reform the Broken H-1B Visa

https://crane.house.gov/2026/04/22/rep-crane-introduces-legislation-to-pause-and-reform-the-broke...
5•rawgabbit•1h ago•1 comments

Zero-native by Vercel: Build tiny desktop and mobile apps with Zig and web UI

https://github.com/vercel-labs/zero-native
1•maxloh•1h ago•0 comments

Antikythera Mechanism (oldest known analogue computer)

https://www.historyofinformation.com/detail.php?id=120
3•p0u4a•1h ago•0 comments

Show HN: Gawk Dev – live feed tracking what's happening across AI tools

https://gawk.dev
1•Srinathprasanna•1h ago•0 comments

You can have your composer.lock and not make others eat it too

https://kevinullyott.com/blog/2026-05-05-composer-lock-gitattributes/
1•orrison•1h ago•0 comments

Riding the D in Los Angeles: city hopes new subway stations will be game changer

https://www.theguardian.com/us-news/2026/may/09/los-angeles-subway-public-transportation
6•raybb•1h ago•0 comments

Running local models on an M4 with 24GB memory

https://jola.dev/posts/running-local-models-on-m4
40•shintoist•1h ago•26 comments

The Mythology of Rice and Beans

https://economistwritingeveryday.com/2024/12/13/the-mythology-of-rice-and-beans/
1•ksymph•1h ago•0 comments

How Fast Does Claude, Acting as a User Space IP Stack, Respond to Pings?

https://dunkels.com/adam/claude-user-space-ip-stack-ping/
2•adunk•1h ago•0 comments

ReactOS ARM64-port finally boots to desktop and even works

https://www.youtube.com/watch?v=c1LjnFKGDhQ
3•jeditobe•1h ago•1 comments

Canada admits bill C-22 would allow govt to secretly order microphone activation

https://xcancel.com/rebelprazz/status/2053606378238009832#m
7•CGMthrowaway•1h ago•1 comments