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

What I learned building an opinionated and minimal coding agent

https://mariozechner.at/posts/2025-11-30-pi-coding-agent/
1•mjshashank•27s ago•0 comments

Why Software Still Sucks (and Why That's About to Change)

https://medium.com/@bonniebuilds/why-software-still-sucks-and-why-thats-about-to-change-8b57ee295bf9
1•jfaat•4m ago•0 comments

The Dictator's Speech (1940) [video]

https://www.youtube.com/watch?v=k0CzXi9e66M
1•maininformer•6m ago•0 comments

Preliminary Testing with Z-Image Turbo

https://mordenstar.com/other/z-image-turbo/
1•doener•11m ago•0 comments

Oblast: A better Blasto game for the Commodore 64

http://oldvcr.blogspot.com/2025/12/oblast-better-blasto-game-for-commodore.html
4•todsacerdoti•21m ago•0 comments

Maga's strange rage against Europe

https://www.ft.com/content/ccbe643d-bbdf-4bc2-9635-9f7690405ec4
2•petethomas•25m ago•0 comments

Eurydice: a Rust to C compiler (yes)

https://jonathan.protzenko.fr/2025/10/28/eurydice.html
1•todsacerdoti•26m ago•0 comments

Ask HN: What is the interesting use case of humanoid robotics?

1•glaksmono•34m ago•3 comments

NAR Says Typical First-Time Homebuyer Age Was 40 This Year–But Is This Accurate?

https://www.aei.org/articles/nar-says-the-typical-first-time-homebuyer-age-was-40-this-year-up-fr...
1•JumpCrisscross•37m ago•0 comments

Who's Funding Sudan Genocide: Ethnic Cleansing and Civil War Explained (2025) [video]

https://www.youtube.com/watch?v=D8BM7fwt-O8
1•stopbulying•38m ago•1 comments

New Theory of the Origins of Life and Other Minor Issues

https://magazine.mindplex.ai/post/new-theory-of-the-origins-of-life-and-other-minor-issues-an-int...
1•MilnerRoute•45m ago•0 comments

Using LLMs at Oxide

https://rfd.shared.oxide.computer/rfd/0576
53•steveklabnik•50m ago•16 comments

Times God Picked a Date

https://www.kcm.org/real-help/faith/learn/10-times-god-picked-date
1•marysminefnuf•53m ago•1 comments

UC Davis scientists created wheat that can partially fertilize itself

https://scitechdaily.com/new-self-fertilizing-wheat-could-transform-farming/
1•methuselah_in•54m ago•0 comments

How UI degrades over time

https://grumpy.website/1723
5•soheilpro•54m ago•1 comments

Puzzling Out the Perytons (2015)

https://www.centauri-dreams.org/2015/04/06/puzzling-out-the-perytons/
1•adagradschool•54m ago•0 comments

Jellyfin does hardware transcoding for free, and Plex wants $250 to match it

https://www.xda-developers.com/jellyfin-hardware-transcoding-free-plex-wants-money/
5•josephcsible•57m ago•1 comments

LokiVector: An Embedded Document Vector DB Crash-Tested Durability

1•rckflr•57m ago•0 comments

Why AI isn't tool calling humans?

https://www.human-tool-call.com/
3•louis030195•58m ago•2 comments

My Next.js server was compromised 24 hours after CVE-2025-55182 disclosure

https://asleepace.com/blog/malware-cve-2025-55182-exploitation-incident-report/
1•asleepace•1h ago•1 comments

7 Deaths and hundreds of injuries are linked to faulty Abbott glucose monitors

https://www.npr.org/2025/12/06/g-s1-101082/abbott-glucose-monitor-deaths-recall-freestyle-libre
9•bookofjoe•1h ago•2 comments

The end of the middle-class traveler in Hawaii is near

https://www.sfgate.com/hawaii/article/hawaii-middle-class-visitors-declining-21204477.php
10•rblion•1h ago•0 comments

A Full Bitcoin-Style Blockchain Implemented in Pure PHP and Sockets

https://github.com/kladskull/xEroS
1•captaincrunch•1h ago•0 comments

OpenAI's Confession Experiment: Teaching AI to Admit When It Cheats

https://kaysnotes.medium.com/openais-confession-experiment-teaching-ai-to-admit-when-it-cheats-40...
3•stopbulying•1h ago•1 comments

European VCs have raised nearly 60% less funding so far in 2025

https://sifted.eu/articles/european-vc-fundraising-2025-down
4•doener•1h ago•0 comments

Deep Dive: The Fed Just Injected $13.5B into Banks – Here's My Take

https://drive.google.com/file/d/1udXwE3tw0tk-CxAePSVRjAFioCVCJYCh/view?usp=sharing
6•AtomInstitute•1h ago•1 comments

We Are Repaganizing

https://firstthings.com/we-are-repaganizing/
5•barry-cotter•1h ago•3 comments

When Free Is Too Expensive

https://web.archive.org/web/20090912001114/http://blogs.sun.com/jonathan/
7•_RPM•1h ago•2 comments

Hardest AI Benchmark – Enkokilish

https://enkokilish-bench.vercel.app/
2•dagmawibabi•1h ago•1 comments

National Security Strategy Document Revives Monroe Doctrine, Slams Europe

https://www.reuters.com/business/finance/trump-strategy-document-revives-monroe-doctrine-slams-eu...
3•petethomas•1h ago•0 comments