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

Basics of the Unix Philosophy

https://cscie2x.dce.harvard.edu/hw/ch01s06.html
1•num42•38s ago•0 comments

Show HN: Linux and iPhone Continuity (iMessage / SMS)

https://github.com/zackb/tether
1•zackb•53s ago•0 comments

KVM Planes Head for Takeoff

https://lwn.net/Articles/1087590/
1•pykello•3m ago•0 comments

The Grand Unified Theory Extends A.E.'S Goals

https://medium.com/@f9121212/the-grand-unified-theory-extends-a-e-s-goals-b2c9456d7813
1•ortrich•4m ago•1 comments

Why Microsoft Entertainment Pack had a sticker announcing that it had Tetris?

https://devblogs.microsoft.com/oldnewthing/20260818-00/?p=112621
2•tybulewicz•12m ago•0 comments

The Pit of Success – An Interview with Rico Mariani

https://www.youtube.com/watch?v=48Rig6v-xYU
1•bananaboy•17m ago•0 comments

MailSalonSync – replace offlineimap or mbsync with JMAP support, written in Go

https://git.cerberusgames.ca/Starstreak/MailSalonSync
1•QBasicBitch•20m ago•0 comments

Thoughts About Scaling Law (By the Founder of ZAI of GLM Fame)

https://xcancel.com/antibot/captcha
2•vismit2000•27m ago•0 comments

Designing Loops for Production-Grade Work

https://www.liquid.ai/blog/agent-loops
2•kiyanwang•29m ago•0 comments

The little-told story of the WWII pet cull

https://www.bbc.com/news/magazine-24478532
3•madihaa•32m ago•0 comments

Measuring Strait of Hormuz ship traffic and how Big Oil profits from it

https://wherobots.com/blog/hormuz-vessel-detection/
1•dr-jia-yu•38m ago•0 comments

Polygon Discovers Fire Emblem: Fortune's Weave Requires the Console It Was Made

https://noisypixel.net/fire-emblem-fortunes-weave-switch-2-exclusive/
2•jamarna•41m ago•1 comments

Packing Malware in Rosetta 2

https://kernelkennel.com/blog/summercon2026-rosetta/
2•n0blenote•41m ago•0 comments

American killed by lightning while climbing Italian volcano

https://www.newsweek.com/american-killed-by-lightning-while-climbing-italian-volcano-12330506
1•jamarna•42m ago•0 comments

Slack Code Is Live

https://twitter.com/Benioff/status/2090240159115853956
1•ramoz•43m ago•1 comments

Armwood High graduate uses 40 scholarships to attend Princeton

https://baynews9.com/fl/tampa/news/2026/08/14/armwood-high-graduate-uses-scholarships-to-make-pri...
2•banimak•45m ago•0 comments

SeedSQL – Generate realistic SQL mock data with foreign key integrity

https://seed-sql.ai.studio
2•hrdhanush•46m ago•0 comments

Cloudflare Workers Spectre Attack Leaks JWT at 12 Bits/S

https://cyberupdates365.com/cloudflare-workers-spectre-attack/
2•sysadmin_diarie•46m ago•0 comments

MiniageOS: "Dumbphone" Version of LineageOS

https://github.com/ofdryads/miniageOS
2•ashenke•46m ago•0 comments

Fool's Gold: Defensive Deception Against Safety-Removal Attacks on Open-Weight

https://arxiv.org/abs/2608.17202
2•sbulaev•47m ago•0 comments

Scenic spot in Italian mountains overrun by tourists seeking the perfect pastry

https://www.ctvnews.ca/lifestyle/article/scenic-spot-in-italian-mountains-overrun-by-tourists-see...
2•mafidia•47m ago•0 comments

GEN-1.5, a one-shot learner robotics foundational model [video]

https://www.youtube.com/watch?v=1cllCVK-9lo
3•AareyBaba•48m ago•0 comments

Imging – Local Image Tools

https://imging.cn/en/
2•fgghyyfk•50m ago•0 comments

'It wasn't me': Weed use in Allegheny County jury room forces homicide mistrial

https://triblive.com/privacy/
1•hussnymoba•50m ago•0 comments

Cost-Aware Optimization for Agentic Query Execution

https://arxiv.org/abs/2606.03152
1•matt_d•51m ago•0 comments

Invited media and military members held at gunpoint at Space Force base in Calif

https://apnews.com/article/vandenberg-space-force-base-california-journalists-detained-4815c999cb...
3•barnoka•54m ago•0 comments

Hamilton's Theory of Turns Revisited

https://arxiv.org/abs/0904.4787
1•oliculipolicula•54m ago•0 comments

Forty First Dates and Still Searching

https://www.nytimes.com/2026/08/18/well/family/forty-first-dates-and-still-searching.html
1•gmays•54m ago•0 comments

Crypto's (and AI's) midterm PAC machine

https://www.politico.com/newsletters/politico-influence/2026/08/19/a-rare-setback-for-cryptos-mid...
1•mmooss•55m ago•1 comments

Scaling RAG building an efficient pipeline for 500k chunks with Gemini

https://www.rsolitario.com/scaling-rag-building-an-efficient-pipeline-for-500k-chunks-with-gemini...
2•caruasdo•56m ago•0 comments