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

Switzerland to vote on plan to cap population at 10 million

https://www.bbc.com/news/articles/cx23kz7e76po
1•breve•31s ago•0 comments

4 things to know about the new sunscreen ingredient the FDA approved

https://www.npr.org/2026/06/13/nx-s1-5856385/sunscreen-skin-protection-bemotrizinol
2•mikhael•4m ago•0 comments

The "Best" HN Comments

https://news.ycombinator.com/bestcomments
2•embedding-shape•5m ago•0 comments

There is no such thing as an AI 'artist'

https://www.spiked-online.com/2026/06/07/there-is-no-such-thing-as-an-ai-artist/
2•mikelgan•7m ago•0 comments

The AI supply chain is a software supply chain with new failure modes

https://blog.r-lopes.com/newsletter/2026-06-03
2•dovelome•8m ago•0 comments

Fable 5: They switched off my AI mid-build. The timeline is the story

https://medium.com/@alirezarezvani/fable-5-anthropic-and-us-gorvernment-how-ai-export-controls-ju...
2•jungard•8m ago•0 comments

FDA OKs first new sunscreen ingredient in more than 25 years

https://apnews.com/article/sunscreen-fda-bemotrizinol-ingredient-uva-protection-9b9c7e04b418b3c9c...
4•marc__1•9m ago•0 comments

The Future of Software Engineering Is Here; It's Just Not Evenly Distributed

https://twitter.com/jmugan/status/2065962078322438524
2•jmugan•13m ago•0 comments

Goldman and Morgan Stanley to Pocket $100M Each in SpaceX IPO Fees

https://www.wsj.com/livecoverage/spacex-ipo-stock-market-06-12-2026/card/goldman-and-morgan-stanl...
2•vismit2000•13m ago•0 comments

Color Photos of Stalin-Era Soviet Union Taken by a US Diplomat

https://rarehistoricalphotos.com/stalin-era-soviet-union-pictures-martin-manhoff/
2•Cider9986•15m ago•0 comments

Anthropic's Economic Policy Framework [pdf]

https://www-cdn.anthropic.com/files/4zrzovbb/website/9ea607a5dd67c168093829b701f3a0a6d21156d5.pdf
2•jonbaer•15m ago•0 comments

Policy on the AI Exponential

https://www.anthropic.com/policy-on-the-ai-exponential/epf
2•jonbaer•16m ago•0 comments

10th Gen Honda Civic Updates Are Signed with AOSP Test Keys

https://juniperspring.org/posts/honda-evil-valet/
3•librick•25m ago•1 comments

The Difference Between Rest and Idleness

https://idle.news/blog/on-the-difference-between-rest-and-idleness/
2•vinhnx•30m ago•0 comments

We're combatting AI scams with security, legislation and more

https://blog.google/innovation-and-ai/technology/safety-security/combatting-ai-scams/
2•gnabgib•30m ago•0 comments

XP-era Windows spotted haunting London's driverless railway

https://www.theregister.com/offbeat/2026/06/13/xp-era-windows-spotted-haunting-londons-driverless...
2•Bender•32m ago•0 comments

UK digital ID gets brain trust to 'challenge' ministers on policy

https://www.theregister.com/public-sector/2026/06/12/uk-digital-id-gets-brain-trust-to-challenge-...
2•Bender•33m ago•0 comments

Google fires sueball at alleged Chinese phishers over AI-powered fraud ops

https://www.theregister.com/security/2026/06/12/google-fires-sueball-at-alleged-chinese-phishers-...
2•Bender•33m ago•0 comments

Tracking Wind Patterns Using 3D Mercator Map

https://github.com/jamalrfordii-arch/Vanguard-Map
2•Lawyer24•41m ago•0 comments

Image Compression

https://www.makingsoftware.com/chapters/image-compression
3•vinhnx•48m ago•1 comments

AI agent on GitHub gives recipe for blueberry pie

https://github.com/home-assistant/core/pull/173465
3•Tiberium•51m ago•2 comments

An octagon on the White House lawn for Trump's 80th birthday, the nation's 250th

https://apnews.com/photo-gallery/trump-birthday-ufc-octagon-white-house-lawn-6e4b0ad3db6e8ccde792...
3•petethomas•53m ago•1 comments

Ask HN: How to get access to GPT cyber or glasswing as a solo dev?

2•predkambrij•53m ago•2 comments

WhatsApp Claims It Thwarted an NSO Spyware Campaign

https://www.privacyguides.org/news/2026/06/14/whatsapp-claims-it-thwarted-an-nso-spyware-campaign/
6•Cider9986•58m ago•0 comments

QodFlow – a Kanban board AI agents can drive via MCP

https://www.qodflow.com
2•deimargd•1h ago•0 comments

US Secretary of War Comments on Anthropic

https://twitter.com/PeteHegseth/status/2065897156226015690
12•MallocVoidstar•1h ago•2 comments

Is there a name for the type of comments agents add where they leak the prompt?

4•xdennis•1h ago•1 comments

Frontier Language Model Intelligence, over Time

https://artificialanalysis.ai/?model-creators=anthropic%2Cmistral#frontier-language-model-intelli...
2•doener•1h ago•0 comments

Anthropic's Zero Trust for AI Agents Sets the Right Test. The Bearer Token Fails

https://blog.hello.coop/2026/06/anthropics-zero-trust-for-ai-agents-sets-the-right-test-the-beare...
3•mooreds•1h ago•0 comments

LLMs Pre-Commodify Ideas

https://summerlightning.substack.com/p/llms-pre-commodify-ideas
3•Stwerner•1h ago•0 comments