News for hackers. Stuff that matters.
Re:Facebook open-sources deep-learning modules by technologia on Friday January 16, 2015 @02:53PM (#8901240)
We've been using Torch for a while at work, really appreciate Facebook doing this. Some of us had a hard time adjusting to Lua, but it was well worth it.
Re:Facebook open-sources deep-learning modules by chubot on Friday January 16, 2015 @05:34PM (#8902187)
I'm curious what your team experience was with Lua.

IIRC, Lua is even more liberal than Python in that if you mistype a variable name, it will silently give you 'nil' rather than throwing an exception.

Also, the prototype system is a little wonky. It seems overly flexible and makes you do too much work yourself, which would make it hard on a large team all getting started at once.

If Torch gets popular I wonder if something like TypeScript or Facebook's own Flow would start to make sense.

Re:Facebook open-sources deep-learning modules by psykotic on Friday January 16, 2015 @06:53PM (#8902567)
> IIRC, Lua is even more liberal than Python in that if you mistype a variable name, it will silently give you 'nil' rather than throwing an exception.

Like most things in Lua, that is easy to customize. You can just add an __index metamethod to environment tables. There are various 'strict' modules which do just that.

Re:Facebook open-sources deep-learning modules by technologia on Saturday January 17, 2015 @03:37PM (#8905435)
Thats what we love about Lua, it gives us control of the side effects.
Re:Facebook open-sources deep-learning modules by technologia on Saturday January 17, 2015 @03:31PM (#8905422)
So some of our team were a bit disoriented with the lack of reference counting and for others it was their first foray into functional programming.

Our team first picked up the Little Schemer and then jumped directly to lua.

Re:Facebook open-sources deep-learning modules by muser on Friday January 16, 2015 @06:19PM (#8902435)
Could you provide some steps how you could bring everyone one board? We are still having python/R migration issues.
Re:Facebook open-sources deep-learning modules by technologia on Saturday January 17, 2015 @03:34PM (#8905431)
Most of our people came from a stats background using R or python (more focused on Scipy/numpy than any other package).

A few of us had some experience with Lua before with game programming, so we took it on ourselves to teach the others Scheme (almost like an intro to programming class) and then teach how Lua worked in comparison.

I guess we lucked out because they were able to pick it up quickly after the education on functional programming.

Re:Facebook open-sources deep-learning modules by Houshalter on Friday January 16, 2015 @09:52PM (#8903182)
Torch is really cool. I wish I could use it more. Sadly it isn't supported on Windows.
Re:Facebook open-sources deep-learning modules by technologia on Saturday January 17, 2015 @03:32PM (#8905423)
Initially we had to use Windows for some client requirements, because of that we used Vagrant+Docker to deploy torch. You might want to try that if you can use VMs.