4 ms·
"In times where compilers are smart enough to basically rewrite and change code for performance reasons it is completely inexcusable that the order of source ar
by short_circut 11y ago
"In times where compilers are smart enough to basically rewrite and change code for
performance reasons it is completely inexcusable that the order of source arguments to
process is still that relevant."
After reading the comments on C and the difficulties the author had in the compilation process.... All I can say is Garbage in garbage out. I have worked in the HPC enviornment for a number of years using both Fortrash and C. The errors the author encountered would have been avoided by someone with any experience developing large softwares. I learned these things after working on my first project and now they barely, if at all, factor into my development time. Make sure you build and keep a dependency graph while you are developing and this becomes a non issue.
- chm 11y agoFortrash Why the hate? One could misuse any tool, but that doesn't make the tool bad at what it does.
- short_circut 11y agoI don't disagree. Fortran is brilliant at what it does.... but I find many of its object oriented features to be very obtuse compared to C and C++. The way it uses pointers drives me insane. Building certain datastructures in fortran just takes too much time. I kind of wish I could find a good way to make Fortran and C play nicely together. (There are some compiler dependent peculiarities that I have encountered that make it difficult.) Fortran's intrisics and file handling capabilities make it indispensable in the work I do.... So it is really a love hate relationship.
- AlexeyBrin 11y ago> I kind of wish I could find a good way to make Fortran and C play nicely together. Fortran can call C and vice-versa, at least since Fortran 2003 there is a standard way to call C.
- short_circut 11y agoOh yeah? I have looked and looked for it but been unable to find any reference to how to do so. Would you mind linking a resource to me? edit: Nevermind I found a few. When I looked for this a few years ago I just kept hitting dead ends.