Lua - Part 8

ZeroMQ

https://github.com/booksbyus/zguide/tree/master/examples/Lua

http://zeromq.org

https://luarocks.org/search?q=zeromq

https://luarocks.org/modules/moteus/lzmq

https://github.com/zeromq/lzmq

Webassembly

https://github.com/vvanders/wasm_lua
https://news.ycombinator.com/item?id=13899829
https://cdn.rawgit.com/vvanders/wasm_lua/d68f46a8/main.html

https://github.com/fperrad/lua.wasm
https://fperrad.github.io/lua.wasm/

https://github.com/appcypher/awesome-wasm-langs#lua

https://daurnimator.github.io/lua.vm.js/lua.vm.js.html

http://www.wasmrocks.com/topic/172/lua-vm-running-in-a-wasm-environment

https://www.reddit.com/r/programming/comments/6033vn/webassembly_lua_vm_in_browser/

https://github.com/serprex/luwa

http://blog.klipse.tech/lua/2017/03/19/blog-lua.html


WebAssembly’s post-MVP future (hacks.mozilla.org)
https://hacks.mozilla.org/2018/10/webassemblys-post-mvp-future/
https://news.ycombinator.com/item?id=18275489

hn comment:

One awesome thing about WebAssembly is that it makes a lot of sense as an extension language. Instead of building around the JVM or .NET to get access to languages on those platforms and instead of standardizing on one embedded language (Lua, Python or JavaScript), I can use anything that supports WebAssembly and double dip with that same ecosystem working in the browser. And that list of supported languages will only continue to grow since we finally have an alternative to compiling to JavaScript.

Now, I don't think it'll "take over" the way C has, but I also wouldn't be surprised to see it edging out other VMs in many contexts, like the Lua or Python VMs, which may end up porting to WebAssembly instead of trying to justify another dependency for your app.

I hope we'll finally get to the point where I can choose what language to use for a specific task based on the merits of the language instead of making the larger argument that it's worth getting it to work in our existing app.

HN comment:

I've been watching efforts to port Lua to WebAssembly (the official VM looks simple enough, but luajit won't be easy) because I want to have an app that shares code with the browser, and it would be awesome to play with WebAssembly as the plugin system of choice on the backend.

I'm also super excited for nebulet[1], which is a micro-kernel experiment using WebAssembly in Ring 0, which is pretty neat.

I'm really excited to see where WebAssembly can go. I know many of these projects will peter out, but it's exciting nonetheless.

[1] https://github.com/nebulet/nebulet

HN comment:

I'm really excited to see where WebAssembly can go. I know many of these projects will peter out, but it's exciting nonetheless.

Absolutely. On the Lua front someone made a PoC to add Lua as a language for Iodide [1] using Fengari [2] which (while I haven't used it yet) definitely looks interesting. Hadn't heard of Nebulet before but will definitely be following it now. Cheers!

[1] https://groups.google.com/d/msg/iodide-dev/ahc4fg8_JLg/llkHS... [2] https://fengari.io/

IDE

https://studio.zerobrane.com

Mobile apps

From late 2012
https://stackoverflow.com/questions/11786503/is-developing-an-application-for-android-using-lua-only-possible

https://github.com/mikaelkindborg/mobilelua

games
https://mobileorchard.com/mom-teaches-herself-to-code-builds-her-own-games/

https://github.com/pkulchenko/LuaRemote

2d game engine
https://coronalabs.com/product/
https://coronalabs.com

Corona is a cross-platform framework ideal for rapidly creating apps and games for mobile devices and desktop systems. That means you can create your project once and publish it to multiple types of devices, including Apple iPhone and iPad, Android phones and tablets, Amazon Fire, Mac Desktop, Windows Desktop, and even connected TVs such as Apple TV, Fire TV, and Android TV.

Lua-based

Lua is an open source scripting language designed to be lightweight, fast, yet also powerful. Lua is currently the leading scripting language in games and has been utilized in Warcraft ™, Angry Birds ™, Civilization ™ and many other popular franchises.

Completely free

No hidden fees, charges, or royalties.
No matter if you are an indie developer or a large publisher, you will never pay for core functionality.

Corona is a free, cross-platform framework ideal for creating games and apps for mobile devices and desktop systems. Using the powerful but easy-to-learn Lua scripting language, over 1000 built-in APIs, a vast selection of plugins, and Corona Native extensions (C/C++/Obj-C/Java), you can bring your app dreams to reality. You can even monitor projects instantly on multiple devices using Live Builds. These features and more are all part of the Corona ecosystem!

From the stack overflow thread:

I've been developing a mobile application in Lua to control robots remotely from iOS and Android phones. The app is in pure Lua and runs on top of Mosync platform using MobileLua. There is still some plumbing required, but it's not too complex.

I also have a debugger and a Lua IDE (ZeroBraneStudio) that support debugging of Lua scripts running remotely (including MobileLua scripts running on Android or iOS devices). I provide a demo app you can use as a client to run simple scripts and check remote debugging in action.

[Update] If you are interested in more game oriented options, there are several available: (1) already mentioned Corona SDK, (2) Moai, and (3) Gideros Mobile. There is also Marmalade Quick and Cocos2d-x Lua bindings (for example, quick-cocos2d-x). All these toolkits/frameworks allow to develop in Lua.

Here is a detailed comparison of Moai vs. Corona.

discontinued
https://en.wikipedia.org/wiki/MoSync

https://github.com/MoSync/MoSync

https://www.youtube.com/watch?v=s4rNvI9CC_0

https://www.makeuseof.com/tag/build-android-app-programming-languages/

https://stackoverflow.com/questions/11331014/can-lua-be-used-for-app-development-on-its-own

http://getmoai.com

https://medium.com/@MasterOfCodeGlobal/best-10-android-frameworks-for-building-android-apps-44ceb3756880

https://code.tutsplus.com/tutorials/getting-started-with-lua-and-the-corona-sdk--mobile-21457

https://dzone.com/articles/how-to-develop-an-app-using-corona-framework

How to create an App in Lua using Corona SDK
https://www.youtube.com/watch?v=PQDVWFQjUVU

How to make an App in Lua using Corona SDK
https://www.youtube.com/watch?v=KE7-zPuf8Lc

https://mobileorchard.com/mom-teaches-herself-to-code-builds-her-own-games/

https://www.lavamind.com