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

The Consensus Algorithm

1•gokuljs•17s ago•0 comments

Show HN: How LLMs Work – Interactive visual guide based on Karpathy's lecture

https://ynarwal.github.io/how-llms-work/
2•ynarwal__•1m ago•0 comments

DeepSeek targets $20B valuation to stop poaching of staff

https://www.ft.com/content/f7c65d8e-aed1-4767-9ea3-9715cb8a24e0
2•petethomas•3m ago•0 comments

Gbrain-Evals

https://github.com/garrytan/gbrain-evals
2•mjtk•7m ago•1 comments

Pentagon email floats suspending Spain from NATO

https://www.reuters.com/world/pentagon-email-floats-suspending-spain-nato-other-steps-over-iran-r...
1•nistiminic•8m ago•0 comments

United plans fare hikes to offset fuel costs

https://www.usatoday.com/story/travel/airline-news/2026/04/22/united-airlines-ticket-prices/89734...
1•geox•12m ago•0 comments

When NASA Gave Spiders Drugs to See How It Affected Their Webs, 1995

https://rarehistoricalphotos.com/nasa-spiders-drugs-experiment/
1•simonebrunozzi•14m ago•0 comments

The Atari 1200XL – By Paul Lefebvre

https://www.goto10retro.com/p/inside-the-atari-1200xl
1•rbanffy•15m ago•0 comments

Show HN: Safer – Sleep better while AI agents have shell access

https://github.com/crufter/safer
1•friendly_chap•16m ago•0 comments

Xi Jinping wants a powerful currency. America's war has helped

https://www.economist.com/finance-and-economics/2026/04/23/xi-jinping-wants-a-powerful-currency-a...
1•petethomas•17m ago•0 comments

AI and Videogames – Conversational NPCs

https://www.youtube.com/watch?v=KfcIY0xePiM
1•frag•19m ago•0 comments

Why are the Mac mini and Mac Studio gradually becoming impossible to buy?

https://arstechnica.com/gadgets/2026/04/apples-m4-mac-mini-including-the-599-one-is-gradually-bec...
1•rbanffy•21m ago•1 comments

Business Ideas Under 5 Lakhs to Start Small – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/business-ideas-under-5-lakhs.aspx
1•saumyaraut11•22m ago•0 comments

The Viscous Frontier – How to Move When the Machine Stops Pulling

https://aneeshsathe.substack.com/p/the-viscous-frontier
1•boredgargoyle•23m ago•0 comments

Advantages of Longhand over Laptop Note Taking (2014) [pdf]

https://brucehayes.org/Teaching/papers/MuellerAndOppenheimer2014OnTakingNotesByHand.pdf
1•the-mitr•26m ago•0 comments

In a first, a ransomware family is confirmed to be quantum-safe

https://arstechnica.com/security/2026/04/now-even-ransomware-is-using-post-quantum-cryptography/
1•rbanffy•26m ago•0 comments

YouTube Meet the Line-Dancing Community Doodle Taking Up Resources

1•Throwthrowbob•30m ago•0 comments

Doby –Spec-first fix workflow for Claude Code that cuts navigation tokens by 95%

https://github.com/changmyoungkim/doby
1•changmyoungkim•30m ago•0 comments

Ask HN: Models Comparable to Opus 4.6?

3•islandbytes•33m ago•0 comments

Show HN: Gova – The declarative GUI framework for Go

https://github.com/NV404/gova
2•aliezsid•33m ago•0 comments

Show HN: Proving sdocs.dev is running the public code

https://sdocs.dev/trust
1•FailMore•35m ago•0 comments

How Do LLM Agents Think Through SQL Join Orders?

https://ucbskyadrs.github.io/blog/databricks/
1•matt_d•43m ago•0 comments

Is Unbound AI the future of adult entertainment?

https://unbound.video/landing4
3•Discuss-AI•44m ago•7 comments

The Most Controversial Post I Ever Wrote on Quora

https://derangedmathematician.substack.com/p/the-most-controversial-post-i-ever
1•wjholden•47m ago•0 comments

My .config Ship of Theseus

https://shift1w.com/blog/config-of-theseus/
2•jacobwiseberg•50m ago•0 comments

Pedal History Is in Danger – ChatGPT Is Rewriting Fact – and It's Getting Worse [video]

https://www.youtube.com/watch?v=0QynkC5HpcI
1•bryanrasmussen•51m ago•0 comments

Sinceerly: AI to undo your AI writing

https://sinceerly.com/
1•MrBuddyCasino•1h ago•0 comments

Ben Goldacre: OpenSAFELY in Brief

https://www.bennett.ox.ac.uk/blog/2025/02/opensafely-in-brief/
3•anitil•1h ago•1 comments

Do those that deserve the world, get the world?

https://dreamingtooloud.substack.com/p/do-those-that-deserve-the-world-get
1•homebush•1h ago•0 comments

AI-powered knowledge assistant for sexual and reproductive health

https://chathrp.org/
1•salkahfi•1h ago•0 comments