Author Topic: Next Nspire OS and Lua compatibility  (Read 5903 times)

0 Members and 1 Guest are viewing this topic.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Next Nspire OS and Lua compatibility
« 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
« Last Edit: December 18, 2011, 07:21:17 pm by critor »
TI-Planet co-admin.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Next Nspire OS and Lua compatibility
« Reply #1 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?

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Next Nspire OS and Lua compatibility
« Reply #2 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.
TI-Planet co-admin.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Next Nspire OS and Lua compatibility
« Reply #3 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 :)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Next Nspire OS and Lua compatibility
« Reply #4 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.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Next Nspire OS and Lua compatibility
« Reply #5 on: December 18, 2011, 03:42:43 pm »
Yes, they are trying to optimize certain stuff :)

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: Next Nspire OS and Lua compatibility
« Reply #6 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?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Next Nspire OS and Lua compatibility
« Reply #7 on: December 18, 2011, 04:10:33 pm »
It's been requested, we don't know right now.
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Next Nspire OS and Lua compatibility
« Reply #8 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 :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Next Nspire OS and Lua compatibility
« Reply #9 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).

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: Next Nspire OS and Lua compatibility
« Reply #10 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.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Next Nspire OS and Lua compatibility
« Reply #11 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.
« Last Edit: December 18, 2011, 04:19:57 pm by jimbauwens »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Next Nspire OS and Lua compatibility
« Reply #12 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 :)
« Last Edit: December 18, 2011, 04:19:24 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Next Nspire OS and Lua compatibility
« Reply #13 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 :)
« Last Edit: December 18, 2011, 04:28:21 pm by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Next Nspire OS and Lua compatibility
« Reply #14 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).