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

Appeals court upholds FTX co-founder Sam Bankman-Fried's fraud conviction

https://apnews.com/article/sam-bankman-fried-ftx-cryptocurrency-appeal-e709df4a152e9b3b52a266dd81...
1•1vuio0pswjnm7•59s ago•0 comments

IdleAds – Ads in AI's "thinking " moment, devs keep 70%+

https://IdleAds.dev
1•codepeekr•1m ago•1 comments

Agent Control Plane in your database

https://www.exasol.com/blog/exasol-agent-control-plane/
1•exasol_nerd•3m ago•0 comments

UFO footage just released by FBI

https://www.bbc.com/news/videos/c8e2w83kxryo
1•oliver236•3m ago•1 comments

White House negotiating preemption of state AI laws in exchange for KOSA & more

https://thehill.com/policy/technology/5916062-artificial-intelligence-federal-preemption-negotiat...
3•iamnothere•4m ago•1 comments

A calculator that doesn't round

https://constructive-calculator.dimview.org/writeup.html
2•dimview•4m ago•0 comments

Results from First Anthropic Public Record

https://www.anthropic.com/news/anthropic-public-record
1•surprisetalk•7m ago•0 comments

The small web is beautiful

https://benhoyt.com/writings/the-small-web-is-beautiful/
2•otolock•8m ago•0 comments

Closing a Mac remote session without logging out, keeps your Mac logged in [video]

https://www.youtube.com/watch?v=9prKU2Vuo-0
1•whereistejas•8m ago•0 comments

Red Lobster's 37-year-old CEO bets the chain's future on AI

https://moneywise.com/news/top-stories/red-lobster-ceo-damola-adamolekun-ai-anthropic-claude-rest...
2•cdrnsf•9m ago•0 comments

Elon Musk Becomes First Trillionaire as SpaceX Starts Trading

https://www.nytimes.com/live/2026/06/12/business/spacex-ipo-elon-musk/heres-the-latest
3•droidjj•9m ago•0 comments

Israeli tech firm accused of targeting First Minister in election

https://www.bbc.co.uk/news/articles/c77yje7n287o
2•asplake•10m ago•0 comments

MrBeast just hit 500M subscribers – half a billion

https://socialblade.com/youtube/handle/mrbeast
1•etrand_•10m ago•0 comments

The Public Now Backs Nuclear Energy. What Will It Take to Make It Happen?

https://www.wsj.com/business/energy-oil/nuclear-energy-public-support-bb744e6e
1•JumpCrisscross•10m ago•0 comments

Confidence Sets, Confidence Intervals

https://bactra.org/notebooks/confidence-sets.html
1•mattbit•11m ago•0 comments

The World Has Moved On

https://pluralistic.net/2026/06/11/lapsarianism/
3•hn_acker•12m ago•0 comments

Show HN: SharkClean MCP

https://github.com/a-funk/sharkclean-mcp
2•afunk•13m ago•0 comments

Overlooked Pollutants Cause About 15 Percent of Global Warming

https://nautil.us/these-overlooked-pollutants-cause-about-15-percent-of-global-warming-1281914
1•Brajeshwar•14m ago•0 comments

Post-Mortems for Agent Runs

https://blog.tacoda.dev/post-mortems-for-agent-runs-2cceeaf13f2e
1•tacoda•14m ago•0 comments

Fear of the SaaSpocalypse is tormenting techland

https://www.economist.com/business/2026/06/10/fear-of-the-saaspocalypse-is-tormenting-techland
1•1vuio0pswjnm7•15m ago•0 comments

Sources: Gordie Howe Bridge ribbon-cutting to take place Friday

https://www.freep.com/story/news/local/michigan/detroit/2026/06/08/gordie-howe-international-brid...
1•cf100clunk•16m ago•1 comments

Tried to get the horse.horse TLD but it was executed perfectly

https://horse.horse
2•hovden•17m ago•1 comments

Musk's Starlink hooked rural customers. Then came the price increases

https://www.washingtonpost.com/technology/2026/06/11/starlink-is-star-spacex-ipo-is-it-monopolizi...
4•1vuio0pswjnm7•18m ago•0 comments

Pokémon Go Data Isn't Being Used to Train Military Drones, Says Niantic Spatial

https://www.ign.com/articles/no-pokmon-go-data-isnt-being-used-to-train-military-drones-niantic-s...
2•HelloUsername•18m ago•0 comments

SpaceX Shares Open at $150, Above IPO Price of $135

https://www.wsj.com/livecoverage/spacex-ipo-stock-market-06-12-2026/card/spacex-shares-open-at-15...
2•JumpCrisscross•19m ago•0 comments

MTG Arena Rule Engine Overview

https://magic.wizards.com/en/news/mtg-arena/on-whiteboards-naps-and-living-breakthrough
1•BoingBoomTschak•20m ago•1 comments

Tattva AI – detects when ML research consensus is shifting using Bayesian CUSUM

https://tattvaai.org
2•prashanthja•21m ago•0 comments

Ask HN: I Need Help for a Product

2•memoryleakgame•23m ago•1 comments

Custom Prompts: a minimal, customizable alternative to Skills

https://rocketup.pages.dev/posts/alternative-to-skills/
1•gidellav•23m ago•0 comments

Ask HN: Favorite prompts for improving LLM output?

1•maxutility•23m ago•1 comments