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

Show HN: agent-marketplace

https://www.adyen.com/knowledge-hub/agent-marketplace
1•AlexanderGrooff•2m ago•0 comments

Politico and Telegraph owner pitched deal to buy European arm of TikTok

https://www.ft.com/content/171220b9-8d8e-4d82-a866-f9aaf258e0fb
1•alephnerd•3m ago•0 comments

Unitree Introducing: H2-X Kung Fu Legend Guardian

https://twitter.com/UnitreeRobotics/status/2112819774573179175
1•ksec•5m ago•0 comments

Replacing PyTorch with Julia and Reactant: One Year In

https://csvance.dev/posts/2026-10-22-reactant-end-to-end/
1•csvance•6m ago•1 comments

eMudhra 1FA OTP Login Bypass

https://mastodon.catgirl.cloud/@49016/117475921584308861
1•majorchord•6m ago•0 comments

Why your Gmail open rate is 30-40% too high, and how to check your own numbers

https://pay.trytoolboxpro.com/blog/why-gmail-open-rates-are-inflated
1•hyehugh•7m ago•0 comments

ASGC Games Industry Layoffs Tracker

https://layoffs.asgc.gg/
1•pjmlp•8m ago•0 comments

Tablesample Picks Rows

https://boringsql.com/posts/tablesample/
1•surprisetalk•10m ago•0 comments

State of IaaS and Compute 2026: market benchmark and cost analysis

https://cloudcompare.dev/reports/state-of-iaas-and-compute-2026-market-benchmark-and-cost-analysis
1•atmeszaros•10m ago•0 comments

1 in 10 members of Congress traded stocks in companies their committees oversee

https://www.kadoa.com/congress/insights/committee-trades
1•hubraumhugo•10m ago•0 comments

Trump Asked Google to Rename Atlantic Ocean 'Trump Ocean'

https://www.newsweek.com/trump-asked-google-rename-atlantic-trump-ocean-12603389
5•TrackerFF•11m ago•0 comments

The New Big Ball of Mud: Why Agentic AI Systems Turn Fragile

https://www.nngroup.com/articles/big-ball-of-mud-ai/
3•TonyAlicea10•15m ago•0 comments

Diplomatic Ways to Critique AI Slop

https://www.seascapemodels.org/posts/2026-10-20-diplomatic-critique-of-ai-slop/
1•sebg•17m ago•0 comments

Fun and useful ideas/mini-projects to build with Claude

https://araujo.zip/blog/things-i-built-with-claude
1•pedrospective•17m ago•0 comments

Musk ordered Starlink slowdown in Ukraine, then blamed it on Trump

https://arstechnica.com/tech-policy/2026/10/report-says-musk-not-trump-ordered-starlink-throttlin...
4•AliCollins•17m ago•0 comments

10 Most Expensive States to Start a Business (2027)

https://www.northwestregisteredagent.com/start-a-business/expensive-states-for-startups
1•hwj•19m ago•0 comments

Practical Compiler Construction, 64-Bit Edition

http://t3x.org/reload64/
4•nils-m-holm•19m ago•0 comments

Amazon identifies Oct 17 PHP2Shell exploitation prior to public disclosure

https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitatio...
12•cubefox•19m ago•1 comments

"Flying Tesla is just another Lie" [TopCars TV] [video]

https://www.youtube.com/watch?v=SY6OhPs3ltM
2•Kevin_Flynn•20m ago•0 comments

DrinkR: Estimate your Blood Alcohol Concentration (BAC) (right in the browser)

https://rasmusab.github.io/drinkr/
1•sebg•20m ago•0 comments

The Responsibility of Invention

https://blue-continuum.com/the-responsibility-of-invention
1•dnetesn•20m ago•0 comments

Virtual3D – v1.0.710(Oct 22.26) Released

https://starsigndev.itch.io/virtual3d
1•antonyrobwells•21m ago•0 comments

Hacking attempts as companies, governments rush to patch PHP flaws

https://www.reuters.com/world/asia-pacific/cloudflare-sees-millions-exploit-attempts-after-php-di...
2•TechTechTech•24m ago•0 comments

Did it just build.. a clock?

https://theclock.online/
1•DirkJanMeijer•24m ago•1 comments

Safespace: A Safe Space to Experience Pull Requests

https://github.com/jonocarroll/safespace
1•sebg•26m ago•0 comments

Capcom says breach affected > 11M Capcom ID accounts, CC details unaffected

https://www.videogameschronicle.com/news/capcom-says-a-data-breach-affected-more-than-11-million-...
2•choult•27m ago•0 comments

Xbox wants you to pay 24 to 40 cents per hour to stream games you bought

https://arstechnica.com/gaming/2026/10/xbox-wants-you-to-pay-24-to-40-cents-per-hour-to-stream-ga...
18•entryleveljobsc•28m ago•10 comments

Nginx 1.30.6 (stable) and 1.31.8 (mainline) released with security fixes

https://nginx.org/en/security_advisories.html
1•Bender•28m ago•0 comments

TIL that Earth is technically in an Ice Age

https://twitter.com/Andercot/status/2113160571713630218
2•bilsbie•28m ago•0 comments

Craig Newmark (Craigslist Founder) AMA on Reddit

https://www.reddit.com/r/IAmA/comments/1xbpz45/im_craig_from_craigslist_and_founder_of_take9_a/
1•mrburton•31m ago•0 comments