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

Energy-Generating Floor Tiles: How Pavegen Turns Steps into Power

https://insights.greyb.com/pavegen-energy-generating-floor-tiles-patents/
1•Rahul035•3m ago•1 comments

AI as a WordPress Fundamental

https://make.wordpress.org/core/2025/12/04/ai-as-a-wordpress-fundamental/
1•gslin•7m ago•0 comments

Fast trigram based code search

https://github.com/sourcegraph/zoekt
2•cv_h•14m ago•0 comments

Sugars, 'Gum,' Stardust Found in NASA's Asteroid Bennu Samples

https://www.nasa.gov/missions/osiris-rex/sugars-gum-stardust-found-in-nasas-asteroid-bennu-samples/
1•ryan_j_naughton•15m ago•0 comments

Anthropic's Claude Interviewer

https://claude.ai/interviewer
2•Brajeshwar•16m ago•0 comments

Weird FFmpeg Use Cases

https://www.twitch.tv/videos/2635259036
1•implabinash•20m ago•1 comments

Nvidia CUDA Tile

https://developer.nvidia.com/cuda/tile
3•elkguy•22m ago•0 comments

PRC State-Sponsored Actors Use Malware Across Public Sector and IT Systems

https://www.cisa.gov/news-events/alerts/2025/12/04/prc-state-sponsored-actors-use-brickstorm-malw...
3•gslin•23m ago•0 comments

Vpternlog: Signed Saturation

https://wunkolo.github.io/post/2025/12/vpternlog-signed-saturation/
1•mfiguiere•23m ago•0 comments

Nanopositioning Metrology, Gödel, and Bootstraps

https://www.pi-usa.us/en/tech-blog/nanopositioning-metrology-goedel-and-bootstraps
1•nill0•23m ago•0 comments

Show HN: A fun sustainability marketplace for teams

https://createamarketplace.com/social-marketplace
1•cladian•24m ago•0 comments

Nano Banana Pro – AI Image Editor with Perfect Text Rendering and 4K

https://nanobanana.org
2•MikeMoh•28m ago•0 comments

Warner Bros Begins Exclusive Deal Talks With Netflix

https://www.bloomberg.com/news/articles/2025-12-05/warner-bros-is-said-to-begin-exclusive-deal-ta...
1•mfiguiere•30m ago•2 comments

High Friction Learning Habits: Why Your "Second Brain" Is Failing

https://medium.com/@awabs/jit-learning-why-just-in-case-information-gets-deleted-by-your-brain-15...
1•Awab•32m ago•0 comments

NeuralRemaster: Phase-Preserving Diffusion for Structure-Aligned Generation

https://www.youtube.com/watch?v=pqmdsO1L45w
1•E-Reverance•40m ago•0 comments

Review: Surreal Numbers

https://signoregalilei.com/2025/11/26/review-surreal-numbers/
1•surprisetalk•43m ago•0 comments

A Man I Want to Meet the Most

https://chillphysicsenjoyer.substack.com/p/the-man-i-want-to-meet-the-most
3•surprisetalk•43m ago•0 comments

Rabbit Hole Learning

https://seated.ro/posts/rabbit-hole-learning.html
3•surprisetalk•43m ago•0 comments

The "Pretend to Work" Loophole of China [video]

https://www.youtube.com/watch?v=W7VJLipgiuQ
1•surprisetalk•43m ago•0 comments

Trump: Japan's 'Cute' Kei Cars Are Coming to America

https://www.motor1.com/news/780870/trump-kei-cars-coming-america/
4•harambae•48m ago•0 comments

Rethink Talks New Transcoding Report and Future of VVC, AV1, and Lcevc

https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=172602
2•breve•50m ago•0 comments

Samsung unveils first multi-folding phone as competition set to heat up

https://www.reuters.com/business/media-telecom/samsung-unveils-first-multi-folding-phone-competit...
1•mgh2•50m ago•0 comments

Show HN: Vibe Commander

https://github.com/AvitalTamir/vibecommander
2•fatliverfreddy•1h ago•0 comments

Bcachefs 1.33.0 – Reconcile

https://lore.kernel.org/linux-bcachefs/slvis5ybvo7ch3vxh5yb6turapyq7hai2tddwjriicfxqivnpn@xdpb25w...
2•RGBCube•1h ago•0 comments

Updating My Bash Prompt

https://martianlantern.github.io/2025/11/updating-my-bash-prompt/
2•martianlantern•1h ago•1 comments

Robotgo v1.0.0 and Pro, easy build automation, auto test, computer use

https://github.com/go-vgo/robotgo/releases/tag/v1.0.0
2•veni0•1h ago•0 comments

South Korea developing app that shows real-time location of stalkers

https://www.bbc.com/news/articles/cp84y7jx2pzo
4•1659447091•1h ago•0 comments

The Long, Knotty, World-Spanning Story of String

https://hakaimagazine.com/features/the-long-knotty-world-spanning-story-of-string/
2•bookofjoe•1h ago•0 comments

Blogging in 2025: Screaming into the Void

https://askmike.org/articles/blogging-in-2025-screaming-into-the-void/
2•askmike•1h ago•0 comments

Apple iOS 27 to Be No-Frills 'Snow Leopard' Update

https://www.bloomberg.com/news/newsletters/2025-11-23/apple-ios-27-snow-leopard-like-quality-focu...
1•dlx•1h ago•1 comments