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.
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.