1,408 karma · joined April 21, 2023
https://zhangzk.net
http://libprima.net
http://github.com/libprima/prima
The only change during the 16 years is that I switched from Ubuntu (with Gnome) to Xubuntu (with Xfce) [1], but I still call it Ubuntu. When people ask me about the difference between the two, I respond "color". I spend 90% of my time on the terminal, and I prefer the gray-blue style of Xfce and its lightness when I use the window system during the other 10%.
Before starting Linux, I had a very limited idea about what a computer is and how it works. An anecdote I often relate to my students is that I once copied the icon of an application (Turbo C) from one computer to another, believing that I could use the application on the second computer. Linux has taught me what a computer really is.
An "achievement" may be worth mentioning: in the past 16 years, essentially all my work as an applied mathematician has been typed under terminal using Vim, including papers, lecture notes, slides, programs, and particularly my 200-page PhD thesis in Chinese. It was not quite trivial to type Chinese in Vim --- think about it: how to get a Chinese inputting system that can work seamlessly with Vim's key bindings? Fcitx would not work (at least it was the case 13 years ago).
[1] Xubuntu 24.04 released! https://xubuntu.org/news/xubuntu-24-04-released
https://web.archive.org/web/20240404231157/https://www.wired...
- Discussions on Reddit:
https://www.reddit.com/r/cybersecurity/comments/1buv1uv/the_...
Fair enough. However, if we only rely on vendor extensions for important features of the languages, then what is the point of having a standard in the first place?
I am particularly glad to hear that no flang-new raised no warning when compiling PRIMA. That is exactly what I wanted to achieve. PRIMA does not tolerate any warning. Each warning is regarded as a bug and gets fixed.
How should I install flang-new? Isn't compiling from the source the only way? I remember doing it once a few months ago, but the binary I got did not succeed in compiling PRIMA. Not sure what I missed. Maybe I should give it another go, especially for trying BFLOAT16!
Many thanks.
https://fortran-lang.discourse.group/t/supporting-bfloat16-i...
I will be very glad if PRIMA turns out useful to you. This will compensate my time, effort, and energy spent.
```
export CC=gcc
CFLAGS="-Wall -Wextra -Wpedantic -Werror"
export FC=gfortran
export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination'
# Build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. -LAH -DCMAKE_C_FLAGS="${CFLAGS}" -DCMAKE_Fortran_FLAGS="${FFLAGS}" .
cmake --build . --target install
cmake --build . --target tests
# Test
ctest --output-on-failure -V -E stress
```
I look forward to trying it in my project ( http://www.libprima.net ), although LLVM Flang is not ready to use last time I tried.
As a side note, the Classic Flang ( https://github.com/flang-compiler/flang ) does not support kind = 3.
A great compiler, but needs some modernization of its accessibility.
Up to now, my endeavor with PRIMA has not been extremely rewarding in terms of career or life. It is quite the opposite --- I got punished.
However, I will continue with it, because it was a commitment, and its importance to the community is obvious.
This is mainly because of the way that researchers are evaluated, recognized, and rewarded. The community and your university evaluate you by your papers, not your code/software, no matter how useful/important the latter is. In the community of applied mathematics, software development is generally regarded as lower-tier non-creative work, and people believe that you write code only because you are not good enough to do mathematics.
Developing good software, you will receive many thanks but it helps little to build your reputation as an applied mathematician, if not hurts it. You will not get rewarded but (implicitly) penalized by the system, which includes the university and the community. This did happen to me.
For more details, see the penultimate slide of my talk at ICIAM 2023 (The 10th International Congress on Industrial and Applied Mathematics): https://raw.githubusercontent.com/ztalks/20230825-iciam23/ma...
All the other major Fortran compilers on the market are easily available in the "modern" way: gfortran, Intel ifort/ifx, NVIDIA nvfortran, Classic flang, AOCC flang, and Arm flang. All of them are available on Ubuntu with .deb packages. For the last two, you need to download the .deb files manually, but the others can be installed via apt. In addition, they are all free of charge, although this is less important point.
I learned about CI in 2021, when PRIMA was (fortunately) still in the early stage. I agree that I am behind "the industry" in learning CI.
However, note that I am an applied mathematician, who has been trained and working in Math departments. I have no background in computer science, although I took programming courses twenty (!) years ago. My interest is primarily in mathematical theory. I could have a perfect career without doing any coding at all. In other words, I do not belong to "the industry".
I have been developing PRIMA because it is a commitment to the late Professor Powell, and because I believe it is important to the community. I do not enjoy coding so much. I hope to spend more time on mathematics.
That said, I hope it is understandable why I am "a bit slower than the rest of the industry in this regard".
I do not think I am a good representative of the Fortran/HPC community in any sense.
Thanks.
```
git clone https://github.com/libprima/prima.git && cd prima && git checkout ec42cb0 && cd fortran/examples/lincoa && make ntest
```
2. nagfor 7.2 released on 6 March, 2024 included neither the ICE nor the fixes for the bugs.
https://discourse.julialang.org/t/what-kind-of-tests-are-suf...
Contents:
- “Python, a slower language”
- “more and more”
- “time-critical scientific computations”
- Is Python ever better suited?
- User story : same author, two languages
- Speed vs agility
- Takeaway
Uploading the code to some repository is necessary but not sufficient — it is only the first step.
- "Optimization Without Derivatives: Prima Fortran Version and Inclusion in SciPy": https://news.ycombinator.com/item?id=35959991
- "SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code": https://news.ycombinator.com/item?id=35986906
Twitter: https://twitter.com/lfortranorg/status/1699441550424420718
LFortran is in alpha (it is expected to not work on third-party codes and users enthusiastically participate in bug reporting and fixing). LFortran will reach beta when it can reliably compile 10 third-party production codes.
Michael James David Powell FRS [1] was "a British numerical analyst who was among the pioneers of computational mathematics" [2]. He was the inventor/early contributor of quasi-Newton method, trust region method, augmented Lagrangian method, and SQP method. Each of them is a pillar of modern numerical optimization. He also made significant contributions to approximation theory and methods.
Among numerous honors, Powell was one of the first two recipients of the Dantzig Prize [3] from the Mathematical Programming Society (MOS) and Society for Industrial and Applied Mathematics (SIAM). This is considered the highest award in optimization.
[1] https://en.wikipedia.org/wiki/Michael_J._D._Powell
[2] https://royalsocietypublishing.org/doi/full/10.1098/rsbm.201...
I am by no means a Vim master, but Vim is virtually the ONLY text editor that I have been using since 2009. I typed my Ph.D. thesis (in Chinese!) and all of my papers/code using Vim.
Bram, thank you very much for this masterpiece. Thank you for making your masterpiece charityware, which has inspired me to do the same thing with my code.
R.I.P.