cd /news/developer-tools/rfortran-a-wip-fortran-compiler-and-… · home › topics › developer-tools › article
[ARTICLE · art-163878] src=fortran-lang.discourse.group ↗ pub= topic=developer-tools verified=true sentiment=· neutral

RFortran: a WIP Fortran compiler and interpreter in Rust

A developer known as Beliavsky built RFortran, a cross-platform Fortran compiler and interpreter written in Rust, by giving Codex and Claude programs to compile and language features to add on top of SirPigari's f90c project, which generates native object code via Cranelift. RFortran implements much of Fortran 2023 — excluding coarrays — including conditional expressions and arguments, SIMPLE procedures, enumeration types, TYPEOF/CLASSOF declarations and DO CONCURRENT reductions, and runs on Windows x64, Linux x86-64 and macOS Apple Silicon, though it was about 2 times slower than gfortran on a few kernels. The project is GPL-3.0 licensed overall because f90c is, with 85% of the code new and MIT licensed, and Beliavsky describes it as an experiment to see if LLMs can write a Fortran compiler in Rust, far from production-ready but potentially useful for checking code with its debugging options.

read1 min views2 publishedNov 4, 2026

On Oct 9, while updating my list of Fortran tools, I tried the GitHub project f90c of SirPigari, a “Single executable Fortran 90 compiler written in Rust”, finding that it compiled some basic programs but failed on others. It generates native object code using Cranelift. By giving Codex and Claude programs to compile and language features to add, I have created a cross-platform compiler that implements much of Fortran 2023, excluding coarrays, summarized here. Implemented Fortran 2023 additions include conditional expressions and arguments, SIMPLE procedures, enumeration and enum types, TYPEOF/ CLASSOF declarations, and DO CONCURRENT reductions (currently executed sequentially). It also supports SPLIT, TOKENIZE, degree and half-revolution trigonometric intrinsics, and the AT edit descriptor for trimmed character output. Parameterized derived types have partial support, including KIND and LEN parameters, constructors, inheritance, and selected forms of runtime and deferred-length parameters. It runs on at least Windows x64, Linux x86-64 and macOS Apple Silicon.

On a few kernels it was about 2 times slower than gfortran. It has many warning and debugging options. It has interpreter and REPL modes you can try here. It’s an experiment to see if LLMs can write a Fortran compiler in Rust and is far from being a production compiler, but it may be useful in checking code with its debugging options and for trying new language features. Work is ongoing, and bug reports are welcome. It is GPL-3.0 licensed overall since f90c is, but 85% of the code is new and MIT licensed.

── more in #developer-tools 4 stories · sorted by recency
── more on @rfortran 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/rfortran-a-wip-fortr…] indexed:0 read:1min 2026-11-04 · —