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

Bill Gates was an AI optimist. Now he's scared of what could go wrong

https://www.washingtonpost.com/technology/2026/08/26/bill-gates-says-he-worried-ai-will-harm-work...
1•voxleone•1m ago•0 comments

France to ease strict rules on iconic cheeses as heat dries pastures

https://www.france24.com/en/france/20260826-france-eases-cow-diets-as-cheesemakers-sweat
1•bookofjoe•1m ago•0 comments

'It seems crazy': SpaceX's orbital data centre bet tests physics and finance

https://www.ft.com/content/41e60b41-5f13-4d72-8dfc-9bab83f57fb3
1•doener•1m ago•0 comments

The choices we make about AI now are critical – Bill Gates

https://www.gatesnotes.com/work/make-ai-work-for-everyone/reader/a-turbulent-ai-era-and-critical-...
1•stareatgoats•1m ago•0 comments

Rainbow Six Tactics announced with single-player turn-based combat

https://www.notebookcheck.net/Rainbow-Six-Tactics-announced-with-single-player-turn-based-combat....
1•DarrylLinington•3m ago•0 comments

The Feeling of Power (Asimov, 1958)

https://archive.org/details/1958-02_IF
2•irdc•4m ago•1 comments

It's Not the End of Programming

https://mathstodon.xyz/@abuseofnotation/117161292083848755
2•boris_m•4m ago•0 comments

I Stabilized Never Type

https://blog.ihatereality.space/0C-never-type/
1•ramon156•5m ago•0 comments

Apple Updates Mini and Studio, AI Computers, OpenAI Jalapeño

https://stratechery.com/2026/apple-updates-mini-and-studio-ai-computers-openai-jalapeno/
1•swolpers•6m ago•0 comments

Hot Chips 2026: Fujitsu's Monaka CPU – By Chester Lam

https://chipsandcheese.com/p/hot-chips-2026-fujitsus-monaka-cpu
1•rbanffy•8m ago•0 comments

Bluefin – The Next Generation Linux Workstation

https://projectbluefin.io/
1•janandonly•9m ago•0 comments

Trump tried to curb clean energy. It's booming anyway

https://arstechnica.com/science/2026/08/trump-tried-to-curb-clean-energy-its-booming-anyway/
1•rbanffy•9m ago•0 comments

Moonshot in talks with Microsoft, Amazon, Google over K3 inference revenue share

https://www.reuters.com/business/retail-consumer/chinas-moonshot-talks-with-microsoft-amazon-goog...
1•garo-pro•10m ago•0 comments

The Math That Predicts Almost Anything: Markov Chains [video]

https://www.youtube.com/watch?v=KZeIEiBrT_w
2•binyu•10m ago•0 comments

Show HN: A daily word game where you cut a sentence to five of its words

https://sheets.works/long-story-short
1•lordbubbles•17m ago•0 comments

Kids Are Okay

https://anatomists.substack.com/p/the-kids-are-okay
1•tosh•17m ago•0 comments

Why I use this paid search engine (Uruky)

https://crazysteve.bearblog.dev/uruky-is-a-pretty-great-search-engine/
1•expedited123•18m ago•0 comments

The Shape of Go

https://luislsousa.com/blog/the-shape-of-go/
2•darccio•20m ago•0 comments

Pi: The Minimalist, Self-Modifying Coding Agent [video]

https://www.youtube.com/watch?v=RKHaecOi0CA
1•vismit2000•22m ago•0 comments

Atlantropa

https://en.wikipedia.org/wiki/Atlantropa
2•theanonymousone•23m ago•0 comments

Anatomy of a Scam Call: What 10k real scam calls reveal about phone scammers

https://arxiv.org/abs/2608.24127
1•sbulaev•23m ago•0 comments

Beyond Recall and the Illusion of Competence

https://var0.xyz/posts/beyond-recall-and-the-illusion-of-competence.html
3•tuxie_•23m ago•0 comments

Z.ai confirms Ox Alpha is a new GLM-series model and will release its weights

https://www.bloomberg.com/news/articles/2026-08-26/china-s-z-ai-made-ox-alpha-stealth-model-that-...
6•garo-pro•25m ago•1 comments

Nobody Wants Artisanal Code Anymore

https://gordonbeeming.com/blog/2026-04-29/nobody-wants-artisanal-code-anymore
3•Bluestein•26m ago•0 comments

Trump Sends Nuclear Agreement with Saudi Arabia to Congress

https://www.wsj.com/world/middle-east/trump-sends-nuclear-agreement-with-saudi-arabia-to-congress...
1•JumpCrisscross•27m ago•0 comments

Years Late, Billions over Budget: CA's High-Speed Rail Hasn't Laid a Track

https://www.wsj.com/us-news/years-late-billions-over-budget-californias-high-speed-rail-hasnt-lai...
1•JumpCrisscross•29m ago•0 comments

Show HN: Firmament is the Limit – a one-button iPhone flight game

https://apps.apple.com/us/app/firmament-is-the-limit/id6755933878
1•BanzaiTokyo•30m ago•1 comments

EBRAINS provides open science data, tools and services

https://ebrains.eu/data-tools-services
2•Bluestein•31m ago•0 comments

Dataset: AI agent security failures, 1000 incidents classified

https://huggingface.co/datasets/gemmozero/ai-agent-security-incidents
2•LegionAPI•33m ago•0 comments

Ask HN: What's your biggest regret in life?

1•chistev•34m ago•1 comments