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

Perplexity's Brain Is a Context Graph. That's the Point

https://hydradb.com/blog/perplexity-brain-context-graph
1•manveerc•36s ago•0 comments

Open Letter to Compassionate, Left-Leaning, AI-Hating, Animal-Loving Meat Eaters

https://brennan.day/an-open-letter-to-compassionate-left-leaning-ai-hating-animal-loving-meat-eat...
1•speckx•54s ago•0 comments

Posthog's marketing budget in 2026 (with actual $ figures)

https://posthog.com/founders/actual-marketing-budget-2026
1•herbertl•3m ago•0 comments

MirrorCode: What's the largest software project AI can complete on its own?

https://epoch.ai/MirrorCode
2•tadamcz•3m ago•1 comments

Reed-Solomon for OCR: error correction for messy printed codes

https://github.com/chasangchual/reed-solomon-for-ocr
1•chasangchual•6m ago•0 comments

Aircraft crashes into Beijing's tallest skyscraper, triggering evacuations

https://www.dailymail.com/news/article-15932611/Aircraft-crashes-Beijings-tallest-skyscraper-trig...
1•Bender•7m ago•0 comments

DuckDuckGo, Unable to Resist AI's Pull, Mistakenly Claims Trump Died of Rabies

https://gizmodo.com/duckduckgo-unable-to-resist-the-pull-of-ai-mistakenly-claims-trump-died-of-ra...
1•gnabgib•8m ago•0 comments

PHP and TypeScript Types Comparison

https://gitlab.com/-/snippets/6005114
1•DPDmancul•8m ago•0 comments

Smart lock maker Level has been gutted and its founders are out

https://www.theverge.com/tech/957802/level-lock-layoffs-assa-abloy-kwikset-smart-lock-cloud
1•teepo•8m ago•0 comments

Chronic Pain: The Science of Unlearning Pain

https://www.zeit.de/gesundheit/2025-11/chronic-pain-causes-treatments-pain-perception-english
3•Tomte•9m ago•0 comments

PlayStation Is Deleting 551 Movies from Customers' Accounts

https://kotaku.com/playstation-store-movies-digital-studio-canal-terminator-2000711013
1•ortusdux•10m ago•0 comments

US auto regulators want to kill robotaxi brake pedals

https://www.theregister.com/offbeat/2026/06/26/us-auto-regulators-want-to-kill-robotaxi-brake-ped...
1•Bender•11m ago•0 comments

Yen's decline makes perfect sense to some analysts

https://www.japantimes.co.jp/business/2026/06/26/markets/sticky-weak-yen-june/
2•mikhael•12m ago•0 comments

Microsoft extends Windows 10 security updates to 2027

https://arstechnica.com/gadgets/2026/06/microsoft-adds-another-year-to-windows-10-extended-update...
1•Lihh27•12m ago•0 comments

The Atari Lynx Story [video]

https://www.youtube.com/watch?v=RcjbMCRErz4
2•thm•12m ago•0 comments

Amazon Q flaw let booby-trapped Git repos execute code, swipe cloud creds

https://www.theregister.com/cyber-crime/2026/06/26/amazon-q-flaw-let-booby-trapped-git-repos-exec...
3•Bender•13m ago•0 comments

Monoids

https://en.wikipedia.org/wiki/Monoid
2•caminanteblanco•14m ago•0 comments

Atlas: Open-source deep research harness

https://steel.dev/blog/atlas-sdk
2•nkko•15m ago•0 comments

The Illusion of Ownership – It's yours until it isn't

https://yashgarg.dev/posts/the-illusion-of-ownership/
2•speckx•16m ago•0 comments

Venezuela quake: Devastation is urgent warning for California

https://www.latimes.com/world-nation/story/2026-06-24/venezuela-earthquake-staggering-destruction...
3•karlzt•18m ago•0 comments

The FIFA World Cup, and Investor Attention in the U.S. Stock Market

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6970502
2•paulpauper•18m ago•0 comments

The View from 93: A Music Critic Reviews Himself

https://bernardholland.org/words/the-view-from-93
2•paulpauper•18m ago•0 comments

Israel Asked Facebook to Censor Iran War Content, Internal Documents Show

https://theintercept.com/2026/06/18/israel-facebook-censor-content-moderation-iran-war/
10•Jimmc414•18m ago•1 comments

War by Other Means

https://letter.palladiummag.com/p/war-by-other-means
2•paulpauper•19m ago•0 comments

Dan Primack – Remembering Om Malik

https://www.axios.com/2026/06/26/om-malik-remembered
3•rmason•20m ago•0 comments

Red-Teaming the Agentic Red-Team

https://arxiv.org/abs/2606.24496
3•infwhispers•25m ago•0 comments

Apache Kafka's log compaction corrupts data

https://www.redpanda.com/blog/kafka-log-compaction-bug-fix-streaming
2•tanelpoder•26m ago•0 comments

Richard Scolyer, Cancer Expert Who 'Became His Own Subject,' Dies at 59

https://www.nytimes.com/2026/06/26/science/richard-scolyer-dead.html
3•speckx•26m ago•1 comments

An Interactive Map on a Microcontroller

https://geastack.com/blog-maps-on-a-microcontroller
2•arbayi•29m ago•0 comments

Hypersonic.js

https://github.com/hypersonic-js/hypersonic-js
2•joaquim_d•31m ago•1 comments