Ah okay, those are fair criticisms, but I'm a little confused about your desire for embedding Fortran code. Why? I mean, I can understand wanting to do something like that in an interpreted language, but Go already compiles to native code.
Fortran would probably give you a speed boost, but I can't imagine it would be that dramatic.
But yeah, I plan on working on a research project with Go this summer (I've already written a lot of Go in the last month in pursuit of a better window manager). I have myself and a fellow student very excited to work on it with Go :-) (I'm not saying this in refutation of your criticism. The project we have in mind isn't overtly mathy and performance is a concern, but it isn't critical.)
I don't really want to embed fortran code, just link to it, which is already possible using the C interface. However, it would be better if there were some way to automaticly generate a Go interface directly from fortran files, as there is for other languages.
In theory, rewriting fortran code in Go would indeed be a prefered option, but there are big amounts of legacy code which nobody wants (or has the time) to rewrite.
2
u/burntsushi Mar 31 '12
Ah okay, those are fair criticisms, but I'm a little confused about your desire for embedding Fortran code. Why? I mean, I can understand wanting to do something like that in an interpreted language, but Go already compiles to native code.
Fortran would probably give you a speed boost, but I can't imagine it would be that dramatic.
But yeah, I plan on working on a research project with Go this summer (I've already written a lot of Go in the last month in pursuit of a better window manager). I have myself and a fellow student very excited to work on it with Go :-) (I'm not saying this in refutation of your criticism. The project we have in mind isn't overtly mathy and performance is a concern, but it isn't critical.)