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

Alternative solvent makes lead-free perovskite solar cells 10x more stable

https://pubs.acs.org/doi/10.1021/acsenergylett.5c02675
1•gsf_emergency_6•1m ago•0 comments

Room-Size Particle Accelerators Go Commercial

https://spectrum.ieee.org/plasma-wakefield-acceleration
1•geox•13m ago•0 comments

Damn Small Linux

https://www.damnsmalllinux.org/
1•grubbs•15m ago•1 comments

India weighs greater phone-location surveillance

https://www.reuters.com/sustainability/boards-policy-regulation/india-weighs-greater-phone-locati...
1•gdeglin•18m ago•0 comments

Real Policies to stop people using AI for cyberattacks, bioweapons, & more

https://app.excalidraw.com/l/7ULi4Jv3VIo/ATs5lrdppys
1•PhilosophyForAI•20m ago•1 comments

Increasing code performance with LTO [video]

https://www.youtube.com/watch?v=fPGodf5hNoo
1•edward28•22m ago•0 comments

I opened a shared notebook where anyone can add their favorite music playlist

https://clipnotebook.com/c84de082-65d1-4eaf-9449-ef48f67462dd
7•puildupO•23m ago•4 comments

Apple's chief chip architect has reportedly talked to Tim Cook about leaving

https://www.tomshardware.com/tech-industry/apples-chief-chip-architect-for-the-last-decade-has-re...
1•pseudolus•30m ago•1 comments

Asynchronous Circuit

https://en.wikipedia.org/wiki/Asynchronous_circuit
1•DustinEchoes•34m ago•0 comments

Programming Party Tricks [video]

https://www.youtube.com/watch?v=4KdvcQKNfbQ
2•marvinborner•34m ago•0 comments

Lessons Learned After Trying MeshCore for Off-Grid Text Messaging

https://hackaday.com/2025/12/06/lessons-learned-after-trying-meshcore-for-off-grid-text-messaging/
2•lxm•41m ago•0 comments

The Authentication Rabbit Hole: What I Learned from Vibe-Coding Auth with AI

https://fusionauth.io/blog/vibe-coding-authentication
3•mooreds•43m ago•0 comments

Show HN: Enterprise ad-blocker and privacy guard

https://zen.irbis.sh/enterprise
3•anfragment•53m ago•0 comments

Claude Diary

https://rlancemartin.github.io/2025/12/01/claude_diary/
2•aratahikaru5•58m ago•1 comments

HiRTOS: A high-integrity multi-core RTOS kernel written in SPARK Ada

https://github.com/jgrivera67/HiRTOS
2•jacques_chester•1h ago•0 comments

Multiplying our way out of division

https://xania.org/202512/07-division-again
3•ibobev•1h ago•0 comments

Show HN: I replaced my premium workout app with vibecode

https://strengthquest.lovable.app/
2•maddmann•1h ago•0 comments

NY judge orders ChatGPT conversation handover in newspaper copyright win

https://www.nydailynews.com/2025/12/03/ny-judge-orders-openai-to-hand-over-chatgpt-conversations-...
4•gnabgib•1h ago•0 comments

Oath of the Horatii

https://en.wikipedia.org/wiki/Oath_of_the_Horatii
1•andsoitis•1h ago•0 comments

AI chatbots can sway voters better than political advertisements

https://www.technologyreview.com/2025/12/04/1128824/ai-chatbots-can-sway-voters-better-than-polit...
1•gnabgib•1h ago•1 comments

Linux GPIB Drivers Declared Stable 53 Years After HP Introduced the Bus

https://www.phoronix.com/news/GPIB-De-Staged-Linux-6.19
5•LorenDB•1h ago•1 comments

Spinlocks vs. Mutexes: When to Spin and When to Sleep

https://howtech.substack.com/p/spinlocks-vs-mutexes-when-to-spin
28•birdculture•1h ago•4 comments

What Folk Can Do

https://folk.computer/guides/what-folk-can-do
3•luu•1h ago•1 comments

List of Common Misconceptions (Wikipedia)

https://en.wikipedia.org/wiki/List_of_common_misconceptions
4•greazy•1h ago•0 comments

Energy efficiency task scheduling algorithm for multi-core embedded platforms

https://www.sciencedirect.com/science/article/abs/pii/S0045790625008298
1•stevenjgarner•1h ago•1 comments

A Look into NASA's Coding Philosophy (2017)

https://observer.com/2017/07/a-look-into-nasa-coding-philosophy-kennedy-space-center-programming/
2•kristianp•1h ago•0 comments

Toyota Unintended Acceleration and the Big Bowl of "Spaghetti" Code(2013)

https://www.safetyresearch.net/toyota-unintended-acceleration-and-the-big-bowl-of-spaghetti-code/
5•SoKamil•1h ago•1 comments

The Ilya Sutskever interview – my key takeaways

https://quickchat.ai/post/ilya-sutskever-interview
2•piotrgrudzien•1h ago•0 comments

Show HN: Cdecl-dump - represent C declarations visually

https://github.com/bbu/cdecl-dump
6•bluetomcat•1h ago•2 comments

An Attempt at a Compelling Articulation of Forth's Practical Strengths and Eter

https://im-just-lee.ing/forth-why-cb234c03.txt
2•todsacerdoti•1h ago•0 comments