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

Ferrari 12Cilindri Manuale

https://www.ferrari.com/en-EN/auto/ferrari-12cilindri-manuale
1•Kaibeezy•1m ago•0 comments

The UK's Latest "Debanking" Scandal Should Give Everyone Pause

https://www.nakedcapitalism.com/2026/07/the-uks-latest-debanking-scandal-should-give-everyone-pau...
1•iamnothere•1m ago•0 comments

The Most Overrated American Who Ever Lived [audio]

https://www.theringer.com/podcasts/plain-english-with-derek-thompson/2026/07/03/megapod-the-most-...
1•mooreds•2m ago•0 comments

Harm Bot · Streamlit

https://harm-youtube.streamlit.app
1•cocoglare•5m ago•0 comments

How Amazon SQS fair queues work

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-fair-queues-detail...
1•mooreds•5m ago•0 comments

Show HN: I'm trying to map all vacation rentals you can book direct

https://staythere.ai/
1•wthayer•7m ago•0 comments

Overshadow-JS, suncalc tells you sun angles, this tells you shadows

https://github.com/Botfather90/overshadow
1•Brandon99pt•11m ago•0 comments

Yes, Robot. Yes, Boss?

https://cutlefish.substack.com/p/tbm-428-yes-robot-yes-boss
1•mooreds•17m ago•0 comments

Apple 'Hide My Email' Vulnerability Reveals Peoples' Real Email Addresses

https://www.404media.co/apple-hide-my-email-vulnerability-reveals-peoples-real-email-addresses/
5•tjwds•18m ago•1 comments

The circuit that lets your brain think and see

https://www.engineering.columbia.edu/about/news/circuit-lets-your-brain-think-and-see
3•hhs•19m ago•0 comments

US Government says it got hacked – again

https://techcrunch.com/2026/07/02/us-government-says-it-got-hacked-again/
3•jack1689•24m ago•0 comments

The Gap Map v0.1

https://www.currentai.org/blogs/introducing-the-gap-map-v0-1#article
2•droidjj•24m ago•0 comments

Ants: Who looks after the injured in a colony?

https://www.uni-wuerzburg.de/en/news-and-events/news/detail/news/ameisen-kolonie-verletzte-pflegt/
4•hhs•29m ago•1 comments

Amsterdam invented the fire department

https://worksinprogress.co/issue/how-amsterdam-invented-the-fire-department/
12•zdw•29m ago•1 comments

GitHub offering CD-ROMs of your code for a few days

https://www.pcgamer.com/hardware/your-code-is-physically-yours-forever-until-you-lose-it-lets-be-...
2•evo_9•29m ago•1 comments

Shopify SEO Experts Can Boost Your Online Store Rankings

https://www.techwrath.com/shopify-seo-experts-boost-online-store-rankings/
2•techwrath11•33m ago•1 comments

Giant trees have no trouble pumping water to top branches

https://news.exeter.ac.uk/faculty-of-environment-science-and-economy/giant-trees-have-no-trouble-...
10•hhs•35m ago•0 comments

Steam Controller Auto-Charge – pilot to magnetic charging puck using CV

https://github.com/FossPrime/Steam-Controller-Auto-Charge
5•zdw•35m ago•0 comments

Save Claude Code Tokens with Smart Routing

https://github.com/regolo-ai/brick-SR1
2•FrancescoMassa•36m ago•0 comments

Elevating Privileges from Firefox to Android Root

https://rootme.nebusec.ai/
9•kozika•36m ago•2 comments

Dispersion loss counteracts embedding condensation in small language models

https://chenliu-1996.github.io/projects/LM-Dispersion/
7•E-Reverance•39m ago•0 comments

David Potter, the man who put Psion in the palm of your hand, logs off at 82

https://www.theregister.com/personal-tech/2026/07/03/david-potter-the-man-who-put-psion-in-the-pa...
6•sohkamyung•41m ago•1 comments

GitFut – Your GitHub stats turned into a World-Cup-style player card

https://gitfut.com
3•redbell•41m ago•0 comments

Sneaker Company Allbirds Plans to Pivot to A.I

https://www.nytimes.com/2026/04/15/us/allbirds-shoes-ai-pivot.html
2•shepherdjerred•41m ago•1 comments

Leanstral 1.5: Proof Abundance for All

https://mistral.ai/news/leanstral-1-5/
10•programLyrique•42m ago•0 comments

Show HN: Scout.kids – Agents that find activies for families

https://scout.kids
2•davmar•43m ago•0 comments

Radiolarite – "Iron of the Paleolithic"

https://en.wikipedia.org/wiki/Radiolarite
3•jumploops•47m ago•0 comments

Overturning a $1B Copyright Award Against a Broadband Provider

https://cacm.acm.org/opinion/overturning-a-1-billion-copyright-award-against-a-broadband-provider/
1•zdw•48m ago•0 comments

Coding without AI: a revolutionary new way to work

https://isaaclyman.com/blog/posts/coding-without-ai/
14•aard•48m ago•2 comments

Trip LLM safety refusals so that LLM-based code scanning wont see the malware

https://indieweb.social/@laurenshof/116720287681995824
1•radiator•48m ago•0 comments