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

The early days of Unix in the UK

https://www.coulouris.net/cs_history/em_story/
1•fanf2•3m ago•0 comments

World Money: A Financial Super App for Humans

https://world.org/blog/announcements/world-money
1•thm•4m ago•0 comments

War may be coming. Are we psychologically ready?

https://www.bbc.com/news/articles/cmn0jke547r5o
2•vinni2•6m ago•0 comments

The LLM Comments Are Not for You

https://danilafe.com/blog/comments_not_for_you/
1•kqr•6m ago•0 comments

iCloud+ Now Includes Apple TV and Apple Arcade

https://www.icloud.com/en-sg/info/icloud-plus-tv-arcade
1•JustSkyfall•7m ago•0 comments

Relax for the Same Result

https://sive.rs/relax
1•piqufoh•8m ago•0 comments

Phone coverage across the London tube sent me hurtling down a tunnel of despair

https://www.theguardian.com/commentisfree/2026/sep/14/phone-coverage-tube-london-underground-tube
2•edward•10m ago•0 comments

Using steal time to moderate CPU demands

https://lwn.net/Articles/1090381/
1•signa11•14m ago•0 comments

A Pause for the Python JIT

https://lwn.net/Articles/1090385/
3•signa11•15m ago•0 comments

Show HN: A web page that counts its own visitors and cannot lie

https://ava-wall.surge.sh
1•ava-14•24m ago•0 comments

Jev is trained on 100% synthetic data

https://twitter.com/CompleteSkeptic/status/2100617775823966680
1•rinesh•26m ago•0 comments

Show HN: Fouine – local full-text and semantic search for scanned PDFs on macOS

https://github.com/basedpolymer/fouine
1•basedpolymer•30m ago•0 comments

What to Expect When You're Expecting (A World of Multi-Agent Systems)

https://asteriskmag.com/issues/15/what-to-expect-when-you-re-expecting-a-world-of-multi-agent-sys...
1•ronfriedhaber•30m ago•0 comments

Dxui – A declarative desktop GUI framework for Go, without cgo

https://github.com/dxui-org/dxui
1•truda•33m ago•0 comments

Hugging Face attack: "This might be the clearest warning shot we ever get" [video]

https://www.youtube.com/watch?v=X50zezLFWWI
1•looofooo0•34m ago•0 comments

Eight language models and the 2026 Berlin state election

https://wahl.ksmn.dev/en/
2•hemartin•34m ago•0 comments

Cassette-shaped MP3 player meant to be played on tape decks [video]

https://www.youtube.com/watch?v=otXrFBq0HWQ
1•eps•35m ago•0 comments

FeatureMap – map your product's features

https://github.com/yonathan06/featuremap
1•yonatan06•35m ago•0 comments

Why dynamic balance matters at 1200M/min

1•AmyraZhao•36m ago•0 comments

Gyazo screen capture tool confirms data breach

https://updates.gyazo.com/notice-and-apology-regarding-a-data-breach-resulting-from-unauthorized-...
1•2sf5•38m ago•0 comments

What to Read to Stay Grounded Amidst AI Doomerism

https://buttondown.com/maiht3k/archive/what-to-read-to-stay-grounded-amidst-ai-doomerism/
1•james_mir•42m ago•0 comments

The Entity Service Antipattern

https://www.michaelnygard.com/blog/2017/12/the-entity-service-antipattern/
1•simianwords•46m ago•0 comments

One AWS Bill Went from Almost $8k a Month Toward $6k

https://greenops.cloud/blog/blog-cost-drop-8k-to-6k
1•depidsvy•48m ago•0 comments

Has World War III Already Started?

https://www.nytimes.com/2026/08/25/opinion/has-world-war-iii-already-started.html
2•Alien1Being•48m ago•0 comments

Targeting 25 years of Windows with Visual Studio 2019

https://building.enlyze.com/posts/targeting-25-years-of-windows-with-visual-studio-2019/
2•birdculture•49m ago•0 comments

The Cost of AI Is Now My Main Blocker

https://www.vincentschmalbach.com/cost-of-ai-is-now-my-main-blocker/
2•vincent_s•51m ago•0 comments

BuiltByVibe – Directory of vibe-coded apps with a free MCP server

https://builtbyvibe.dev/
1•notevenbuttery•54m ago•0 comments

Altman, Huang: "trust me; gonna b fine"; Sanders: "AI more dangerous than nukes"

https://garymarcus.substack.com/p/sam-altman-says-trust-me-jensen-huang
3•mdp2021•56m ago•2 comments

Fermi.gg – Daily game based on the "Fermi estimation" technique

https://fermi.gg
1•epaga•1h ago•0 comments

Everything Feels Fake – Here's Why: The Power Elite Playbook [video]

https://www.youtube.com/watch?v=P33-rjgOXzg
1•enemyz0r•1h ago•0 comments