# lfortran/lfortran

Official main repository for LFortran

Repository: https://github.com/lfortran/lfortran
Canonical: https://ross.abutalabs.com/products/lfortran
Homepage: https://lfortran.org/
Language: C++
License: NOASSERTION
License Family: other
Topics: fortran, interactive, compiler, library, repl, jupyter, jupyter-notebook, jupyter-kernels, fortran-compiler
Last push: 2026-09-03T01:08:49+00:00

## Health v2 (maintenance only)
Score: 100/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 99, longevity 100
- inputs: {"age_days": 2719, "days_push": 0, "days_rel": 6, "gap_med": 29.0, "n_releases_24m": 25}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1231, forks 272 (observed 2026-09-03T02:15:14.371131+00:00)

## What it is
LFortran is a modern open-source interactive Fortran compiler built on LLVM that can execute code interactively like a REPL and also compile to fast binaries for CPUs and GPUs. It includes a Jupyter kernel for exploratory Fortran work and is progressing toward reliably compiling production Fortran codes.

## Use cases
- run fortran code interactively like a repl
- compile fortran to fast binaries with llvm
- use fortran in jupyter notebooks
- port legacy fortran scientific code to gpus
- explore numerical algorithms interactively
- compile scipy or lapack style fortran libraries

## When to choose
- you want an interactive, exploratory Fortran workflow similar to Python or Julia
- you need a modern LLVM-based Fortran compiler targeting multi-core CPUs and GPUs
- you want to run Fortran in Jupyter notebooks or the browser via WebAssembly

## When to avoid
- you need a fully mature production compiler for arbitrary third-party Fortran code today
- you require complete Fortran standard coverage and guaranteed correctness for critical builds
- you just need a traditional batch compiler and have no need for interactivity

## Facets
- artifact type: library
- maturity: active
- function: compiler, interpreter, developer-tools
- domain: compilers, programming-languages, developer-tools
- platform: windows, cpp, wasm
- tags: fortran, llvm, repl, jupyter-kernel, interactive-compiler, hpc, scientific-computing, linux, macos, gpu

## Member repositories
- lfortran/lfortran (main) score 100

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:14.371131+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:22:33.912504+00:00, confidence not recorded.
  - readme: https://github.com/lfortran/lfortran (fetched 2026-09-03T02:15:14.371131+00:00, sha a1b3e7a9c69a)
  - homepage: https://lfortran.org/ (fetched 2026-08-29T12:23:07.569832+00:00, sha c2323317ebcd)
  - site_page: https://docs.lfortran.org/ (fetched 2026-08-29T12:23:07.573394+00:00, sha a00c6bef825c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
