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

How Prompt Caching Works

https://sankalp.bearblog.dev/how-prompt-caching-works/
1•nkko•1m ago•0 comments

Stablecoins Can Help Criminals Launder Money and Evade Sanctions

https://www.nytimes.com/2025/12/07/technology/how-a-cryptocurrency-helps-criminals-launder-money-...
1•fleahunter•3m ago•0 comments

Python AsyncIO: Parallelism, Multiprocessing, Concurrency and Threading

https://realpython.com/async-io-python/
1•BinaryIgor•4m ago•1 comments

AddressGen.top – Now supporting 40 countries for random address generation

https://addressgen.top
1•addressGen•6m ago•0 comments

The secret inside one million boxes

https://eieio.games/blog/the-secret-inside-one-million-checkboxes/
1•damethos•10m ago•0 comments

Characters? In This Economy?

https://www.bitecode.dev/p/80-characters-in-this-economy
2•BiteCode_dev•13m ago•0 comments

GPS interference in the Baltic Sea becoming more complex and stronger

https://www.heise.de/en/news/Study-GPS-interference-in-the-Baltic-Sea-becoming-more-complex-and-s...
1•altilunium•14m ago•0 comments

What HBO's "Chernobyl" Got Right, and What It Got Terribly Wrong (2019)

https://www.newyorker.com/news/our-columnists/what-hbos-chernobyl-got-right-and-what-it-got-terri...
1•zeristor•22m ago•2 comments

AI is saving time and money in research – but at what cost?

https://www.nature.com/articles/d41586-025-03936-2
1•XzetaU8•25m ago•1 comments

Researchers find critical backdoor in Swiss online voting system

https://motherboard.vice.com/en_us/article/zmakk3/researchers-find-critical-backdoor-in-swiss-onl...
1•fanf2•25m ago•0 comments

Certificate Ripper v2.6.0 released – tool to extract server certificates

https://github.com/Hakky54/certificate-ripper
2•hakky54•29m ago•1 comments

The Judge at the End of Europe

2•dostick•29m ago•0 comments

LLM Fingerprints in Text

https://www.budgetflow.cc/blog/llm-fingerprints-in-text
2•mkrd•30m ago•0 comments

Money Doesn't Buy Elections. It Does Something Worse

https://data4democracy.substack.com/p/money-doesnt-buy-elections-it-does
1•doener•32m ago•0 comments

Bombed Chornobyl shelter no longer blocks radiation and needs major repair

https://www.theguardian.com/world/2025/dec/06/chornobyl-disaster-shelter-no-longer-blocks-radiati...
1•doener•36m ago•0 comments

Long Now Foundation

https://en.wikipedia.org/wiki/Long_Now_Foundation
2•doener•48m ago•0 comments

I forked instead of taking the easy way out

https://en.andros.dev/blog/7134f59f/why-i-forked-instead-of-taking-the-easy-way-out/
1•andros•48m ago•0 comments

Alan Dye Was in Tim Cook's Blind Spot

https://daringfireball.net/2025/12/dye_cook_blind_spot
2•andsoitis•52m ago•0 comments

Bad Dye Job

https://daringfireball.net/2025/12/bad_dye_job
1•andsoitis•55m ago•0 comments

Virtual Cell Challenge 2025 Wrap-Up: Winners and Reflections

https://arcinstitute.org/news/virtual-cell-challenge-2025-wrap-up
1•const-ae•55m ago•0 comments

Show HN: AI Paul Graham

https://www.paulgraham-nia.com/
2•arlanrakh•55m ago•0 comments

Show HN: Quirky – server monitoring for real people

https://github.com/quirky-dev/quirky
1•remy_v•59m ago•0 comments

A Struct Sockaddr Sequel

https://lwn.net/Articles/1045453/
2•g0xA52A2A•1h ago•0 comments

What Wall Street investors gain from playing games

https://www.bloomberg.com/features/2025-games-wall-street-plays/
2•PaulRobinson•1h ago•0 comments

KJS: A Complete Formal Semantics of JavaScript

https://github.com/kframework/javascript-semantics
3•andsoitis•1h ago•0 comments

GitHub Shop

https://thegithubshop.com/
2•swatson741•1h ago•3 comments

Tanglewood for Sega Mega Drive – Interview with Matt Phillips [video]

https://www.youtube.com/watch?v=5xIQoGaKYYA
1•franczesko•1h ago•0 comments

Nightclub blaze in India's Goa kills 25, including four tourists

https://qazinform.com/news/nightclub-blaze-in-indias-goa-kills-25-including-four-tourists-c71687
2•Bolat14•1h ago•0 comments

China's scientific clout is growing as US influence wanes: the data show how

https://www.nature.com/articles/d41586-025-03956-y
3•thunderbong•1h ago•0 comments

More People Feel Safe Even as Global Conflicts Rise

https://news.gallup.com/poll/695240/people-feel-safe-even-global-conflicts-rise.aspx
2•hunglee2•1h ago•0 comments