Python to Fortran transpiler is online

I created a site p2f β€” Run Python and Fortran where you can enter Python/NumPy code, translate it, and run both the Python and translated Fortran program. Programs can be compiled with gfortran, Intel Fortran, LLVM Flang, and LFortran. It is powered by Modal, which I pay for after $30/month free usage, so there is a limit of 100 runs per user per day. A user can run a local site if he has the compilers and Python installed. The underlying transpiler, which I announced recently, is here.

The site p2f β€” Python β†’ Fortran playground is run on GitHub and just translates Python to Fortran without allowing execution of the Python or Fortran code. It has unlimited use.

In another thread @sumseq wrote

The online transpiler permits live demonstrations.

5 Likes