News for hackers. Stuff that matters.
Re:PyTorch – Tensors and Dynamic neural networks in Python by vegabook on Wednesday January 18, 2017 @01:54PM (#13429154)
Thanks for the interesting and informative comment. Do I sense just a tiny bit of regret though? Yet another Python interface. YAPI. You heard it here first. And no, Py3 is not that nice. Too much cruft by far. And lua is miles faster than Python when you're outside the tensor domain, ie while you're sourcing and wrangling your data. Arguably luajit obviates the need for C , something you can't say about Python. Disclosure: I am a massive, but increasingly disenchanted, user of Python. I had actually started looking at Torch7, foregoing tensorflow, precisely because of Lua. But the walls are closing in....
Re:PyTorch – Tensors and Dynamic neural networks in Python by jjawssd on Wednesday January 18, 2017 @02:05PM (#13429269)
A very large portion of performance problems can be mitigated with the use of cython and the new asyncio stuff.

asyncio success story: https://magic.io/blog/asyncpg-1m-rows-from-postgres-to-pytho...

cython: http://scikit-learn.org/stable/developers/performance.html

Re:PyTorch – Tensors and Dynamic neural networks in Python by vegabook on Wednesday January 18, 2017 @02:16PM (#13429373)
Luajit is at least 10x faster than python and easily obviates the need to mess around with cython. That's an easy win for Lua. Let's be honest: Torch has decided that if you cannot beat them, join them. It is about network effects. Not about Python better than Lua intrinsically.
Re:PyTorch – Tensors and Dynamic neural networks in Python by baq on Wednesday January 18, 2017 @05:02PM (#13430741)
but why do you care if luajit is faster than python if everything that matters is computed on the GPU anyways?
Re:PyTorch – Tensors and Dynamic neural networks in Python by jjawssd on Wednesday January 18, 2017 @02:22PM (#13429432)
Can't argue with that
Re:PyTorch – Tensors and Dynamic neural networks in Python by inlineint on Thursday January 19, 2017 @06:33AM (#13434951)
An alternative to Cython is Numba [1], which speeds up some cycles in pure Python by just adding a single decorator.

[1] http://numba.pydata.org/

Re:PyTorch – Tensors and Dynamic neural networks in Python by cr0sh on Wednesday January 18, 2017 @02:17PM (#13429390)
> And lua is miles faster than Python when you're outside the tensor domain, ie while you're sourcing and wrangling your data.

Then use Lua for that, if you are more comfortable there and want/need the speed bump. There's nothing that says an entire project or whatnot has to be developed in a singular language.

Use each tool to its strengths, as your needs, requirements, and abilities dictate.

Re:PyTorch – Tensors and Dynamic neural networks in Python by vegabook on Wednesday January 18, 2017 @02:23PM (#13429453)
There always has to be someone rolling out the horses-for-courses pitch. No. I wanted Lua to gain traction with other people. That's the point. I would have liked the Lua sci-ecosystem to be healthy as an alternative.
Re:PyTorch – Tensors and Dynamic neural networks in Python by infinite8s on Wednesday January 18, 2017 @04:34PM (#13430487)
Is there an equivalent to numpy in the Lua space?
Re:PyTorch – Tensors and Dynamic neural networks in Python by apaszke on Wednesday January 18, 2017 @07:03PM (#13431708)
torch?
Re:PyTorch – Tensors and Dynamic neural networks in Python by webmaven on Thursday January 19, 2017 @08:12PM (#13440978)
> And lua is miles faster than Python when you're outside the tensor domain, ie while you're sourcing and wrangling your data.

Is that true even if the Python used is PyPy rather than CPython?