nowfound

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.

Visit github.com ↗Alternativestop 12% of December 2024

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 · ▲173

    Simple Qt-based programming calculator. Contribute to fellerts/procal development by creating an account on GitHub.

  • I ported Tree-sitter to GoFeb 2026 · github.com · ▲222

    This 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…

  • AD
    All 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 · ▲275

    Hi 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 · ▲52

    I 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 · ▲123

    Simple Python Calculation Engine. Contribute to bsdz/calcengine development by creating an account on GitHub.

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, December 2024

the whole month →
  • Remy AI▲2,170

    Anyone can sleep and recover better

    AI · 2024 · apps.apple.com

  • Remento▲1,681

    The AI biographer for loved ones

    AI · 2024 · remento.co

  • Aimfox▲1,213

    Built for LinkedIn outreach, made to close deals

    Growth · 2024 · aimfox.com

  • Stackfix▲1,112

    Compare software in seconds

    AI · 2024 · stackfix.com

  • Coval▲1,012

    Simulation & evals to ship delightful voice & chat AI agents

    AI · 2024 · coval.ai

  • VocAdapt▲961

    Master languages with AI-adapted authentic content

    Life & fun · 2024 · vocadapt.com