I’ll be a guest on Manning’s Twitch channel tomorrow (Thursday, 6/11) at 7pm EST. We’ll program a small water-wave physics simulator in Fortran from scratch (the running example from my book).
It will be especially useful for Fortran beginners, but I hope fun for most Fortran developers. I’ll use this opportunity to showcase recent fortran-lang projects–the website, fpm (which I hope to use in the stream), and stdlib.
I saw your comments although possibly much later after you posted. The chat box was on another screen that I only seldom looked at. Technically, it was a somewhat awkward set up for me, something I wasn’t used to (broadcasting software, multiple screens). But now that I did it once, it’s straightforward.
Streaming from a recent computer helps. I was streaming from my 2014 laptop, so between the broadcasting software, VS Code, and the browser, it got quite laggy.
fpm was excellent. I had no issues with it at all. I made a point to not look up fpm docs before the stream so that I have to go through the motions of going through the docs in the stream itself. It was a breeze. I also demoed getting remote git dependencies closer to the end of the stream, perhaps around the 2h15m mark. In retrospect, I wish I demoed that at the beginning, but I forgot.
Working with fpm to bootstrap a fresh Fortran project was quite unlike anything I’ve experienced with Fortran before. fpm run + git dependencies is I think the killer app for Fortran development.
Got a chance to watch the stream. I’m glad fpm worked well. We need a plotting package so next time you don’t have that slow python script in the middle of the process.
Also, I caught your mistake, you missed a divide by 2 in your diff_centered function.