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

Making history China lands rocket during an orbital launch for first time

https://www.space.com/space-exploration/launches-spacecraft/making-history-china-lands-rocket-dur...
1•yogthos•29s ago•0 comments

What is momentum?(joke video) (2021)

https://www.youtube.com/watch?v=jm7jVi8akcc
1•num42•2m ago•0 comments

Soulless – List of AI Artists Hiding on Spotify

https://soullessmusic.com/
1•ChrisArchitect•2m ago•0 comments

Blanks – Why do some books contain blank pages? (2016)

https://rhollick.wordpress.com/2016/03/01/blanks/
1•gurjeet•2m ago•0 comments

GPT-5.6 Sol Ultra produces proof of the Cycle Double Cover Conjecture [pdf]

https://cdn.openai.com/pdf/04d1d1e4-bc75-476a-97cf-49055cd98d31/cdc_proof.pdf
1•scrlk•3m ago•1 comments

The Future Worth Building Is Human

https://thinkingmachines.ai/blog/the-future-worth-building-is-human/
1•ot•5m ago•0 comments

Navigating the 47-Day SSL/TLS Certificate Validity Era

https://www.globalsign.com/en/blog/navigating-the-47-day-ssl-tls-certificate-validity-era
1•mooreds•5m ago•0 comments

New York City to become first in US to ban deceptive subscription practices

https://www.theguardian.com/us-news/2026/jul/10/new-york-city-deceptive-subscriptions-ban
3•randycupertino•6m ago•0 comments

Where teams of AI agents choose, keep and improve the profiles they run

https://library.aweb.ai/
1•juanre•6m ago•0 comments

Deep sea submersibles snap first photos of ship where Ernest Shackleton died

https://www.popsci.com/science/shackleton-quest-ship-photos/
1•speckx•7m ago•0 comments

EEG Signal Quality of an In-Ear Wearable

https://pmc.ncbi.nlm.nih.gov/articles/PMC11207223/
1•soupspaces•8m ago•0 comments

Electric car drivers dodge Russia's hours-long fuel queues

https://www.reuters.com/business/energy/electric-car-drivers-dodge-russias-hours-long-fuel-queues...
2•bushwart•8m ago•0 comments

ORM: Between Objects and Relational Databases

https://www.makonea.com/en-US/blog/the-history-of-orm-between-objects-and-relational-databases
1•jdw64•10m ago•0 comments

Opinion polls see France's Le Pen winning 2027 election despite guilty verdict

https://www.reuters.com/world/europe/opinion-polls-see-frances-le-pen-winning-2027-election-despi...
2•melenchon•12m ago•1 comments

Voicebox: The Open-Source AI Voice Studio

https://github.com/jamiepine/voicebox
1•idleplant•14m ago•0 comments

Feasio – AI that gives brutally honest feasibility reports on business ideas

https://feasio.co/
2•alwgiles•15m ago•0 comments

An Update on the Scraper Situation

https://lwn.net/Articles/1080822/
1•aendruk•16m ago•0 comments

UK Online Safety Consultation: Giving users more choice control and trust online

https://www.ofcom.org.uk/online-safety/illegal-and-harmful-content/giving-users-more-choice-contr...
1•timthorn•16m ago•0 comments

The Weird Pattern of Japan Determining the World Cup Winners

https://old.reddit.com/r/worldcup/comments/1uprrsj/the_weird_pattern_of_japan_determining_the_world/
1•Anon84•17m ago•0 comments

Superoptimizer – A Look at the Smallest Program

https://dl.acm.org/doi/epdf/10.1145/36177.36194
1•linggen•17m ago•0 comments

A batch job, in The Elm Architecture

https://cekrem.github.io/posts/elm-run-batch-job/
1•linggen•17m ago•0 comments

DIY Mini Split Install: 3 Regrets After 1 Year of Use [video]

https://www.youtube.com/watch?v=5dCCntGj1wM
2•Bender•18m ago•0 comments

Sodas with a Doctorate

https://bsky.app/profile/tudorsandtms.bsky.social/post/3mpz7mfizyc24
2•Tomte•18m ago•0 comments

Waymo cars stranded on SF streets as 4th of July gridlock drains batteries

https://www.nbcnews.com/news/us-news/waymo-cars-stranded-san-francisco-streets-drain-batteries-rc...
3•bushwart•19m ago•0 comments

Show HN: A 100% branchless, CUDA-native AI guardrail kernel written in C++20

https://github.com/PJHkorea/value-system-kernel
2•PJHkorea•20m ago•1 comments

Japan's pension pivot puts Abe-era outpouring of capital in reverse

https://www.reuters.com/world/asia-pacific/takaichis-pension-pivot-seeks-reverse-abe-era-outpouri...
1•tartoran•20m ago•0 comments

Harness Handbook

https://ruhan-wang.github.io/Harness-Handbook/
3•handfuloflight•22m ago•0 comments

Amazon's New Debt Deal Puts Its AI Spending Story on Trial

https://www.marketbeat.com/articles/amazons-new-debt-deal-puts-its-ai-spending-story-on-trial/
1•smn1234•22m ago•0 comments

Burning the 3:40 AM Window

https://www.kevinlondon.com/2026/07/07/burning-the-3-40-am-window/
1•Kaedon•23m ago•0 comments

Engineering technique- Stop Drilling [video]

https://www.youtube.com/shorts/LG-qDttgQUE
2•lifeisstillgood•24m ago•0 comments