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

Iron-proxy – An egress firewall for untrusted workloads

https://github.com/ironsh/iron-proxy
1•gslepak•31s ago•0 comments

The Trajectory of the Iran War: Will Jiang Xueqin's Third Prediction Come True?

https://medium.com/@achineseliveinlondon/the-trajectory-of-the-iran-war-will-jiang-xueqins-third-...
1•salkahfi•40s ago•0 comments

OpenAge: Open-Source Biological age foundation models

https://twitter.com/nikhilyadala/status/2039171557667557744
1•nikhilyadala•59s ago•1 comments

Email obfuscation: What works in 2026?

https://spencermortensen.com/articles/email-obfuscation/
1•jaden•1m ago•0 comments

1 Click authentication with new NPM package

https://www.npmjs.com/package/react-google-one-tap-extention
1•Herod55•2m ago•0 comments

FBI Hacked by L33T Chinese H4XX0R

https://www.politico.com/news/2026/04/01/fbi-hack-surveillance-system-major-incident-00854237
1•OhMeadhbh•4m ago•0 comments

Chinese entrepreneur Zhang Xue's homegrown motorbike makes historic win

https://www.globaltimes.cn/page/202603/1357908.shtml
2•icwtyjj•8m ago•0 comments

Americas military is never coming back from this

https://indi.ca/americas-military-is-never-coming-back-from-this/
1•mediumsmart•12m ago•0 comments

Accurate Determination of Chemical Abundances Near a Supermassive Black Hole

https://arxiv.org/abs/2603.29748
1•bewalt•22m ago•0 comments

Steam on Linux Use Skyrocketed Above 5% in March

https://www.phoronix.com/news/Steam-On-Linux-Tops-5p
7•hkmaxpro•24m ago•0 comments

Amine Swingbed: technology for removing CO² from a habitable spacecraft [pdf]

https://www.astronautical.org/sites/default/files/attachment/Amine%20Swingbed%20Payload%20Technol...
1•thunderbong•29m ago•0 comments

An interactive simulation of how Claude Code's context window fills

https://code.claude.com/docs/en/context-window
1•duyet•29m ago•0 comments

Apple turns 50 today: here's what it does better than PC (no foolin')

https://www.pcgamer.com/hardware/apple-turns-50-today-heres-what-it-does-better-than-pc-no-foolin/
1•evo_9•35m ago•0 comments

50 years measuring the cleanest air

https://www.csiro.au/en/news/All/News/2026/April/50-years-measuring-the-worlds-cleanest-air
1•defrost•37m ago•0 comments

The Anti-Intellectualism of the Silicon Valley Elite

https://www.thenation.com/article/society/peter-thiel-marc-andreessen-silicon-valley-anti-intelle...
4•petethomas•39m ago•1 comments

I got the police called on me and almost got kickedout of uni for my gossip site

1•a_n•39m ago•2 comments

Show HN: Create Programs for Recitals

https://bandmanager.projects.jaygoel.com
1•memset•40m ago•0 comments

Show HN: Agent2; Open-source production runtime for AI agents

https://github.com/duozokker/agent2
1•duozokker•41m ago•0 comments

Why Your Database Optimizer Matters More When AI Writes the Queries

https://medium.com/towards-data-engineering/why-your-database-optimizer-matters-more-when-ai-writ...
1•OnTheFlyJOINs•45m ago•0 comments

Show HN: We open-sourced our content writing workflow as a Claude Code skill

https://www.npmjs.com/package/claude-content-writer
1•arximughal•48m ago•0 comments

Why AI Code Needs the Same Rigor We Should've Been Using All Along

https://whetlan.substack.com/p/why-ai-code-needs-the-same-rigor
2•tabwidth•55m ago•2 comments

Startup founder wanted to pitch, but got issues

https://trellis.law/case/26-civ-00518/a16z-capital-management-llc-vs-dulat-akan
1•elonmm•55m ago•0 comments

Please Help Sam Angelo (Wyomingwoodturner)

1•SquibblesRedux•55m ago•1 comments

Show HN: Semantic atlas of 188 constitutions in 3D (30k articles, embeddings)

https://constitutionalmap.ai/en
2•joaoli131•56m ago•0 comments

Show HN: Linux Kernel Documentation Index-Every Page in the Linux Kernel's Docs

https://github.com/tamnd/kernel-index
1•tamnd•57m ago•0 comments

Artemis II's toilet is a moon mission milestone

https://www.scientificamerican.com/article/artemis-iis-toilet-is-a-moon-mission-milestone/
8•1659447091•59m ago•2 comments

Wizards of the Coast Announces the Return of D&D Modules

https://dungeonsanddragonsfan.com/new-dnd-modules/
1•rolph•1h ago•0 comments

NASA's Artemis II Live Views from Orion [video]

https://www.youtube.com/watch?v=6RwfNBtepa4
2•twalichiewicz•1h ago•0 comments

I, OpenClaw, Tackled Visual Studio 2026 and I Had My Human Do the Typing

https://visualstudiomagazine.com/articles/2026/04/01/i-openclaw-tackled-visual-studio-2026-and-i-...
1•shakna•1h ago•0 comments

Refine: AI-Powered Peer Review

https://www.refine.ink/
2•maxutility•1h ago•1 comments