# Fortran compiler WIP in Go

**URL:** <https://fortran-lang.discourse.group/t/fortran-compiler-wip-in-go/11302>\
**Category:** Uncategorized\
**Created:** [November 13, 2026, 8:04pm UTC](https://fortran-lang.discourse.group/t/fortran-compiler-wip-in-go/11302 "2026-11-13T20:04:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [November 13, 2026, 8:04pm UTC](https://fortran-lang.discourse.group/t/fortran-compiler-wip-in-go/11302/1 "2026-11-13T20:04:22Z")

</div>

With programming almost free, I notice that more people (including me) are trying to write Fortran compilers. Here is one in Go by tannevaled.

> **[GitHub - go-embedded-fortran/fortran: Fortran in pure Go for go-notebook cells: oracle...](https://github.com/go-embedded-fortran/fortran)**
>
> Fortran in pure Go for go-notebook cells: oracle harness, front end, and the back end the measured gate decides

My ChatGPT dot says

> **It looks like a serious early engineering project** , rather than just a collection of ambitious claims. It is still too early to judge whether it will become a useful general-purpose Fortran implementation or achieve its performance goals.
> 
> I inspected and tested version 0.5.0, at [commit 5f329d8](https://github.com/go-embedded-fortran/fortran/commit/5f329d82e4d3929378cfbc2344d4379b7193b598). The strongest signs are:
> 
> - There is substantial working code for free- and fixed-form parsing, an AST, semantic analysis, and notebook-style session state. The tests address Fortran-specific issues, not just simple examples.
> - A small evaluator compiles supported constructs into typed closures. Its tests exercise array layout, matrix operations, loops, bounds, and rejection of unsupported constructs. [Evaluator tests](https://github.com/go-embedded-fortran/fortran/blob/5f329d82e4d3929378cfbc2344d4379b7193b598/eval/eval_test.go)
> - The project has fuzz and resource-exhaustion tests, differential testing against gfortran, and a framework for comparing execution backends. The latest commit describes a detected semantic regression and a targeted fix, which is a good sign of an actual test-and-correct cycle.
> - I built it and ran its Go tests on Linux: all 10 test-bearing packages passed, as did race tests and vet. A WebAssembly cross-build also succeeded. Sixteen tests requiring external tools or corpora were skipped, so that is not a full validation. A cross-build does not establish that browser execution works.

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [November 13, 2026, 9:22pm UTC](https://fortran-lang.discourse.group/t/fortran-compiler-wip-in-go/11302/2 "2026-11-13T21:22:42Z")

</div>

> [@Beliavsky](#):
>
> With programming almost free, I notice that more people (including me) are trying to write Fortran compilers ..

Fortran needs a **bootstrapping** compiler in modern Fortran itself! Had a top-notch intrinsic **string** type been available from the onset, or at least since Fortran 2003, this would have been much easier.

Now this is the task worthy of a capable ai assistant, I wonder if the assistants used by @Beliavsky , @jacobwilliams et al are capable of this?

---

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [November 13, 2026, 11:43pm UTC](https://fortran-lang.discourse.group/t/fortran-compiler-wip-in-go/11302/3 "2026-11-13T23:43:43Z")

</div>

Another new project:

> **[GitHub - cuzzo/forty: A minimal JavaScript implementation of old-school...](https://github.com/cuzzo/forty)**
>
> A minimal JavaScript implementation of old-school FORTRAN, for browser visualizations.

The supported language is Fortran-like

```fortran
N = 5
FACT = 1
DO I = 1, N
  FACT = FACT * I
END
PRINT FACT

```

but actual Fortran

```fortran
N = 5
FACT = 1
DO I = 1, N
  FACT = FACT * I
END DO
PRINT*,FACT
END

```

is rejected. The site runs the program and displays bytecode.

---

<div class="post-metadata">

**Author:** ![jwmwalrus](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/jwmwalrus/32/4483_2.png) [@jwmwalrus](https://fortran-lang.discourse.group/u/jwmwalrus)\
**Post date:** [November 14, 2026, 12:50am UTC](https://fortran-lang.discourse.group/t/fortran-compiler-wip-in-go/11302/4 "2026-11-14T00:50:42Z")

</div>

> [@FortranFan](#):
>
> Fortran needs a **bootstrapping** compiler in modern Fortran itself!

(I remember, like 15-20 years ago, Richard Maine saying something similar at c.l.f.)

I understand that interpreted languages need to be implemented in some other languge. But for a compiled one, that actually prevented people from contributing.
