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

RSS Feeds Send Me More Traffic Than Google

https://shkspr.mobi/blog/2026/05/rss-feeds-send-me-more-traffic-than-google/
1•SpyCoder77•1m ago•0 comments

From a Harvard dropout to Oceanco visionary: 10 facts about Gabe Newell

https://www.boatinternational.com/features-reviews/who-is-gabe-newell-famous-for-valve-steam-oceanco
1•evo_9•6m ago•0 comments

What do you say when the AI asks "Let me know if you'd like me to proceed."

1•acquire9395•9m ago•0 comments

Was this Virginia office building built with missiles in mind?

https://www.washingtonpost.com/dc-md-va/2022/09/03/skyline-buildings-baileys-crossroads/
1•gnabgib•10m ago•1 comments

They Don't Look Like Me

https://niccolorastrelli.com/they-dont-look-like-me
3•cainxinth•11m ago•0 comments

OpenAI-Oracle data center construction proceeds despite Michigan town vote

https://fortune.com/2026/05/06/ai-data-center-michigan-saline-politics-farmland/
1•xyst•13m ago•0 comments

Hunk: Review-first terminal diff viewer for agentic coders

https://github.com/modem-dev/hunk
1•pella•17m ago•0 comments

Hourglass nanographenes unlock strong, robust multi-spin entanglement

https://phys.org/news/2026-05-hourglass-nanographenes-strong-robust-multi.html
1•WaitWaitWha•19m ago•0 comments

Gmail app bug locks some Microsoft 365 and Exchange Online users out on Android

https://piunikaweb.com/2026/05/06/gmail-app-android-microsoft-365-exchange-online-authentication-...
1•sega_sai•22m ago•0 comments

Taiwan cops say student's radio kit brought bullet trains to a standstill

https://www.theregister.com/cyber-crime/2026/05/06/taiwan-student-pwns-rail-comms-halts-high-spee...
4•rmason•24m ago•0 comments

Iran hit more U.S. military targets than has been reported, satellite images

https://www.washingtonpost.com/investigations/2026/05/06/iran-us-bases-satellite-images/
4•SanjayMehta•24m ago•0 comments

QR Code Generator

https://www.thonky.com/qrcode/
1•gurjeet•27m ago•0 comments

The Old Guard: Confronting America's Gerontocratic Crisis

https://harpers.org/archive/2026/05/the-old-guard-samuel-moyn-gerontocracy/
6•Caiero•28m ago•1 comments

Elon Musk's Last-Ditch Effort to Control OpenAI

https://www.wired.com/story/elon-musk-recruit-sam-altman-tesla-ai-lab-trial/
4•nico•30m ago•0 comments

How programmers are feeling about AI

https://thesoftwaresurvey.com/
2•yakkomajuri•32m ago•0 comments

We Need a Neural Network (2006)

https://thedailywtf.com/articles/No%2c_We_Need_a_Neural_Network
2•mjtk•34m ago•0 comments

Aphasia

https://en.wikipedia.org/wiki/Aphasia
3•soupspaces•35m ago•0 comments

We Built the Permanent Record

https://www.nationalreview.com/2026/05/we-built-the-permanent-record/
2•petethomas•37m ago•0 comments

Show HN: Sqlalchemy-Redshift Is Back: Reviving a Critical Python Data Library

https://github.com/sqlalchemy-redshift/sqlalchemy-redshift
2•TeddyCrep•40m ago•0 comments

Mass Deportation and American Jobs

https://www.wsj.com/opinion/mass-deportation-american-jobs-nber-university-of-colorado-boulder-st...
4•petethomas•46m ago•0 comments

Go is FIPS 140-3 certified

https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/5247
4•birdculture•47m ago•0 comments

Agents of Chaos

https://agentsofchaos.baulab.info/
2•giwook•48m ago•0 comments

ADT says customer data stolen in cyber intrusion

https://therecord.media/ADT-data-breach-cyberattack
5•PaulHoule•50m ago•2 comments

The Loudest Known Sound Ever (2024)

https://www.audiology.org/the-loudest-known-sound-ever/
2•thunderbong•52m ago•0 comments

Naval Character Living Inside iMessage

https://naval.chat
4•oqy•53m ago•2 comments

Correction Has to Occur – NYU Finance Professor Warn

https://finance.yahoo.com/news/correction-occur-nyu-finance-professor-160057855.html
5•laxmena•55m ago•0 comments

Have you sent a smile today?

https://mylightstillshines.wordpress.com/2026/05/06/have-you-smiled-at-somebody-today/
2•jaygirl•55m ago•0 comments

QUIC will soon be as important as TCP – but it's vastly different

https://www.theregister.com/on-prem/2026/04/16/quic-will-soon-be-as-important-as-tcp/5227423
4•Bender•58m ago•1 comments

Kash Patel's Personalized Bourbon Stash

https://www.theatlantic.com/politics/2026/05/kash-patel-fbi-bourbon/687066/
34•petethomas•59m ago•13 comments

Iran cybersnoops still LARPing as ransomware crooks in espionage ops

https://www.theregister.com/security/2026/05/06/iran-cyberspies-larping-as-ransomware-crims-in-es...
4•Bender•1h ago•0 comments