# Fortran-like language: boreas

**URL:** <https://fortran-lang.discourse.group/t/fortran-like-language-boreas/11356>\
**Category:** Uncategorized\
**Created:** [December 4, 2026, 7:32pm UTC](https://fortran-lang.discourse.group/t/fortran-like-language-boreas/11356 "2026-12-04T19:32:07Z")\
**Posts on this page:** 1\
**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:** [December 4, 2026, 7:32pm UTC](https://fortran-lang.discourse.group/t/fortran-like-language-boreas/11356/1 "2026-12-04T19:32:07Z")

</div>

Fortran mostly evolves in a backwards-compatible way. I have wondered what a statically typed language for scientific programming would look like without that constraint. The following project, which I think is interesting, is one answer. It is more concise than Fortran, which has been criticized for verbosity. ChatGPT [mostly approves](https://chatgpt.com/share/6b1314ea-5c5c-83ea-8af1-9d9412f378d9) of it.

> **[GitHub - ryanromanov/boreas: A Fortran-flavored programming language](https://github.com/ryanromanov/boreas)**
>
> A Fortran-flavored programming language

A converter from Fortran to boreas is provided. A Fortran programmer can quickly grasp boreas code, for example

```fortran
! Boreas: a Fortran-flavored language. Keywords are case-insensitive.

function square(real :: x) -> real
  return x * x
end function

function fib(int :: n) -> int
  if n < 2 then
    return n
  end if
  return fib(n - 1) + fib(n - 2)
end function

program demo
  int :: i
  int :: count = 0
  real :: total = 0.0
  real[5] :: xs
  int[5] :: ys = [1, 2, 3, 4, 5]

  do i = 1, 5
    xs[i] = square(real(i))
    total = total + xs[i]
  end do
  println("squares:", xs)
  println("total =", total)

  ys = ys * 2 + 1 ! whole-array arithmetic
  println("ys =", ys, " middle =", ys[2:4])

  do i = 1, 20
    if mod(i, 3) == 0 then
      cycle
    else if i > 10 then
      exit
    else
      count = count + 1
    end if
  end do
  println("kept", count)

  println("fib(15) =", fib(15))
end program demo

```

If I work on a language variant it will be convertible to Fortran. For example, the ofort REPL converts `const n = 5` to `integer, parameter :: n = 5`.
