Life & fun · December 27, 2024
Simple live calculator in Tree-sitter and cranelift JIT
Simple live calculator in tree-sitter + cranelift jit - jasonjmcghee/basic-treesitter-cranelift-jit
Simple live calculator in Tree-sitter and cranelift JIT launched on December 27, 2024 with 29 votes, #618 of 5,365 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 1 year on.
In plain words
Simple Live Calculator is a demonstration project that combines Tree-sitter parsing with Cranelift JIT compilation to create a calculator application. Built and shared on GitHub, it showcases how these two technologies can work together to parse and execute mathematical expressions. The project is designed for developers interested in programming language implementation, parsing techniques, and just-in-time compilation rather than as a practical calculator tool for everyday use.
written from the facts on this page · September 2026
From the sources
There's really one core file - I could break it up, but wanted it to be in one place for this basic example. cargo run --example stress Benchmarks Also some simple benchmarks. cargo bench --bench calculator_bench Modifying things If you modify the grammar , cargo build in the main project will update everything as needed. The main binary uses syntax highlighting as an example offrom github.com
Does a similar job
all alternatives →
Procal: A simple Qt-based programming calculator2023 · github.com · ▲173Simple Qt-based programming calculator. Contribute to fellerts/procal development by creating an account on GitHub.
I ported Tree-sitter to GoFeb 2026 · github.com · ▲222This started as a hard requirement for my TUI-based editor application, it ended up going in a few different directions. A suite of tools that help with semantic code entities: https://github.com/odvcencio/gts-suite A next-gen version control system called Got: https://github.com/odvcencio/got I think this has some pretty big potential! I think there's many classes of application (particularly legacy architecture) that can benefit from these kinds of analysis tooling. My next post will be about composing all these together, an exciting project I call…
- ADAll desktop software calculators are wrong, so I had to build my own2022 · ▲286
A new calculator software cannot really bring attention (https://chachatelier.fr/chalk/) However, I wrote a full article explaining why I had to build something "new" that does not behave like usual desktop calculator softwares : TL;DR All "small" calculator softwares I know share the same design flaws. And the GUI is not the only stumbling block in their poor efficiency. Handling correctly numerical approximations - expected or not - is crucial to trust the results. It is usually not done in lightweight tools. It should. So I prove that if I could do it, OS manufacturers…
Figr.app – a multi-user, notepad style calculator (desktop app)2022 · figr.app · ▲275Hi all, just posting an update to my previous Show HN, where I announced a side-project I worked on which was a (web version) of a multi-user, notepad style calculator: https://news.ycombinator.com/item?id=31817997 After a couple of user requests (and having a good think about it) I decided to migrate the web UI to create a Mac and Windows desktop app. After using it a little bit, I feel this is a much better experience than the webapp, and reduces a lot of the friction if I wanted to run a few small calculations. You can find the download links below:…
Tree-sitter Integration for Swift2024 · github.com · ▲52I have created a Swift package (https://github.com/daspoon/tree-sitter-kit) enabling tree-sitter parsers to be written in Swift; specifically, as an array of production rules which map symbol types to pairings of syntax expression and type constructor. A member macro derives a tree-sitter grammar and embeds the generated parser in its expansion. This project is a work in progress, and I will be grateful for any feedback. Thanks, Dave
A simple lazy Python calculation engine, with spreadsheet demo2021 · github.com · ▲123Simple Python Calculation Engine. Contribute to bsdz/calcengine development by creating an account on GitHub.
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 3d ago · permit.petercai.com
- IV
Life & fun · 15d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 16d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 10d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 14d ago · carrierexplode.com

Life & fun · 24d ago · space.bl2.net
Source: Show HN post ↗