Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: DJ Omnimaga on April 16, 2011, 01:47:32 am

Title: Lua compatibility accross Nspire OSes
Post by: DJ Omnimaga on April 16, 2011, 01:47:32 am
I wonder if anyone managed to check if Lua was actually possible on older TI-Nspire OSes? Since programs like the periodic table have only been around for OS 3.0 and that these OSes are huge, I wasn't sure if anyone checked through the OS to see if that language was already present on older ones.

I also wonder if Lua programs for the Nspire will be compatible with the TI-Nspire CX?
Title: Re: Lua compatibility accross Nspire OSes
Post by: Lionel Debroux on April 16, 2011, 01:53:04 am
Trying to open the periodic table document on OS 1.7.2741 CAS yielded a ~"you need a newer OS version to open this file" message. Two parts of the file can contain versioning information (both probably do, directly or indirectly):
* the "TIMLP0500" header of the file;
* the contents of the Document.xml part of the file (which is compressed with the unspecified "0D" compression method, available only through yet-undocumented fiddling on nspire_emu/Ncubate).
Title: Re: Lua compatibility accross Nspire OSes
Post by: DJ Omnimaga on April 16, 2011, 01:57:35 am
Ok, what about 2.0.1 and 2.1? What I am also curious about is if the interpreter is actually present in the OS. Maybe the file format won't be read, but the language is there?
Title: Re: Lua compatibility accross Nspire OSes
Post by: Goplat on April 16, 2011, 03:28:05 am
Ok, what about 2.0.1 and 2.1? What I am also curious about is if the interpreter is actually present in the OS. Maybe the file format won't be read, but the language is there?
No, it's not present.

I also wonder if Lua programs for the Nspire will be compatible with the TI-Nspire CX?
I would assume so, since they even work in the computer software.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Lionel Debroux on April 16, 2011, 04:01:20 am
Who wants to undertake the task of making a Ndless-based port of Lua ? :D
Title: Re: Lua compatibility accross Nspire OSes
Post by: DJ Omnimaga on April 16, 2011, 04:09:55 am
Thanks for the info Goplat.

Lionel that would be nice indeed, so we could run Lua games on older OSes too. As nice as this language discovery is, it sucks that it only runs on an OS that may never get to see Ndless.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Lionel Debroux on April 16, 2011, 04:57:47 am
Oh, I see that the Nspire's Lua doesn't have "io" and "os" functions, i.e. it's effectively (and efficiently) watered down. Having a full-featured version of Lua would be an even more worthwhile goal, then.
Title: Re: Lua compatibility accross Nspire OSes
Post by: DJ Omnimaga on April 17, 2011, 09:49:46 pm
I see. I hope they didn't water it down too much either.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Hot_Dog on April 19, 2011, 07:34:11 pm
After seeing "setColor" and "isColor" functions, I'm positive that Lua will work on the CX.
Title: Re: Lua compatibility accross Nspire OSes
Post by: ExtendeD on April 20, 2011, 07:10:05 am
Once Ndless works on OS 3.0, enhancing the Lua API will be quite easy.
Title: Re: Lua compatibility accross Nspire OSes
Post by: willrandship on April 20, 2011, 05:18:12 pm
Hmm, like having asm inline? That would be awesome!
Title: Re: Lua compatibility accross Nspire OSes
Post by: Munchor on April 20, 2011, 05:18:52 pm
After seeing "setColor" and "isColor" functions, I'm positive that Lua will work on the CX.

It does, it works on the CX emulator, so it really works.
Title: Re: Lua compatibility accross Nspire OSes
Post by: DJ Omnimaga on April 27, 2011, 09:55:14 pm
Once Ndless works on OS 3.0, enhancing the Lua API will be quite easy.
/me hopes Ndless 3.0 is possible :D
Title: Re: Lua compatibility accross Nspire OSes
Post by: critor on April 28, 2011, 06:13:32 am
Once Ndless works on OS 3.0...

You've found a way?
Title: Re: Lua compatibility accross Nspire OSes
Post by: GB on April 30, 2011, 07:25:39 pm
I'm not upgrading to System 3 without Ndless. You just can't beat the good old Nintendo Game Boy emulator.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Yeong on April 30, 2011, 08:35:50 pm
...maybe with REAL color this time XD
EDIT:I'm pretty sure GBA and N64(I doubt it, but still) will be possible, too.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Kjelddy on June 11, 2011, 01:19:27 pm
Lua does work on the new CX (i have one and tried out the game aliens).
you prob already new this but to be certain :)
Title: Re: Lua compatibility accross Nspire OSes
Post by: Ashbad on June 11, 2011, 01:26:53 pm
I don't think it's a good idea to attempt Ndless for OS 3.0 right now.  TI just gave us Lua tools in hopes we would just use those for everything and drop the hacking.  Now that they at least pretend to like us, we should at least pretend to be interested in what they gave to us.  If we open up Ndless 3.0 for C and ASM development on the CX, then they might just suspend the Lua tools that many people here use.  I don't think it's fair to them if their tools get taken away, since then they have no purpose for their calculator.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Kjelddy on June 11, 2011, 01:41:33 pm
I don't think it's a good idea to attempt Ndless for OS 3.0 right now.  TI just gave us Lua tools in hopes we would just use those for everything and drop the hacking.  Now that they at least pretend to like us, we should at least pretend to be interested in what they gave to us.  If we open up Ndless 3.0 for C and ASM development on the CX, then they might just suspend the Lua tools that many people here use.  I don't think it's fair to them if their tools get taken away, since then they have no purpose for their calculator.
is this posted in the wrong thread or am i blind?
this thread is about Lua and not about ndless :)
check post below so nvm
Title: Re: Lua compatibility accross Nspire OSes
Post by: Ashbad on June 11, 2011, 01:44:34 pm
Once Ndless works on OS 3.0...

You've found a way?

Well, it was in response to this primarily.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Adriweb on June 11, 2011, 01:50:21 pm
@Ashbad : I probably can't say much but TI's really working with LUA stuff and I don't think ndless will stop them from improving lua tools etc. (to the contrary, it would make them improve it even more, to compete with what ndless stuff would be able to do)
Title: Re: Lua compatibility accross Nspire OSes
Post by: Ashbad on June 11, 2011, 01:52:04 pm
Well, if we happened to use something like Lua to help us make Ndless, they would take it away just due to that.  They would rather no programming than completely unbounded programming, I'm sure.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Adriweb on June 11, 2011, 01:52:58 pm
Well, if we happened to use something like Lua to help us make Ndless, they would take it away just due to that.  They would rather no programming than completely unbounded programming, I'm sure.
Maybe, maybe not.
Title: Re: Lua compatibility accross Nspire OSes
Post by: Lionel Debroux on June 11, 2011, 02:39:43 pm
Quote
TI just gave us Lua tools in hopes we would just use those for everything and drop the hacking.
If that's what they're hoping, well, they're living in a fantasy world of delusion ;)
As mentioned at length in another thread, there are lots of things that Lua can't do. Especially if it's not JITed (and it doesn't seem to be, on the Nspire), just have a look at the speedup that LuaJIT yields (x70 and more in some heavy computations) :)

Quote
Now that they at least pretend to like us,
Well, they had little choice but releasing the documentation and tool, after a) most of the documentation had already been found through reverse-engineering and b) the documentation and tool was involuntarily leaked on the website of a third party ;)

Quote
we should at least pretend to be interested in what they gave to us.
Speaking for myself, I pretend that Lua is definitely a way forward from the sub-par BASIC (which, in some areas, doesn't even have the functionality provided by the TI-81 20 years ago), but I'm not very interested in programming in Lua. For my own purposes, I remain interested mainly in C/ASM programming.
Spoiler For Spoiler:
(but of course, I'd hate Lua disappearing from the Nspire and people being deprived from programming with that interesting language)

Quote
If we open up Ndless 3.0 for C and ASM development on the CX, then they might just suspend the Lua tools that many people here use.  I don't think it's fair to them if their tools get taken away, since then they have no purpose for their calculator.
Besides users and programmers, teachers are warming up to Lua. By now, the backlash for suppressing Lua from the OS as a whole would be huge... Teachers could always try to blame "hackers", but would that bode well with users ?
IMO again, while there may be reasons against Ndless 3.0 being based on Lua, the fear of TI removing Lua probably isn't a very good one - at least, I think so :)