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

Qalb: A programming language that uses the Arabic script instead of Latin

https://nas.sr/%D9%82%D9%84%D8%A8/
1•Muhammad523•2m ago•0 comments

Show HN: An agent that calculates how energy levels affect your goal progression

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

The Case of Yemen's .YE Country-Code Domain

https://freethedotye.org/blog/when-militia-owns-ye/
2•FreeTheDotYE•6m ago•0 comments

How Mike Will Made It

https://www.newyorker.com/magazine/2016/07/11/how-mike-will-made-it
2•georgex7•8m ago•0 comments

AI recursive self-improvement might not come so quickly after all (August 2026)

https://www.technologyreview.com/2026/08/18/1142188/ai-recursive-self-improvement/
3•dgellow•15m ago•0 comments

Flock cameras used to arrest a child for playing on a swing

https://www.youtube.com/watch?v=koclOnlde0E
9•chadgpt3•17m ago•1 comments

The History of the Internet - Tay Zonday [video]

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

Playing Bad Apple on the brain of a simulated fruit fly

https://www.reddit.com/r/oddlyterrifying/comments/1w9yhqv/playing_bad_apple_on_the_brain_of_a_sim...
1•robotnikman•19m ago•0 comments

Ask HN: One month, zero paying customers – keep it or kill it?

1•iGag•23m ago•0 comments

Molt – Thermally aware QLORA fine-tuning for Windows laptop GPUs

https://github.com/PraveenNimilka/MOLT
1•PraveenNimilka•23m ago•0 comments

AI Agent Doesn't Need a Bigger Prompt. It Needs a Data Catalog

https://aeroscissorz.github.io/aeroscissorz/posts/knowledge-catalog/
2•aeroscissorz1•24m ago•0 comments

What Is to Be Done? (2023)

https://twitter.com/pmarca/status/1666113642709020672
1•tosh•27m ago•0 comments

The tab is coming due for America's borrowing binge

https://www.axios.com/2026/09/13/national-debt-interest-rates-rising
2•toomuchtodo•27m ago•2 comments

Image to SVG in the browser, with no upload and real point editing

https://getsvg.app/
2•msmode•27m ago•0 comments

Calspan Bicycle and Motorcycle Dynamics Reports

http://bicycle.tudelft.nl/schwab/Bicycle/calspan/
1•Bluestein•29m ago•0 comments

Google is ending Gmail 'Send as' support for third-party accounts

https://proton.me/blog/gmail-ends-send-as-third-party
2•sltkr•29m ago•0 comments

The Air Computer

https://thechipletter.substack.com/p/the-air-computer
2•klelatti•30m ago•0 comments

Suicidal Compassion: Utilitarianism at AI Companies Endangers Humanity

https://ai-frontiers.org/articles/suicidal-compassion-how-utilitarianism-at-ai-companies-endanger...
3•YeGoblynQueenne•32m ago•0 comments

Government Survey Finds More Screentime Means Lower Scores for Japanese Students

https://www.nippon.com/en/japan-data/h02871/
3•akyuu•32m ago•0 comments

Rhizome ArtBase

https://artbase.rhizome.org/wiki/Main_Page
3•themaxdavitt•32m ago•0 comments

One event, five status codes and a class

https://percentes.ai/writing/2026/one-event-five-status-codes-and-a-class/
3•itsveems•33m ago•0 comments

You delete a file on Linux while a program has it open. What happens? (quiz)

https://textlog.cc/post/3662?hn
9•stagas•36m ago•5 comments

Skaterdater (1965) [video]

https://www.youtube.com/watch?v=IhgrkjSyrJU
4•js2•37m ago•0 comments

Infinote is an infinite canvas for sticky notes installable as a PWA

https://infinote.surge.sh/
2•stagas•40m ago•0 comments

Show HN: Makefaster.dev

https://makefaster.dev
3•jjcm•40m ago•0 comments

A nanolaser with extreme dielectric confinement

https://www.science.org/doi/10.1126/sciadv.adx3865
1•westurner•41m ago•1 comments

Trump rejects call by CEOs of Anthropic, OpenAI and xAI to slow AI down

https://www.yahoo.com/news/us/article/trump-rejects-call-by-ceos-of-anthropic-openai-and-xai-to-s...
9•respectattentio•42m ago•8 comments

A 40-minute timer for thinking before you ask the AI

https://www.sithankanna.com/ceo-hour/
1•hdit•42m ago•0 comments

Piezoelectric effect in polycrystalline diamond membranes

https://www.science.org/doi/10.1126/sciadv.aea8318
1•westurner•45m ago•1 comments

Built a Lego minifigure configurator. Shuffle until something makes you laugh

https://minifigs-studio.vercel.app/
2•fvitas•46m ago•0 comments