I’m new to Lua and am excited to get started with Corona SDK. I just signed up today and am looking to both learn from the samples and (hopefully) to rapidly experiment with an idea I have for a game!
There’s a Lua language question in this post, honest, but I need to provide a little context…
Day to day, I mostly program in JavaScript and in December 2010 I “discovered” and became fascinated by a seemingly little-known JS library called Flapjax:
http://www.flapjax-lang.org/
https://github.com/brownplt/flapjax
It provides an event driven programming model by way of a paradigm called “Functional Reactive” – the key concepts being “event streams”, “behaviors” , and (functional) “transformers” (as opposed to working directly with callbacks/listeners). This was/is a big deal for me, as it provides a powerful formalism for modeling and managing complex flows of data/events between sinks and sources spread across the Internet. In fact, I’m busy re-implementing Flapjax into a library I’ve named “Jolt” which generalizes certain aspects of the original (n-ary vs. 1-ary “pulses”, time synced event streams, and more):
https://github.com/michaelsbradleyjr/Jolt
(nothing of note in the README yet, no examples … but I’m getting there, still hammering out my port and the new features, a real brain-stretching experience!)
Since diving into this new (for me) world of Functional Reactive programming, I’ve learned about a few other implementations of the same paradigm. There’s one for OCaml:
There’s one for Scala too; there’s even a dedicated FR language called “Timber”. And low and behold, there’s an FR implementation for Lua, called “LuaGravity”:
http://www.lua.inf.puc-rio.br/luagravity/
https://github.com/fsantanna/luagravity
Now, obviously, I’m growing partial to this style of programming. My question is whether or not attempting to use LuaGravity in the context of Corona is going to be a non-starter? I’ll admit that I’ve haven’t tried it yet, but this really is day-1 of Lua for me and I thought it might be good to just ask those who are familiar with Lua/Corona, so as to avoid running into a brick wall in the first place. Besides a potential lack of support for using this Lua runtime extension in Corona, perhaps someone here may know whether trying to use this programming style would be a poor fit in connection with Corona’s game engine? Maybe someone here is already using LuaGravity and Corona together?
Thanks for your feedback. Wish me luck as I begin to explore Lua and Corona!
[import]uid: 46512 topic_id: 8025 reply_id: 308025[/import]