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

Florida cops are quietly using Meta smart glasses

https://www.miaminewtimes.com/news/florida-cops-are-quietly-using-meta-smart-glasses-40573513/
1•thehoff•2m ago•0 comments

The +18 version of ChatGPT started accepting Crypto

4•samantha090909•8m ago•3 comments

US judge cites 'concerning' irregularities in Adani fraud case

https://www.ft.com/content/5010fd54-5982-47c7-801a-e0a354a71c31
2•petethomas•13m ago•0 comments

The Programming Ape (Code Hale, 2012) [video]

https://www.youtube.com/watch?v=e_6gkfTomUQ
1•dhorthy•14m ago•0 comments

Bugs in MS' Patch Tuesday release and NK's Lazarus has hit one already

https://www.theregister.com/security/2026/08/11/421-bugs-in-microsofts-patch-tuesday-release-and-...
1•Gaishan•15m ago•0 comments

Will failure in Iran reshape how the US fights?

https://www.ft.com/content/5bdb67a5-5c53-46aa-8a04-d0480e700ee4
1•petethomas•16m ago•0 comments

Panama Canal fees hit record high as El Niño and Iran war choke shipping

https://www.ft.com/content/38083cb5-3892-40a1-b90f-102109f96b17
1•petethomas•17m ago•0 comments

Belly Fat and Low Vitamin D May More Than Double the Risk of Early Death

https://scitechdaily.com/belly-fat-and-low-vitamin-d-may-more-than-double-the-risk-of-early-death/
2•Gaishan•18m ago•0 comments

Why one name will appear 4 times on Vermont's Republican primary ballot

https://www.vermontpublic.org/local-news/2026-06-23/why-h-brooke-paige-appear-4-times-republican-...
2•mauvehaus•19m ago•1 comments

In the US, one in seven leisurely moments comes with guilt

https://www.bps.org.uk/research-digest/us-one-seven-leisurely-moments-comes-guilt
1•littlexsparkee•21m ago•0 comments

Anthropic to start embedding invisible watermarks

https://fortune.com/2026/08/11/anthropic-claude-watermark-ai-text-police-ai-slop/
1•TruffleLabs•24m ago•3 comments

Use deployment context to your advantage

https://twitter.com/nikpil06/status/2087328872308285930
1•nikhilpillai23•24m ago•0 comments

A Watermark for Large Language Models

https://arxiv.org/abs/2301.10226
2•matheusmoreira•27m ago•0 comments

Neon acquires ElectricSQL to build better data syncing for agents

https://electric.ax/blog/2026/08/11/electric-joining-databricks
4•paulwarren•30m ago•0 comments

Diabetes charity capitalises on AI technology

https://www.royalgazette.com/health/news/article/20260811/diabetes-charity-capitalises-on-ai-tech...
2•caruasdo•32m ago•0 comments

CFTC declares market emergency, orders Kalshi to continue to operate in New York

https://www.cftc.gov/PressRoom/PressReleases/9281-26
23•michaefe•33m ago•3 comments

Self-contained agents that self-organize

https://antigma.ai/
3•wspeirs•40m ago•0 comments

GitHub repo hagezi/DNS-blocklists flagged

https://old.reddit.com/r/pihole/comments/1vkcklm/github_repo_hagezidnsblocklists_gone
3•impish9208•48m ago•1 comments

delegate-skills

https://github.com/amElnagdy/delegate-skills
2•frozenseven•50m ago•0 comments

A free federal court deadline calculator that shows its FRCP Rule 6 work

https://smeltworks.com/courtclock/
1•lvaughan_cc•51m ago•0 comments

Show HN: ListToCart – Turn photo(s) of a school supply list into an Amazon cart

https://listtocart.com/
1•areveo•51m ago•0 comments

Xinjiang Internment Camps

https://en.wikipedia.org/wiki/Xinjiang_internment_camps
8•palad1n•51m ago•0 comments

Who Pays for the High-Powered Grid That Data Centers Need?

https://www.texasobserver.org/who-pays-for-texas-grid-upgrades-data-centers/
2•cdrnsf•53m ago•0 comments

"The Search Results Are Poisoned"

https://chris-parmer.com/the-search-results-are-poisoned/
2•chriddyp•55m ago•0 comments

Traces of Two Extinct 'Ghost' Ancestors Were Found Hiding in Modern Human DNA

https://www.smithsonianmag.com/smart-news/traces-of-two-extinct-ghost-ancestors-were-found-hiding...
1•bookofjoe•56m ago•0 comments

Open AI models hacked into HuggingFace

https://www.instagram.com/p/DbGS8_0FmKx/
2•zlu•57m ago•0 comments

AI Is Dead. Organoids Are Alive

https://www.wired.com/story/organoids-lab-grown-brains-neural-networks/
2•Logans_Run•1h ago•0 comments

The closing of the U.S. economy's K-shaped gap

https://www.axios.com/2026/08/11/spending-growth-income
3•toomuchtodo•1h ago•0 comments

Playcall is the open-source alternative to Gong

https://github.com/Dphenomenal101/playcall
1•mooreds•1h ago•0 comments

Geoffrey Hinton's Bad AI Prediction Became a Legend [video]

https://www.youtube.com/watch?v=mv4EAR0jAUU
1•rossdavidh•1h ago•0 comments