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

Update 18 December 2025: Apple ID Unblocked by Apple Executive Relations

https://bsky.app/profile/hey.paris/post/3ma3of537kk2d
2•da_grift_shift•1m ago•1 comments

MI6 chief: We'll be as fluent in Python as we are in Russian

https://www.theregister.com/2025/12/16/mi6_chief_well_be_as/
1•maxloh•4m ago•0 comments

MPs warn that UK agreements with Donald Trump are 'built on sand'

https://www.theguardian.com/politics/2025/dec/17/mps-warn-that-uk-agreements-with-donald-trump-ar...
1•KnuthIsGod•5m ago•0 comments

GitHub walks back plan to charge for self-hosted runners

https://www.theregister.com/2025/12/17/github_charge_dev_own_hardware/
2•ozgune•6m ago•1 comments

Show HN: A Save Data Calculator for the Roguelike Gacha Chaos Zero Nightmare

https://www.cznsavedata.com/
1•zittur•6m ago•0 comments

Show HN: Campers – Remote cloud dev environments that feel like localhost

https://github.com/kamilc/campers
1•kamilc•12m ago•0 comments

UK Puberty Blockers Controversy

https://rodgercuddington.substack.com/p/uk-puberty-blockers-controversy
1•freespirt•14m ago•0 comments

Exergy Economics [video]

https://www.youtube.com/watch?v=qqAzhmW4_gQ
1•measurablefunc•19m ago•0 comments

UX Is Dead, Long Live UX

https://www.nngroup.com/articles/long-live-ux/
1•kaizenb•20m ago•0 comments

Stop using dotenv and switch to dotenvx today

https://medium.com/@_mfk/why-you-should-stop-using-dotenv-and-switch-to-dotenvx-today-ff7c05a24c20
2•_mfk•24m ago•1 comments

BrainPredict – 445 on‑prem AI models for business predictions, no LLMs

https://brainpredict.ai
2•brainpredict•24m ago•1 comments

Building Open Source Manus

https://github.com/boxlite-labs/boxlite
1•dorianzheng•29m ago•0 comments

Scammers, spies and triads: inside cyber-crime's $15T global empire

https://www.youtube.com/watch?v=a9cugMoM89w
1•zoenolan•30m ago•0 comments

Hacker News Dark Mode Extension

https://www.icsusa.com/hndarkmode.html
1•lastdong•31m ago•0 comments

Nuno Loureiro – Plasma Physics: from fusion energy to cosmic magnetogenesis [video]

https://www.youtube.com/watch?v=0hiy7hxjZ5s
2•Jimmc414•32m ago•0 comments

One Generic Cancer Drug Costs $35. Or $134. Or $13,000

https://www.bloomberg.com/features/2025-cancer-drug-markups/
1•helsinkiandrew•32m ago•1 comments

Two People Never Share the Same Meaning

https://mikkokotila.medium.com/two-people-never-share-the-same-meaning-061977d83bf3
1•mikkokotila•34m ago•2 comments

The Fate of Flight 2069 - the cost of a disaster that didn’t happen

https://www.newstatesman.com/long-reads/2025/12/the-strange-fate-of-flight-2069
1•bryanrasmussen•44m ago•0 comments

Micron outlines grim outlook for DRAM supply in earnings call

https://www.tomshardware.com/pc-components/dram/micron-outlines-grim-outlook-for-dram-supply-in-f...
3•walterbell•45m ago•0 comments

Porting a HTML5 Parser to Swift and finding how hard it is to make Swift fast

https://ikyle.me/blog/2025/swift-justhtml-porting-html5-parser-to-swift
2•freerunnering•46m ago•0 comments

What Is an Elliptic Curve?

https://www.johndcook.com/blog/2019/02/21/what-is-an-elliptic-curve/
7•tzury•48m ago•0 comments

Claude-Hooks

https://github.com/TheNoeTrevino/claude-hooks
1•handfuloflight•51m ago•0 comments

A Survey of Dynamic Array Structures

https://azmr.uk/dyn/
2•keyle•53m ago•0 comments

Security vulnerability found in Rust Linux kernel code

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e0ae02ba831da2b70790...
5•lelanthran•55m ago•1 comments

Show HN: Crovise – Generate CRO hypotheses from landing pages

https://crovise.netlify.app/
2•adamoufkir•55m ago•1 comments

The optimal public transit price is near zero [pdf]

https://www.nber.org/system/files/working_papers/w32185/w32185.pdf
3•jacobedawson•59m ago•3 comments

Alternatives to GitHub Actions for self-hosted runners

https://r0bbie.substack.com/p/alternatives-to-github-actions-for
3•r0bbie•1h ago•0 comments

Everything Is Dead and We Killed It

https://www.joanwestenberg.com/everything-is-dead-and-we-killed-it/
3•asplake•1h ago•0 comments

Google TPU for AI Inference

https://www.naddod.com/ai-insights/google-tpu-the-ai-chip-for-the-ai-inference-era
2•Asheyleychen•1h ago•0 comments

FWS – pip-installable embedded process supervisor with PTY/pipe/dtach back ends

1•mrsurge•1h ago•0 comments