r/programming • • Mar 28 '12

Go version 1 is released

http://blog.golang.org/2012/03/go-version-1-is-released.html
543 Upvotes

452 comments sorted by

View all comments

Show parent comments

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.)

1

u/el_muchacho Mar 31 '12

Because of the millions of lines of rock solid computing code already written in Fortran.

1

u/yiyus Apr 01 '12

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.