Omnimaga
Calculator Community => TI Calculators => Lua => Topic started by: Munchor on April 14, 2011, 04:10:47 am
-
In response to the recent news that the NSpire OS 3.0 can be programmed using Lua, a new subforum was created aimed at Lua Language.
I'd like to know who of you know Lua, like me :) I learnt Lua a few months ago, but haven't coded a lot of programs, it was more just learning.
-
I haven't programmed in it yet, but it looks easy to me.
I'm sure that most people will not have an problem using it.
-
I haven't programmed in it yet, but it looks easy to me.
I'm sure that most people will not have an problem using it.
It's interpreted, just like python, in fact, python, lua and ruby are quite similar.
-
I know CAML, Python and many other languages, so theire is nothing new for me in lua, except a new Lego game to assemble object and recursivity. =)
-
I voted 'No, will learn'. But its actualy 'No, maybe will learn'.
I am not busy on the nspire. Jim just bought one today(for himself) and I'm busy with myst...
But if I start going on the nspire I feel I have to learn lua before I can program 'something good'.
-
I've programmed some World of Warcraft addons (which are done in LUA) so I'm not bad :)
But it's been quite a while and I'll dive into it again !
-
I accidentally voted no, but will learn. I meant to vote no, and will not learn. I really have no reason to learn LUA as i don't own or program for the Nspire.
-
I accidentally voted no, but will learn. I meant to vote no, and will not learn. I really have no reason to learn LUA as i don't own or program for the Nspire.
I think you can change your vote, though.
-
Yes I learned it last year. it is a very easy language to get started with. But I will not be coding the Nspire with it :P
-
I'll never use it, but knowing myself, I'll want to try something with it so I'll learn the language, then get bored and never touch it again :P
-
I know Lua extremely well :) It's actually a very powerful language for an interpreter, and I like it much more than python, because of stright out OOP, it has a much simpler table system -- it can be a pain for some applications, but for others it saves some programming time, and helps you think of the object easier :)
-
I know Lua extremely well :) It's actually a very powerful language for an interpreter, and I like it much more than python, because of stright out OOP, it has a much simpler table system -- it can be a pain for some applications, but for others it saves some programming time, and helps you think of the object easier :)
I don't wanna discuss this, but Python's OOP is better than Lua's.
-
In your opinion. Please let us discuss Lua here. (No offense)
I think OOP is way to complicated for calcs.
-
I know Lua extremely well :) It's actually a very powerful language for an interpreter, and I like it much more than python, because of stright out OOP, it has a much simpler table system -- it can be a pain for some applications, but for others it saves some programming time, and helps you think of the object easier :)
I don't wanna discuss this, but Python's OOP is better than Lua's.
Lua really doesn't really even have OOP -- it just can group methods and variables and other tables into a table, which can somewhat represent an object ;)
-
Nobody has thought about the fact that the entire TI OS could be coded in Lua ?
Look:
- TI was really fast to implement this Lua interpreter (since 05/2010)
- Same Way of programming, Lua's objects and "toto.a, toto.b, toto.c etc .." variables, math.eval("DelVar "..varname) and expr("DelVar "&varname)
- Same way of TNS structure, in the XML files, we've got "<gg:VAR></gg:VAR>" token for the widget variables, in the Lua's interpreted method we've got the "gc:" object
Thus, only one question : Can Lua be compiled ? or just directly interpreded by the ARM core ?
-
I don't know Lua, but maybe I'll check it out eventually.
-
I know what Lua is, but not the language itself. Definitely gonna learn it, if only to test on nspire_emu :D
I learnt Lua a few months ago, but haven't coded a lot of programs, it was more just learning.
Lucky for you, eh? ;D
I know Lua extremely well :) It's actually a very powerful language for an interpreter, and I like it much more than python, because of stright out OOP, it has a much simpler table system -- it can be a pain for some applications, but for others it saves some programming time, and helps you think of the object easier :)
I don't wanna discuss this, but Python's OOP is better than Lua's.
First of all, Lua is not an OOP language, so you can't really do that comparison there. Otherwise you'd be saying something like "Axe's sprite commands are better than BASIC's." Yeah, because BASIC doesn't have sprite commands ;)
Nobody has thought about the fact that the entire TI OS could be coded in Lua ?
Look:
- TI was really fast to implement this Lua interpreter (since 05/2010)
- Same Way of programming, Lua's objects and "toto.a, toto.b, toto.c etc .." variables, math.eval("DelVar "..varname) and expr("DelVar "&varname)
- Same way of TNS structure, in the XML files, we've got "<gg:VAR></gg:VAR>" token for the widget variables, in the Lua's interpreted method we've got the "gc:" object
Thus, only one question : Can Lua be compiled ? or just directly interpreded by the ARM core ?
Wow, that's an interesting thought. If TI already has a Lua compiler, they could just release that and we wouldn't need to worry about this hacking just to get some ASM working on an Nspire.
-
I think ASM needs to be brought to the Nspire either way, because if nothing else TI will undoubtedly have screwed up their Lua interpreter and someone in the community will need to fix it. Plus, just try writing nDoom in an interpreted language :P
-
Oh, true x.x
But if Lua can be compiled as Levak suggested, it might not be too bad.
-
It's bytecode compiling, like java, and .pyc python files, so it's not really like asm.
-
i asked some months ago to the technical support of TI about the posibility of an SDK for the Nspire, they answer me that the SDK was possible in models like ti-89 titanium because this calculators was using flashROM, but the nspire don´t use this, the lua posibility to programing will be usefull, but ASM programing couldn't be posible
-
Um, the Nspire uses Flash ROM too. Also, ASM is already possible on the regular Nspire, so it should be possible on the CX as well.
-
i asked some months ago to the technical support of TI about the posibility of an SDK for the Nspire, they answer me that the SDK was possible in models like ti-89 titanium because this calculators was using flashROM, but the nspire don´t use this, the lua posibility to programing will be usefull, but ASM programing couldn't be posible
Um, the Nspire uses Flash ROM too. Also, ASM is already possible on the regular Nspire, so it should be possible on the CX as well.
I'm pretty sure they lied, the NSpire uses Flash ROM.
In the meanwhile, no SDK available here (http://education.ti.com/educationportal/sites/US/productCategory/us_sdk.html).
-
They told to some other people they did not have any plan to open the Nspire to 3rd party development. However you must not believe everything they say via TI-CARES, because sometimes the person who answers will guess the answer. X.x
-
i asked some months ago to the technical support of TI about the posibility of an SDK for the Nspire, they answer me that the SDK was possible in models like ti-89 titanium because this calculators was using flashROM, but the nspire don´t use this, the lua posibility to programing will be usefull, but ASM programing couldn't be posible
Wtf... TI lies so much. The Nspire clearly has Flash ROM! And Flash ROM has nothing to do with programmability anyway...
-
Sorry too busy atm in life to learn a new language.
-
i asked some months ago to the technical support of TI about the posibility of an SDK for the Nspire, they answer me that the SDK was possible in models like ti-89 titanium because this calculators was using flashROM, but the nspire don´t use this, the lua posibility to programing will be usefull, but ASM programing couldn't be posible
Wtf... TI lies so much. The Nspire clearly has Flash ROM!
NAND Flash isn't generally called "ROM", because it can't be mapped into memory where you can execute code from it directly. It's more like a hard disk, in that you have to read the contents into RAM. (Not that that in any way prevents an SDK from being possible, of course)
-
Is anyone planning on making a NSpire Lua IDE soon? I'd like to help if anyone is interested in starting such project.
-
What would such an IDE do? There are already plenty of IDE compatible with Lua, that can integrate the TI-Nspire conversion tools.
-
What would such an IDE do? There are already plenty of IDE compatible with Lua, that can integrate the TI-Nspire conversion tools.
Yeah I meant a text editor with syntax highlighting with .tns>Lua althogether. But you're probably right, it's not that important.
-
Agreed with ExtendeD. Customizing several existing, good scriptable IDEs, is better than writing from scratch a Nspire-specific IDE, and that specific IDE ending up being sub-par (ala TIGCC IDE).
-
Ticalc.org has posted a news about Lua and added new TI-Nspire Lua directories: http://www.ticalc.org/archives/news/articles/14/147/147339.html
Happy uploading!
-
Personally, I've scripted my gedit to "maketns" and save wiith Ctrl+L (like "L"ua).
-
my 3-screen setup (thats only during school break, tho, I usually don't have all these screens at the same time :P)
-
/me is jalous
-
/me sees Levak has an Ubuntu!
You guys should post this pics in the Cave topic.
-
Oops I was reading the first page, didn't realize it kept going...
Anyways, I found this about compiling Lua Scripts...
According to the posts I found here -->http://forums.qj.net/psp-development-forum/82656-compiling-lua-scripts-luac.html (http://forums.qj.net/psp-development-forum/82656-compiling-lua-scripts-luac.html)
It looks like it can. There is a link to a sourceforge project...
Cheers
Ingalls
-
To make Levak even more jealous ...
(http://i.imgur.com/uBniI.jpg)
these aren't all mine, I gathered them for a homework movie scene I have to film :P
-
I would have downrated that post, but I started drooling, and accidentally hit the wrong button. Oh well....
-
How could you put the MacBook so close to the edge? Don't you have any sense of respect?
</offtopic>
Well, I leaned Lua :w00t: Now to get nspire_emu working so I can code.
-
How could you put the MacBook so close to the edge? Don't you have any sense of respect?
Dont worry, it's a lot more on the table that suspending in the air (meh, I don't know how to say that in english :o, but you understand) ....
:P
And nice about learning Lua !
Good luck programming nice things now ! :D
-
my 3-screen setup (thats only during school break, tho, I usually don't have all these screens at the same time :P)
(http://www.omnimaga.org/index.php?action=dlattach;topic=7772.0;attach=7407;image)
If I had the same setup as you, it would look more like this:
-
My 15.5" laptop screen is starting to have an inferiority complex. Now I have to get it counseling. Thanks DJ and Adriweb :P
-
Oh my! DJ ruined my life too. GIMME YOUR MAC WILL YOU PLEASE? :P
My 15'4 laptop screen is feeling bad now. I have another computer though, but it doesn't work.
-
Oh my! DJ ruined my life too. GIMME YOUR MAC WILL YOU PLEASE? :P
It is Adriweb one. Have a look to the previous posts.
-
so...
multiple screens == better programs
:P
-
No it isn't, it is smaller screens == better programs
-
Larger resolutions or more screens usually means more time required to render graphics, but if each screen is connected to a different video card, then it isn't as much of a problem, usually.
-
Does Lua bytecode count as Lua :P
I can kind of almost code in Lua now, although I'm pretty bad at it.
-
And now it's all over. Brilliant.
-
And now it's all over. Brilliant.
Perfect "FFFUUUUU" moment for OS 3.0.2 users.
-
So now that they've given us the SDK... Back to learning Lua! Unless they decide to make the SDK for-pay, but I don't see how they can, now that we already have it and they've let us publish it.
-
I guess i will learn it when all this OS3.0 unstableness has been settled and i upgrade my ti-nspire. Definitely yes.
-
So now that they've given us the SDK... Back to learning Lua! Unless they decide to make the SDK for-pay, but I don't see how they can, now that we already have it and they've let us publish it.
A bunch of people will probably just pirate it or re-crack the Lua to TNS code.