> but as soon as you enter a physics-institution anywhere in the world, FORTRAN likely reigns supreme Not at CERN, but it used to be the case. It's C++ now. > It turns out that FORTRAN is a very good match for the way physicists think about their work I don't even know what this means and I have a PhD in Physics. > You simply specify what fields you have and what pattern they are written in and the computer takes car…
> efficient development I think the rationale for that is twofold: that as a static typed language that prefers stack allocation, you can get some very good performance without putting much effort into it, and that it's usually clear what the idiomatic way to accomplish something is. On the latter point, I appreciate golang's simplicity when I need to review other people's code or dig into third party libraries. For…
Compared to... ?
> I appreciate golang's simplicity when I need to review other people's code or dig into third party libraries.
See, I don't. Every for loop has to be inspected to see if it's one of the 99.9% cases where it's a map, reduce, or filter. For loops can't be chained. Error handling takes up over half of a function. An algorithm library can't be written because of the lack of generics.
Switching to Python, I'd much rather read:
[x for x in xs if x % 2 == 0]
Than: res = []
for x in xs:
if x %2 == 0:
res.append(x)
3 lines of boilerplate to do 1 line of work. Pass.Then there's the fact that everything is mutable in Go, so I have to track every and all variables in case they change.
All in all, for me, reviewing code written in it is harder, not easier.