2 ms·
Can anyone comment on why the author used Lua? I'm curious if it's for Torch, or perhaps there's something more fundamental about why it's a good language for
by tedmiston 10y ago
Can anyone comment on why the author used Lua?
I'm curious if it's for Torch, or perhaps there's something more fundamental about why it's a good language for AI that I don't know yet.
- semisight 10y agoFacebook is heavily invested in Torch, a learning framework built in Lua.
- adamnemecek 10y agoIt's a high level language that's super fast.
- kmiroslav 10y agoMostly because that's what Torch uses. LUA itself is extremely fast for a scripting language but while that characteristic is vital in video games (where LUA is used quite a bit), it's pretty irrelevant for machine learning since the core of these engines is usually written in C/C++ for speed, and the scripting language is just used as an entry point that makes the API and data entry easy. Still, I think ultimately, LUA is a liability for Torch, and it's not helped by the fact that not only is TensorFlow a superior competitor (in my opinion) but also because TensorFlow is based on Python (which is vastly more popular than LUA). Despite all their investment in Torch, it wouldn't surprise me if eventually, Facebook transitions to TensorFlow because it's probably what it will take for them to effectively compete against Google on the machine learning front.
- cjbprime 10y agoThough note that AlphaGo used Torch too, so it can't be the source of Facebook's weakness at a Go engine. https://m.facebook.com/story.php?story_fbid=10153442884182143&id=722677142 https://m.facebook.com/story.php?story_fbid=1015344288418214...