Omnimaga

Omnimaga => News => Topic started by: DJ Omnimaga on July 06, 2011, 01:06:32 pm

Title: On-calc Lua programming now possible!
Post by: DJ Omnimaga on July 06, 2011, 01:06:32 pm
Since last month, three Lua tools to allow working on this language's programs on the calculator has been released (http://ti.bank.free.fr/index.php?mod=news&ac=commentaires&id=1233). They behave differently from each others, which should give people more choice.

First of all, there is LuaTerm (http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=3607), which was made by Jimbauwens. This one works in command prompt style and allows you to execute Lua code that was stored in a character string variable.

Secondly, there is Lua onCalc (http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=3601), by Dyar, which works similarly, but without the command console. This makes it easier to use and also the string names are now static.

Finally, there is Oclua (http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=3606), by Extended, which was released a few days ago. This one goes even further, by plain adding an actual Lua editor on the calculator, making it much easier to code. This one uses loadstring(), which was left out by TI when cleaning up the Lua language from some functions to implement it in OS 3.0.1. It allows the making of such editor. A discussion topic (http://ourl.ca/11775) is available on Omnimaga for this one, along with this screenshot, attached in it:

(http://www.omnimaga.org/index.php?action=dlattach;topic=9178.0;attach=8440;image)

Hopefully this should make it much easier to program for some people, especially those who were always used to code on-calc before.
Title: Re: On-calc Lua programming now possible!
Post by: Deep Toaster on July 06, 2011, 03:36:19 pm
Suddenly all these tools come out for Lua ... awesome! This'll make coding Lua easier since you don't need a computer to do it.
Title: Re: On-calc Lua programming now possible!
Post by: Jim Bauwens on July 06, 2011, 04:36:08 pm
To be honest, I didn't release my LuaTerm yet, I just posted some pre-release code :p
And it doesn't only load lua from strings, you can directly type and test stuff, just like on a normal Lua console :)
Title: Re: On-calc Lua programming now possible!
Post by: Munchor on July 06, 2011, 04:40:00 pm
To be honest, I didn't release my LuaTerm yet, I just posted some pre-release code :p
And it doesn't only load lua from strings, you can directly type and test stuff, just like on a normal Lua console :)

ExtendeD's looks quite complex actually, never thought it could be that good, nice job!

Never tried DrNar's but I liked Jim Bauwens's, because it's very simple, just like Lua Interpreter for computers or Python IDLE.
Title: Re: On-calc Lua programming now possible!
Post by: fb39ca4 on July 06, 2011, 04:45:44 pm
I just hope that TI leaving in loadstring() was intentional, otherwise they may remove it in a future update.
Title: Re: On-calc Lua programming now possible!
Post by: yunhua98 on July 06, 2011, 11:15:44 pm
Sweet!  Now I really have to learn Lua.  :P
Title: Re: On-calc Lua programming now possible!
Post by: ralphdspam on July 07, 2011, 12:52:13 am
Wow!  Props to everyone creating tools for Lua!  :)
Title: Re: On-calc Lua programming now possible!
Post by: Munchor on July 07, 2011, 06:18:39 am
Sweet!  Now I really have to learn Lua.  :P

What I think is best about this is for tiny quick programs or even for debugging like in Python :) The best part is ExtendeD's also works with graphics and multiline =D