I don't know whether to be impressed or horrified. Maybe both. I would recommend using top-of-tree llvm-project/main sources for building f18; we are a fast-moving project and it would be a waste of time for anybody to debug a problem that has already been fixed, or miss a feature that has already been implemented.
I was unable to understand the llvm source well enough to understand your point. Are they working on a WebAssembly port that will get their intermediate code to a point where Fortran works?
Fortran on WebAssembly
31–40 of 64 posts
Re: Fortran on WebAssembly
#32I’ve been reading these articles for years, but I’ve yet to experience any practical use of webassembly outside of contrived demos. Where do people use all this stuff? Does anyone use it?
Re: Fortran on WebAssembly
#33I’ve been reading these articles for years, but I’ve yet to experience any practical use of webassembly outside of contrived demos. Where do people use all this stuff? Does anyone use it?
Re: Fortran on WebAssembly
#34I’ve been reading these articles for years, but I’ve yet to experience any practical use of webassembly outside of contrived demos. Where do people use all this stuff? Does anyone use it?
WebAssembly sits in the background quietly powering the web-based versions of products like Adobe Photoshop, AutoCAD, Figma, Canva, and likely others. By using Wasm components combined with other browser technologies such as HTML canvas and webGL, app performance and responsiveness can be improved.
WebAssembly also powers the Pyodide and webR projects, enabling Python and R code to run in a browser without a supporting computational server. Where I’ve seen this used most effectively so far is in teaching materials, particularly for teaching data science, where interactive R and Python examples can be embedded directly into teaching materials without the educator having to worry about the time or expense to deploy a powerful backend service to evaluate learner’s code.
Re: Fortran on WebAssembly
#35/* f2c.h -- Standard Fortran to C header file /
/* barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
Re: Fortran on WebAssembly
#36I worked on compiling FORTRAN at Xilinx 20 years ago. The only thing I remember is that the header file for f2c.h contains a definition of barf: /* f2c.h -- Standard Fortran to C header file / /* barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed." ( https://www.netlib.org/clapack/f2c.h )
Re: Fortran on WebAssembly
#37I’ve been reading these articles for years, but I’ve yet to experience any practical use of webassembly outside of contrived demos. Where do people use all this stuff? Does anyone use it?
https://docs.r-wasm.org/webr/latest/ https://github.com/jupyterlite/jupyterlite https://dev.lfortran.org/
There are rough edges to be sure, but the potential is great in education I think.
Re: Fortran on WebAssembly
#38A little context: this dive into Fortran is part of the excellent work George has been doing on WebR, to get R running in the browser. The R sources contain a fair bit of Fortran code, and I believe WebR originally used f2c to compile the Fortran to C first, before compiling that to wasm. With the patches to LLVM Flang, WebR can be built with a real Fortran compiler. I think George didn't want to say it directly in t…
Re: Fortran on WebAssembly
#39I’ve been reading these articles for years, but I’ve yet to experience any practical use of webassembly outside of contrived demos. Where do people use all this stuff? Does anyone use it?
As an educator, one great use for me is classroom use. Students can run R/Python/Fortran in the browser on any OS without installing any software: https://docs.r-wasm.org/webr/latest/ https://github.com/jupyterlite/jupyterlite https://dev.lfortran.org/ There are rough edges to be sure, but the potential is great in education I think.
Re: Fortran on WebAssembly
#40I worked on compiling FORTRAN at Xilinx 20 years ago. The only thing I remember is that the header file for f2c.h contains a definition of barf: /* f2c.h -- Standard Fortran to C header file / /* barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed." ( https://www.netlib.org/clapack/f2c.h )
Does using all-caps FORTRAN say something about me? Fortran looks wrong to me.