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

Shall We Play a Game?

https://asteriskmag.com/issues/14/shall-we-play-a-game
1•jger15•14s ago•0 comments

Proving sdocs.dev is running the public code

https://sdocs.dev/trust
1•FailMore•1m ago•0 comments

The OpenClaw Turkey Problem

https://yakko.dev/blog/the-openclaw-turkey-problem
1•yakkomajuri•3m ago•0 comments

Anduril, Palantir and SpaceX are changing how America wages war

https://www.economist.com/international/2026/04/20/anduril-palantir-and-spacex-are-changing-how-a...
1•edward•3m ago•0 comments

The Surveillance Accountability Act

https://www.surveillanceaccountability.com
1•jbegley•4m ago•0 comments

The (other) problem with automatic conversion of free software to proprietary

https://pluralistic.net/2026/04/23/poison-pill/
2•hn_acker•6m ago•1 comments

Show HN: Run coding agents in microVM sandboxes instead of your host machine

https://github.com/superhq-ai/superhq
3•phoenixranger•6m ago•1 comments

My phone replaced a brass plug

https://drobinin.com/posts/my-phone-replaced-a-brass-plug/
4•valzevul•7m ago•0 comments

AI is the new Oracle of Delphi. That's bad news

https://www.economist.com/by-invitation/2026/04/21/ai-is-the-new-oracle-of-delphi-thats-bad-news
1•edward•7m ago•0 comments

Open Source SaaS Is Dead; Long Live Open Source

https://goauthentik.io/blog/2026-04-22-open-source-saas-is-dead/
2•fheisler•10m ago•0 comments

A backup MX will get accessed by various sorts of people

https://utcc.utoronto.ca/~cks/space/blog/spam/BackupMXGetsAccessed
1•speckx•10m ago•0 comments

HelloESP: A public website hosted on an ESP32

https://github.com/Tech1k/helloesp
1•mono-bob•12m ago•1 comments

Incident with Multple GitHub Services

https://www.githubstatus.com/incidents/myrbk7jvvs6p
2•bwannasek•12m ago•0 comments

Where the Sweetest Margins Live in Jensen's 5-Layer Cake

https://thegeneralpartnership.substack.com/p/where-the-sweetest-margins-live-in
1•zpj5005•16m ago•0 comments

The $150 Train to a $2k Seat: The World Cup of Price Shock

https://www.wsj.com/sports/soccer/world-cup-train-metlife-stadium-nj-transit-8ed6d478
3•rguiscard•16m ago•0 comments

Supreme Court arguments make it clear that FCC fines are "nonbinding"

https://arstechnica.com/tech-policy/2026/04/supreme-court-arguments-make-it-clear-that-fcc-fines-...
1•hn_acker•16m ago•1 comments

Book on building your own package manager in Rust

https://prefix-dev.github.io/rattler-book/introduction/
2•droelf•17m ago•0 comments

A good AGENTS.md is a model upgrade. A bad one is worse than no docs at all

https://www.augmentcode.com/blog/how-to-write-good-agents-dot-md-files
1•digitallogic•17m ago•0 comments

Bikes keep Honda afloat, yet even that business is under pressure

https://www.japantimes.co.jp/business/2026/03/26/companies/honda-bike-business-under-pressure/
1•PaulHoule•17m ago•0 comments

The Origins of GPU Computing

https://cacm.acm.org/federal-funding-of-academic-research/the-origins-of-gpu-computing/
1•yarapavan•17m ago•0 comments

Gluon&Linear Layouts Deep-Dive:Tile-Based GPU Programming with Low-Level Control [video]

https://www.youtube.com/watch?v=oYs_qtuk2Pg
1•matt_d•18m ago•0 comments

China shipped a record 68 GW of solar in March – here's why it matters

https://electrek.co/2026/04/22/china-shipped-a-record-68-gw-of-solar-in-march-heres-why-it-matters/
2•xbmcuser•19m ago•1 comments

870 EVO SATA 2.5 inch 2TB SSD

https://www.samsung.com/us/memory-storage/sata-ssd/870-evo-sata-2-5-ssd-2tb-sku-mz-77e2t0b-am/
1•paulnpace•19m ago•0 comments

NCSC: Leave passwords in the past – passkeys are the future

https://www.ncsc.gov.uk/news/ncsc-leave-passwords-in-the-past-passkeys-are-the-future
2•DamonHD•20m ago•0 comments

Microsoft Vibing – capturing screenshots and voice samples without governance

https://doublepulsar.com/microsoft-vibing-capturing-screenshots-and-voice-samples-without-governa...
2•el_duderino•20m ago•0 comments

Wading Through AI (Casey Muratori and Demetri Spanos)

https://www.youtube.com/playlist?list=PLEMXAbCVnmY6U_pA-7GKuP9xiv9utLaP4
1•euthymiclabs•20m ago•0 comments

Open Source and the Iceberg Theory

https://queue.acm.org/detail.cfm?id=3799738
1•yarapavan•20m ago•0 comments

Anthropic's growing pains mount ahead of OpenAI showdown

https://www.axios.com/2026/04/23/anthropic-openai-showdown
1•1vuio0pswjnm7•23m ago•0 comments

30 Days Running ChatGPT Plus, Claude Pro, and Google AI Pro in Parallel

https://virtualuncle.com/chatgpt-vs-claude-vs-gemini/
5•Oak85•25m ago•1 comments

US Army announces new Combat Field Test to enhance Soldier readiness

https://www.army.mil/article/291880/us_army_announces_new_combat_field_test_to_enhance_soldier_re...
2•rawgabbit•25m ago•0 comments