Get the latest tech news

A tail-call interpreter in (nightly) Rust


Last week, I wrote a tail-call interpreter using the become keyword, which was recently added to nightly Rust (seven months ago is recent, right?). It was a surprisingly pleasant experience, and the resulting VM outperforms both my previous Rust implementation and my hand-coded ARM64 assembly.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of interpreter

interpreter

Related news:

News photo

Shared mutable state in Rust (2022)

News photo

Lisette a little language inspired by Rust that compiles to Go

News photo

Show HN: Contrapunk – Real-time counterpoint harmony from guitar input