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

1-Click GitHub Token Stealing via a VSCode Bug

https://blog.ammaraskar.com/github-token-stealing/
1•ammar2•26s ago•0 comments

Winners and Losers from Stephen Curry's Li-Ning Sneaker Deal

https://www.si.com/fannation/sneakers/news/winners-losers-from-stephen-curry-li-ning-sneaker-deal
1•eatonphil•1m ago•0 comments

Philly cops admit they're tracking "First Amendment activity" critical of AI

https://theintercept.com/2026/06/01/ai-data-center-protest-police-surveillance/
1•ripe•1m ago•0 comments

Use more DuckDuckGo with a convenient escape to Google in Firefox

https://github.com/gogrinimish/ducktogoogle/
2•stinger•3m ago•1 comments

Why America Can't Have Robots and Other Nice Things

https://www.corememory.com/p/westmag-atlas-american-actuators-china
1•speckx•3m ago•0 comments

Take This Data Center and Shove It

https://prospect.org/2026/06/02/jun-2026-take-this-data-center-and-shove-it/
1•cdrnsf•4m ago•0 comments

Patagonia Sues Pattie Gonia

https://www.nytimes.com/2026/06/02/us/pattie-gonia-patagonia-trademark-lawsuit.html
1•hmokiguess•4m ago•0 comments

Google and Voltus sign agreement for smart energy capacity

https://blog.google/company-news/outreach-and-initiatives/sustainability/voltus-agreement/
2•wrlach•6m ago•0 comments

Show HN: Extend MySQL with Rust

https://github.com/villagesql/vsql-rust-sdk
1•deesix•6m ago•0 comments

Show HN: An experimental tensor DSL/compiler with explicit scheduling

https://github.com/ilang-dev/i
1•loganboyd•6m ago•1 comments

A Monte Carlo estimate of π

https://www.jojjjajjr.net/blog/2026/06/01/monte-carlo-pi/
1•tjwds•9m ago•0 comments

Anthropic faces AI spending backlash before IPO

https://www.axios.com/2026/06/02/anthropic-ipo-ai-sticker-shock-spending-usage
2•Brajeshwar•9m ago•0 comments

OpenType Feature File Specification

http://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html
1•jacobwinters•10m ago•0 comments

Dear Aliens – writing contest winners

https://www.dearaliens.net
1•surprisetalk•10m ago•0 comments

The Good Days Are Over

https://impactoperations.substack.com/p/the-good-days-are-over
3•mooreds•12m ago•0 comments

We rebuilt PostgreSQL branch metrics on VictoriaMetrics, per cell

https://xata.io/blog/how-we-rebuilt-postgresql-branch-metrics-on-victoriametrics-per-cell
2•eatonphil•12m ago•0 comments

When your code speaks Rails instead of the domain

https://paweldabrowski.com/farewell-to-rails-way/when-your-code-speaks-rails-instead-of-the-domain
2•doppp•13m ago•0 comments

The Manhattan Institute Helped Kill DEI. Now It's Coming for Protests

https://www.wired.com/story/the-manhattan-institute-helped-kill-dei-now-its-coming-for-protests/
3•bhouston•14m ago•1 comments

Show HN: DropLock – E2EE secret sharing web app with no backend

https://droplock.apitman.com/
2•apitman•14m ago•0 comments

Catch bad AWS spending before it ships

https://cloudburn.io
2•mooreds•14m ago•0 comments

The future of creator businesses isn't more AI features

https://www.spencerfry.com/blog/the-future-of-creator-businesses
2•mooreds•15m ago•0 comments

Launching Construct Game Services – Cloudflare for Games

https://www.construct.net/en/blogs/construct-official-blog-1/launching-construct-game-1901
3•AshleysBrain•15m ago•0 comments

Phraseum – a puzzle game for learning languages through collocations and phrases

https://phraseum.com/
2•Ondrej72•16m ago•0 comments

Google's Top DMCA Sender Plateaus at 70M Takedowns per Week

https://torrentfreak.com/googles-top-dmca-sender-plateaus-at-70-million-takedowns-per-week/
2•speckx•16m ago•0 comments

Show HN: Opaque – A header-only C++ anti-analysis library

2•thyrn90•16m ago•0 comments

Show HN: I aggregated every rt-PCR primer published into a single database

https://www.primerpickr.com/
3•tmolley•16m ago•0 comments

Show HN: Piqc – GPU waste scanner for LLM inference clusters

https://github.com/paralleliq/piqc
3•paralleliq•18m ago•0 comments

Review of the MoErgo Go60 Keyboard

https://arslan.io/2026/06/02/review-of-the-moergo-go60-keyboard/
2•farslan•19m ago•0 comments

Show HN: Opstan, a decentralized social network on a PoW blockchain

https://github.com/OpstanGit/opstan
3•opstan•19m ago•1 comments

Harness Acquires Codecov from Sentry

https://www.harness.io/press-and-news/harness-acquires-codecov
3•stsewd•19m ago•2 comments