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

JavaScript Performance Tips That Make a Difference

https://jsdevspace.substack.com/p/20-javascript-performance-tips-that
1•javatuts•1m ago•0 comments

Binance – Total impact sits at around $6.3B

https://twitter.com/binance/status/2115993361517891592
1•victorbuilds•3m ago•0 comments

Mistral 4 had a release, makes it comparable to Chinese open-weight models

https://www.reuters.com/world/china/mistral-ceo-says-new-ai-model-beats-chinese-ones-some-areas-2...
1•nvmdbljstm•5m ago•1 comments

Global GPU prices rise 35% in just three months

https://videocardz.com/newz/global-gpu-prices-rise-35-in-just-three-months
1•giuliomagnifico•7m ago•0 comments

Audience Analysis – First step to project presentation

https://substack.com/profile/323507903-ukane-favour/note/c-374044494
1•UkaneFavour•8m ago•0 comments

An attack against an LLM agent is either detected or proven

1•consent-substra•9m ago•0 comments

WebGPU Best Practices

https://toji.dev/webgpu-best-practices/
1•mariuz•13m ago•0 comments

Show HN: Post-quantum signatureless authorization with recursive verification

https://zenodo.org/records/23778742
3•notsatoshinotsa•14m ago•0 comments

Ask HN: Are you tired too in this AI era?

16•mellosty•15m ago•6 comments

Stone Lighthouses

https://stonewalls.ch/div/histlighthouses
2•tontinton•17m ago•0 comments

elect.horse

https://elect.horse/
3•solarist•18m ago•0 comments

The Snowball Effect

https://aeon.co/essays/how-the-harsh-icy-world-of-snowball-earth-shaped-life-today
2•olvy0•19m ago•0 comments

Efficient Streaming Language Models with Attention Sinks

https://idlemachines.co.uk/essays/streaming-llm-attention-sinks
2•smaddrellmander•22m ago•0 comments

Last night an AI agent performed surgery on a mouse

https://twitter.com/OcanaSantero/status/2115442964574908902
2•bananaboy•25m ago•0 comments

Is it possible to build a direct democracy for one's country using GitHub?

https://github.com/jaenyf/odd
2•jaenyf•25m ago•0 comments

Why do Binance-like exchange development quotes vary so much?

https://cryptiecraft.com/crypto-exchange-development-cost/
1•monroealex17•27m ago•0 comments

I Returned My iPhone Duo

https://codakuma.com/i-returned-my-duo/
8•ricobecks•32m ago•4 comments

Losing the Blacklisting Race

https://medium.com/chainargos/losing-the-blacklisting-race-eea51d0a0f7b
1•Bluestein•34m ago•0 comments

Database Workbench 7.1.0 now available

https://www.upscene.com/news/item/20261028
1•mariuz•36m ago•0 comments

Show HN: Wayther – iOS weather app for road trips

https://wayther.alpennec.com/
2•alpennec•37m ago•0 comments

PEP 851 – Add List.discard()

https://peps.python.org/pep-0851/
2•theanonymousone•39m ago•0 comments

Augmenting Human Intellect

https://ryo.lu/journal/augmenting-human-intellect
1•allenleee•40m ago•0 comments

The AI bubble could expose your deepest secrets

https://www.bbc.com/future/article/20261029-the-ai-bubble-could-expose-your-deepest-secrets
2•saikatsg•40m ago•0 comments

Startups look for ways to make quieter drones

https://www.bbc.co.uk/news/articles/ck1exgejq3xvo
2•edward•41m ago•0 comments

LLMs recognize dropout and Gaussian noise applied to their activations

https://arxiv.org/abs/2604.17465
2•gone35•49m ago•0 comments

The science behind why we throw up, or vomit

https://www.columbiatribune.com/story/lifestyle/family/2017/08/01/thrown-up-science/985640007/
1•thunderbong•49m ago•0 comments

The Lowest Animal by Mark Twain

https://www.thoughtco.com/the-lowest-animal-by-mark-twain-1690158
2•rramadass•51m ago•0 comments

Every Pixel in This Picture Is a Real Marble [video]

https://www.youtube.com/watch?v=w1ks0Vy98KI
1•ColinWright•52m ago•0 comments

PC chip plunge wipes out a quarter of Intel's value

https://www.theregister.com/systems/2026/10/30/pc-chip-plunge-wipes-out-a-quarter-of-intels-value...
3•nephihaha•53m ago•0 comments

Rust Features in the Future

https://lwn.net/SubscriberLink/1099606/af01dc337530f419/
2•mkesper•54m ago•0 comments