Omnimaga

Calculator Community => Other Calculators => Topic started by: critor on December 18, 2011, 09:53:42 am

Title: Next Nspire OS and Lua compatibility
Post by: critor on December 18, 2011, 09:53:42 am
Cross-posted from TI-Planet.
http://tiplanet.org/forum/viewtopic.php?f=43&t=8569


There are two kinds of Lua functions:

- the ones documented by TI: they should still work in the next OS
- the other ones: we discovered them by ourselves, but they could be modified or removed in the next OS


Some Lua programs might not work anymore is the next OS if you don't stick to the official Lua API..

For exemple, setAlpha() which is used in many games is missing in the next OS development versions we are testing. (information revealed with TI's agreement)



In order to help you, Inspired-Lua.org is now specifying for each function if it is documented by TI or not.
http://inspired-lua.org
Title: Re: Next Nspire OS and Lua compatibility
Post by: Scipi on December 18, 2011, 10:19:47 am
Sooo... Instead of giving us more to play with in the next OS to keep us away from ndless, they're taking stuff away or changing it?
Title: Re: Next Nspire OS and Lua compatibility
Post by: critor on December 18, 2011, 10:26:46 am
Sooo... Instead of giving us more to play with in the next OS to keep us away from ndless, they're taking stuff away or changing it?

They're also adding things, but we cannot talk about them yet.
Title: Re: Next Nspire OS and Lua compatibility
Post by: Jim Bauwens on December 18, 2011, 03:37:45 pm
Sooo... Instead of giving us more to play with in the next OS to keep us away from ndless, they're taking stuff away or changing it?
The problem is certain stuff doesn't work properly or is a bit bugged. That is why they did not mention it officially.
And don't worry about removing stuff, they will give us plenty to play with next release :)
Title: Re: Next Nspire OS and Lua compatibility
Post by: calc84maniac on December 18, 2011, 03:39:37 pm
I really hope this means they're trying to optimize for better speed. I'd imagine handling an 8-bit alpha value for every pixel wouldn't be the speediest operation.
Title: Re: Next Nspire OS and Lua compatibility
Post by: Jim Bauwens on December 18, 2011, 03:42:43 pm
Yes, they are trying to optimize certain stuff :)
Title: Re: Next Nspire OS and Lua compatibility
Post by: renatose on December 18, 2011, 04:08:20 pm
They're also adding things, but we cannot talk about them yet.
can you tell us if they are improving UTF-8 support in lua scripts?
Title: Re: Next Nspire OS and Lua compatibility
Post by: Adriweb on December 18, 2011, 04:10:33 pm
It's been requested, we don't know right now.
Title: Re: Next Nspire OS and Lua compatibility
Post by: Jim Bauwens on December 18, 2011, 04:10:41 pm
UTF-8 support is quite good with their added utf-8 functions.
It only misses the ulen function, and I requested that :)
Title: Re: Next Nspire OS and Lua compatibility
Post by: DJ Omnimaga on December 18, 2011, 04:16:20 pm
Hmm I hope they won't end up breaking compatibility with old Lua programs every single version release now. That would surely discourage anyone from continuing using the language (or upgrade).
Title: Re: Next Nspire OS and Lua compatibility
Post by: renatose on December 18, 2011, 04:18:13 pm
It's been requested, we don't know right now.
thank you

UTF-8 support is quite good with their added utf-8 functions.
It only misses the ulen function, and I requested that :)
but it is not possible for us to have characters like á,à,ó,... in lua scripts because it causes the computer software to instantly close without any warning in the moment we are pasting the script in a document.
Title: Re: Next Nspire OS and Lua compatibility
Post by: Jim Bauwens on December 18, 2011, 04:18:15 pm
This is why Critor gives the warning to only use the official stuff.
As far as I know you don't need to worry about the stuff in their documentation :)


@Renatose, this depends on how the file is stored (windows, nix, ascii, utf-8).
But I think that TI is doing its best to fix all these bugs.
Title: Re: Next Nspire OS and Lua compatibility
Post by: Adriweb on December 18, 2011, 04:19:00 pm
They really do try what they can to provide a good compatibility.

(That's pretty much a quote from a TI employee)

And don't forget we should not even be aware of Lua right now (until the release of the SDK) :P


And yeah, if you stay with what their doc says, it's going to be OK :)
Title: Re: Next Nspire OS and Lua compatibility
Post by: ExtendeD on December 18, 2011, 04:24:47 pm
Well there's an official Lua scripting page with public tools and documentation, so yes we are aware of it :)
Title: Re: Next Nspire OS and Lua compatibility
Post by: DJ Omnimaga on December 18, 2011, 04:26:06 pm
Ok well I hope they keep documented stuff compatible then, else if they don't, it would simply kill Lua fanbase over time. Imagine if on the 83+, they kept breaking TI-BASIC commands every few OS or if Quigibo kept breaking compatibility with every Axe Parser release, both language popularity would suffer (although Axe is compiled so it isn't as bad).
Title: Re: Next Nspire OS and Lua compatibility
Post by: Adriweb on December 19, 2011, 04:43:52 am
Well there's an official Lua scripting page with public tools and documentation, so yes we are aware of it :)

Oh, that's only because we asked them something like "WHY U NO TELL US", so they quickly made a page up on their site ;)
Title: Re: Next Nspire OS and Lua compatibility
Post by: DJ Omnimaga on December 19, 2011, 01:12:43 pm
Well there's an official Lua scripting page with public tools and documentation, so yes we are aware of it :)

Oh, that's only because we asked them something like "WHY U NO TELL US", so they quickly made a page up on their site ;)
Which isn't even linked anywhere on it (only can be found via Google) it seems x.x

Also someone should probably put this in news.