Hacker News new | ask | show | jobs
by Bostonian 1857 days ago
No, you don't. Fortran is still an important language in scientific computing, and you don't support it. The gfortran compiler is part of gcc, so I think you should be able to. I also don't see Cobol, Ada, and Pascal. If you don't think these languages are worth supporting, so be it, but asserting that they don't exist may irk people using those languages.
3 comments

We don't have templates for every language, but if it's available in Nix, you can set this up in a repl. https://replit.com/@ConnorBrewster/fortran

We will be expanding our collection of templates over time, but Nix allows us to make language setup be a user-space concern instead of us internally maintaining a collection of languages configurations and docker images.

Thanks, it works for me. Gfortran is a traditional compiler, but LFortran is "is a modern open-source (BSD licensed) interactive Fortran compiler built on top of LLVM. It can execute user’s code interactively to allow exploratory work (much like Python, MATLAB or Julia) as well as compile to binaries with the goal to run user’s code on modern architectures such as multi-core CPUs and GPUs."

When LFortran is ready, it would be nice if you supported it too, since it is a Fortran REPL.

Neat, if it gets added to nixpkgs it will be available on Replit!

https://github.com/NixOS/nixpkgs

I was just able to set this up by looking at their Nix example and swapping out

    pkgs.nix
for

    pkgs.gfortran
then changing the `.replit` file to compile and run a hello world example I found online. Worked great!
(This comment was posted when the title was still "Replit now supports every programming language".)