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

Kohana, a prediction market where you write the question

https://kohana.xyz/
1•melan13•41s ago•0 comments

Rheinmetall gambled on Germany's doomed warship project – and lost

https://www.ft.com/content/e3fa2351-72bd-40e1-97e0-5a6ae0a63a2b
2•JumpCrisscross•8m ago•0 comments

Where production policy belongs: building Eliya in public

https://foojay.io/today/where-production-policy-belongs-building-eliya-in-public/
2•fahimfarookme•10m ago•1 comments

Anatomy of a Failed (Nation-State?) Attack

https://grack.com/blog/2026/06/25/dissecting-a-failed-nation-state-attack/
2•signa11•15m ago•0 comments

Ornith-1.0: Self-Scaffolding LLMs for Agentic Coding

https://deep-reinforce.com/ornith_1_0.html
1•modinfo•17m ago•0 comments

Ukrainian Attacks Spur State of Emergency Declaration in Crimea

https://www.nytimes.com/2026/06/26/world/europe/crimea-ukraine-state-emergency.html
2•JumpCrisscross•17m ago•0 comments

Codex-maxxing for long-running work

https://openai.com/index/codex-maxxing-long-running-work/
1•gmays•23m ago•0 comments

Software Is Becoming Marketing

https://www.terezatizkova.com/writing/software-abundance
2•tylerdane•31m ago•0 comments

Cybersecurity firms targeted by fraudulent OpenAI organization invites

https://www.bleepingcomputer.com/news/security/cybersecurity-firms-targeted-by-fraudulent-openai-...
1•Timofeibu•34m ago•0 comments

For Peter

https://lucybellwood.com/for-peter/
2•wonger_•37m ago•0 comments

How China Is Gutting Western Automakers (2025)

https://newsletter.dunneinsights.com/p/how-china-is-gutting-western-automakers
1•toomuchtodo•38m ago•0 comments

A man who did nothing, brilliantly

https://theidlegazette.beehiiv.com/p/the-man-who-did-nothing-brilliantly-5
1•vinhnx•43m ago•0 comments

Accidental Anonymity

https://macwright.com/2026/06/24/accidental-anonymity
1•herbertl•44m ago•0 comments

National College Entrance Examination Collection - Math – China

https://github.com/deekur/gaokaomath
1•pm2222•52m ago•0 comments

Daytona is going closed source. Here's why

https://www.daytona.io/dotfiles/updates/daytona-is-going-closed-source
3•david_shi•1h ago•0 comments

Thermodynamic gravity explains cosmic acceleration without dark energy

https://phys.org/news/2026-06-thermodynamic-approach-gravity-cosmic-dark.html
2•stevenjgarner•1h ago•1 comments

Study on the effects of listening to podcasts on headphones vs. speakers

https://www.sciencedirect.com/science/article/abs/pii/S0749597822000176
1•Curiositry•1h ago•0 comments

Being a Dad

https://www.derekthompson.org/p/three-reasons-to-be-a-parent
2•Curiositry•1h ago•1 comments

AI Erodes a Legacy of Reading

https://molochinations.substack.com/p/ai-erodes-a-legacy-of-reading
6•domhudson•1h ago•3 comments

The Permission Slip

https://www.cringely.com/2026/05/28/the-permission-slip/
1•B1FF_PSUVM•1h ago•0 comments

Iterating Faster with TypeScript 7

https://code.visualstudio.com/blogs/2026/06/26/iterating-faster-with-ts-7
4•soheilpro•1h ago•1 comments

Show HN: Boot a tiny app-making OS inside an AI chat

https://hollingsworthd.github.io/RAu/
1•logn•1h ago•0 comments

The Impacts of Unauthorized Immigration on U.S. Labor and Housing Markets

https://www.dallasfed.org/research/papers/2026/wp2607
1•nradov•1h ago•1 comments

Enterprise AI customers pulling back from OpenAI and Anthropic as costs mount

https://qz.com/enterprise-ai-spending-openai-anthropic-roi-pullback-062626
4•toomuchtodo•1h ago•5 comments

Compiler Education Deserves a Revolution

https://thunderseethe.dev/posts/compiler-education-deserves-a-revoluation/
3•azhenley•1h ago•0 comments

I Co-Founded Wikipedia. Now I'm Banned for Life

https://www.thefp.com/p/larry-sanger-wikipedia-co-founder-banned
10•bko•1h ago•4 comments

Show HN: Tested – AI Tools Scored by a Panel of LLMs (Claude, GPT, Gemini, Grok)

https://trytested.com
1•pro_methe5•1h ago•0 comments

What's the value of the Biblical half shekel?

https://www.chabad.org/library/article_cdo/aid/673063/jewish/Whats-the-value-of-the-biblical-half...
3•teleforce•1h ago•1 comments

Show HN: GetBlocked – a local-only Chrome extension for blocking web trackers

https://github.com/alex-w-developer/GetBlocked/
7•sudo_cowsay•1h ago•3 comments

Indus civilisation reveals its volumetric system

https://www.thehindu.com/news/national/Indus-civilisation-reveals-its-volumetric-system/article16...
1•teleforce•1h ago•0 comments