News for hackers. Stuff that matters.
Re:Deep learning may need a new programming language by henning on Tuesday February 19, 2019 @02:51AM (#19197350)
Fortran is going to make a big comeback. I can feel it.
Re:Deep learning may need a new programming language by pjmlp on Tuesday February 19, 2019 @07:57AM (#19198590)
It already did kind of, after all it has all the modern goodies (modules, generics, oop) and was supported on CUDA since day one.

One of the major reasons why many researchers never cared for OpenCL.

Re:Deep learning may need a new programming language by enriquto on Tuesday February 19, 2019 @05:32AM (#19197994)
> Fortran is going to make a big comeback. I can feel it.

It is indeed one of the few existing languages appropriate for generic experimentation in numeric programming.

For example, computing the product of two matrices in C or Fortran is exactly as fast by writing three nested loops or by calling a library function. In python, julia, octave, etc, the difference is abysmal. This is a very sad state of affairs, that forces a mindset where you are allowed a limited toolset of fast operations and the rest are either slow or cumbersome. If you want to compute a variant of the matrix product using a slightly different formula, in Fortran it is trivial change, you just write the new formula inside the loop. But in python or julia you are stuck with either an unusably slow code or you have to write it in another language entirely.

"Vectorized" operations are cool, elegant, and beautiful. But they should not be the only tool available. As differential geometers often resort to coordinates to express their tensor operations, so should programmers be able to.

Re:Deep learning may need a new programming language by cshenton on Tuesday February 19, 2019 @06:12AM (#19198160)
Have you used Julia recently? Vectorised operations are just as fast relative to hand written loops as c and FORTRAN, you just need to appropriately annotate @inbounds and @simd. Sure that’s more work, but removing safety checks should be explicit.
Re:Deep learning may need a new programming language by enriquto on Tuesday February 19, 2019 @07:14AM (#19198383)
Not recently, thanks. I will surely try!

My main gripe with the julia interpreter was that it was ridiculously slow to startup (I was using it as a "calculator" from within a shell loop: each iteration spawned a julia to perform a simple matrix computation). Does this performance has improved recently?

By the way, what do you mean by "removing safety checks should be explicit" ? This sounds like a problem that the language should be able to deal with itself without bothering the programer (e.g. if the bounds of the loop are variables of known value, it can be checked beforehand, so the bounds checks can be safely omitted).

Re:Deep learning may need a new programming language by dunefox on Tuesday February 19, 2019 @09:12AM (#19199008)
AFAIK it was designed for long running processes, not for quick start up time. On the other hand, I don't find it that slow for experimentation on the REPL.
Re:Deep learning may need a new programming language by ziotom78 on Tuesday February 19, 2019 @06:20AM (#19198176)
Regarding Julia, check the backup slides (no. 20-29) of this talk by mine:

https://www.slideshare.net/MaurizioTomasi/towards-new-soluti...

Sure, I am not calculating the product of two matrices, but something else. In that case, I proved that Julia's performance is entirely on par with vectorized C++. I am indulged to believe that somebody might produce similar results for the test you are proposing (matrix product).

Re:Deep learning may need a new programming language by enriquto on Tuesday February 19, 2019 @07:18AM (#19198401)
Can you please provide a download link for the pdf of these slides?
Re:Deep learning may need a new programming language by ziotom78 on Tuesday February 19, 2019 @09:52AM (#19199276)
There should be a "Download" button just below the title, which allows downloading the PDF. If it doesn't work, you can find the file "presentation.pdf" in this BitBucket repository:

https://bitbucket.org/Maurizio_Tomasi/adass2018-julia/src/ma...

Re:Deep learning may need a new programming language by enriquto on Tuesday February 19, 2019 @09:58AM (#19199318)
Thanks! it's a great presentation and it answers many of my questions.

(and no, the download button does not work for me)

Re:Deep learning may need a new programming language by gubbrora on Tuesday February 19, 2019 @10:00AM (#19199337)
There are faster algorithms than 3 nested for loops.
Re:Deep learning may need a new programming language by enriquto on Tuesday February 19, 2019 @10:03AM (#19199365)
I know; that was just an example. Consider the scalar product of two vectors then (which is a particular case when 2 of these 3 loops only have one iteration).