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

Scientists Create First-Ever 'Smell Map'

https://hms.harvard.edu/news/scientists-create-first-ever-smell-map
1•gmays•1m ago•0 comments

AI isn't coming for your job. It's coming for your mind

https://www.bailliegifford.com/en/uk/individual-investors/insights/ic-article/2026-q1-ai-isn-t-co...
1•XzetaU8•1m ago•0 comments

Can countries grow richer by exporting people, not goods?

https://www.economist.com/finance-and-economics/2026/04/30/can-countries-grow-richer-by-exporting...
1•andsoitis•3m ago•0 comments

Fungi and the Rise of Mammals [pdf]

https://journals.plos.org/plospathogens/article?id=10.1371/journal.ppat.1002808
1•thunderbong•3m ago•0 comments

AI threatens Big Law's talent pipeline

https://www.axios.com/2026/05/02/ai-lawyers-law-firms-artificial-intelligence
1•Brajeshwar•3m ago•0 comments

A lost galaxy called 'Loki' may be hiding inside the Milky Way

https://phys.org/news/2026-04-lost-galaxy-loki-milky.html
1•wglb•4m ago•1 comments

I made an Mobile-Coding Companion, seeking your reviews

https://www.remoot.dev
1•xporpy•5m ago•0 comments

Show HN: Writing a deep-research agent from scratch

https://deep-research-agent.pagey.site
1•freakynit•6m ago•0 comments

Modern C++ Programming: Busato

https://github.com/federico-busato/Modern-CPP-Programming
1•KnuthIsGod•7m ago•0 comments

Show HN: Verbalized-Sample-Skill.md Modal Probability-Ranked Answer Distribution

https://gist.github.com/spinchange/ebecc4a548bf163ce4fddae0699a8065
1•spinchange•8m ago•0 comments

The Mystery of the Missing Hotel Toothpaste (2013)

https://slate.com/human-interest/2013/07/toothpaste-in-hotels-why-do-they-provide-shampoo-soap-an...
1•downbad_•8m ago•1 comments

Museum of the Human Web

https://museum.parallel.ai/introduction?era=modern
1•TheBlapse•10m ago•0 comments

Data center land use issues are fake

https://blog.andymasley.com/p/data-center-land-use-issues-are-fake
1•Kye•10m ago•0 comments

Emergent Strategic Reasoning Risks in AI: A Taxonomy-Driven Evaluation Framework

https://arxiv.org/abs/2604.22119
1•gmays•11m ago•0 comments

DNS, the Phonebook That Isn't

https://toolkit.whysonil.dev/how-it-works/dns/
1•simplerhumane•11m ago•0 comments

MCP-ratchet: Go package for enforcing tool call order in MCP servers

https://github.com/hexxla/mcp-ratchet
1•sploitzberg•12m ago•0 comments

Why C++ is growing, and why C++26 will likely be adopted quickly [video]

https://www.youtube.com/watch?v=Qvr9MTAU_y4
1•dalvrosa•13m ago•0 comments

Meta's Pyrefly sabotages competing Python extensions without telling you

https://github.com/facebook/pyrefly/issues/3292
2•FossAndFurious•13m ago•0 comments

Lightning Talk: Cut the boilerplate with C++23 deducing_this – Sarthak Sehgal [video]

https://www.youtube.com/watch?v=o3vjUo2qXNg
1•dalvrosa•16m ago•0 comments

To Train or Not to Train

https://www.tanayj.com/p/to-train-or-not-to-train
1•gmays•17m ago•0 comments

Risky Business: How Science Plays Things Too Safe

https://qspace.fqxi.org/articles/284/risky-business-how-science-plays-things-too-safe
1•mathgenius•18m ago•0 comments

I compared the top embedded COSE+CBOR libraries so you dont have to

https://aidangarske.github.io/wolfCOSE/blog/wolfcose-vs-the-field/
1•aidangarske•23m ago•0 comments

Node.js is one of the worst things to happen to the software industry" (2012)

https://harmful.cat-v.org/software/node.js
1•downbad_•23m ago•1 comments

18th-century mechanical volcano roars to life 250 years later

https://www.sciencedaily.com/releases/2026/05/260502015359.htm
1•samizdis•26m ago•0 comments

WeSearch

https://wesearch.press/
1•EGCstudy•26m ago•1 comments

Making 10 apps in 20 Days

https://bendansby.com/posts/10-apps-30-days.html
1•webwielder2•26m ago•0 comments

Iceland's Pools and Hot Tubs Now UNESCO-Recognized. Some Locals Aren't Thrilled.

https://www.nytimes.com/2026/04/30/world/europe/iceland-hot-tub-pools-tourism.html
1•bookofjoe•26m ago•2 comments

Show HN: Predicting the 2026 Kentucky Derby with 1T Monte Carlo Sims on Burla

https://burla-cloud.github.io/examples/kentucky-derby-demo/
1•Jack_at_Burla•28m ago•0 comments

AI talks draw backlash from Mass. state lawmakers

https://www.politico.com/news/2026/05/01/ai-backlash-massachusetts-lawmakers-00903440
1•1vuio0pswjnm7•30m ago•0 comments

Life update: Zig, AI, unemployment, and more [video]

https://www.youtube.com/watch?v=DhhPUrizZcw
1•rubenflamshep•31m ago•0 comments