News for hackers. Stuff that matters.
Re:Deep learning may need a new programming language by thecatspaw on Tuesday February 19, 2019 @03:30AM (#19197484)
Im sorry, but this very much feels like a fluff piece. Yes we _may_ need a new programming language, or we may not.

Half of this article is about hardware, while only a small part of it is about programming languages.

> There are several projects at Google, Facebook, and other places to kind of design such a compiled language that can be efficient for deep learning, but it’s not clear at all that the community will follow, because people just want to use Python

Are the libraries not implemented in native code? The brief mention that python gets does not really detail what is wrong with it, aside from not beeing compiled I guess. But that is no issue if the libraries are native, so I dont see a reason to move away from python, let alone create a new programming language for it

Re:Deep learning may need a new programming language by lugg on Tuesday February 19, 2019 @07:41AM (#19198514)
You don't have to check baby's diaper to know they went number 2.

Python ML code is a bit of a joke. If you're any kind of semi professional developer who sees deep learning code for the first time and doesn't say "what the fuck would you do it like that for", I simply don't know what to tell you.

Im not saying a new language will fix this problem but some new primitives and idiomatic options protecting people from themselves probably wouldn't hurt the industry.

Likewise, something more ergonomic might actually improve onboarding new developers into the space.

Re:Deep learning may need a new programming language by mark_l_watson on Tuesday February 19, 2019 @08:47AM (#19198881)
I agree. Python is fine for short programs, but please give me a type safe language for developing more complex programs. BTW, as an unofficial library, some devs at Google do provide Haskell TensorFlow bindings.

I am not a Swift developer but I have looked at Swift enough to know that I like it better than Python.

Common Lisp is another interesting language: the SBCL compiler’s warnings will help you catch many errors early. So, maybe Python would be much better with MyPy type annotations and JIT compilation.

Re:Deep learning may need a new programming language by bjourne on Tuesday February 19, 2019 @10:06AM (#19199400)
What do you find offensive about, for example, the following CNN written in Python?

https://github.com/keras-team/keras/blob/master/examples/cif...

"I simply don't know what to tell you." Please try! You can at least provide one example of the jokes you are referring to?

Re:Deep learning may need a new programming language by ubu7737 on Tuesday February 19, 2019 @09:39PM (#19205118)
That code sets stack vars and calls out to the actual work.

This is a perfect example of what's perplexing me about the "learning" industry.

https://i.redd.it/00824ycw3hwy.jpg

That code also uses pickle to serialize to disk, which is a gross, irritating pattern I've seen from Pythonistas: just pickle it to disk, it works on my laptop.

Seems like Logo programming, to me.

Re:Deep learning may need a new programming language by bjourne on Wednesday February 20, 2019 @09:13AM (#19207911)
That criticism is surprising because Python doesn't have stack variables and the code serializes the model in h5-format.
Re:Deep learning may need a new programming language by ageofwant on Tuesday February 19, 2019 @09:14AM (#19199021)
poo-poo, people will insult your sensibilities using whatever language you choose, the "problem" is not them, or the language or its idioms, its you.

If you write ML code for money, you are a pro, the end. Python is not perfect, but everything else is worse, far worse. What is the product that falls out of a ML pipeline ? ML pro-tip: its not hand-crafted artisanal code.

Re:Deep learning may need a new programming language by lugg on Tuesday February 19, 2019 @09:31AM (#19199132)
My complaints about ML prettiness were unclear but to clarify it's usually criticism aimed at library authors who often come from very academic backgrounds with very poor sense (lack of exp?) of just how lazy professional developers are. Case in point, you don't care if it comes out as poop because you're getting shit done. Hell it seems like you don't even care if you have to wade in it for another 5 years.

Kudos, but what if i told you if the tooling authors could have ensured you never wrote poop but still got shit done?

Re:Deep learning may need a new programming language by ubu7737 on Tuesday February 19, 2019 @09:49PM (#19205159)
The end product is a model.

If you can't describe how that model makes its way into a product and is consumed, then you aren't a pro, the end.

From the product's perspective, all you produce is a configuration file.

Re:Deep learning may need a new programming language by dan-robertson on Tuesday February 19, 2019 @04:56AM (#19197864)
The libraries are native code in a similar sense to python being native code. The kernels are native and typically highly optimised but there is a possibility that better optimised kernels can be generated on the fly once the computational graph is known.
Re:Deep learning may need a new programming language by heavenlyblue on Tuesday February 19, 2019 @05:02AM (#19197890)
>> that better optimised kernels can be generated on the fly once the computational graph is known.

Which is already done by python libraries.