125 points · by wener · 10y ago · 43 comments
That said, it's always useful to have a good scientific library in every language.
And that high-performance Fortran or C code is at the root of so much scientific computing is an issue in Go considering the overhead of cgo calls.
This. I think Julia[1] had the right idea about multiple dispatch.
[1]: http://julialang.org
I've often thought that the utility of templates in numeric code is part of the reason people tend to overestimate its utility in other places. Seeing something really nail a solution in one domain and assuming it must be equally useful everywhere is a common programming community failure I've seen over the years, and I've been putting together a sort of list in my head of such things. (It currently includes "inheritance based OO is awesome because it nails writing GUIs", even though it's not so great for most other tasks, "FP is great because it nails writing compilers" which is getting more popular but it took more than just that, "data binding is great because it nails simple CRUD forms" but inevitably explodes in complexity beyond that, that sort of thing. Beware the techonology that is always demoed on the same use case every time, in every video and essay written about it.)
(And I'm not saying templating is useless, any more than any of the other things I mentioned are useless. I'm just saying it's very easy to overestimate the importance and utility of the given technology if you only look at where it is at its absolute best. You really need to look at the whole picture.)
People used to say the same of C++ against C and Pascal compilers.
Where would C++ compilers be now, if C++ compiler vendors had given up?
Who knows what the goals of this person might be.
Should C compiler vendors also given up against Fortran compilers?
"Go Data Science Tooling, Packages, Libraries, etc."
I am not a big fan of how Go's type system turned out to be, but do see it positive that people take the effort of bringing alternatives into the eco-system.
Even JuliaStats followed a similar distribution (https://github.com/JuliaStats), and it looks neat and organized.
Why?
I asked recently about go wrappers for the Cuda Runtime or Driver API's and didn't get much response, I don't see a lot happening with openCL either, is there anything like that in the prospects?
I used Octave for a while (matlab clone). But then as my data sets got larger and I mean really large (non-linear equation solving on 11m points on my puny desktop), I went full force on Python (NumPy, SciPy, Matplotlib). The reason - its is super easily scriptable, the libraries are great and easy to use and python allows me to use multi-processor capabilities to distribute my work to all my cpu cores.
Keep in mind I could have used GSL. But Numpy/Scipy & matplotlib were just faster and more productive for me.
That being said, I'd rather have one source of truth - i.e. GSL and have this be a wrapper around it as opposed to re-creating all the logic.
Either way - its a fantastic effort. If at anytime I create systems that need numerical computation (as opposed to the hacks that I did for my thesis) I will definitely look into this.
(Edit: not that Python was itself irrelevant, but 2009 was an irrelevant time for Python, when nothing special news/projects/etc wise for Python. I've been using the language since 1998, and the most "hyped" period was in the early 00s. Mid 00's Ruby/Rails caught on).
Numpy (renamed as such around 2006) has been around for like 20 years, and has been quite popular in the noughties too for those doing numeric stuff in Python.