Author Topic: Lua compatibility accross Nspire OSes  (Read 10984 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Lua compatibility accross Nspire OSes
« 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?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua compatibility accross Nspire OSes
« Reply #1 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).
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

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

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: Lua compatibility accross Nspire OSes
« Reply #3 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.
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua compatibility accross Nspire OSes
« Reply #4 on: April 16, 2011, 04:01:20 am »
Who wants to undertake the task of making a Ndless-based port of Lua ? :D
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

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

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua compatibility accross Nspire OSes
« Reply #6 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.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Lua compatibility accross Nspire OSes
« Reply #7 on: April 17, 2011, 09:49:46 pm »
I see. I hope they didn't water it down too much either.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Lua compatibility accross Nspire OSes
« Reply #8 on: April 19, 2011, 07:34:11 pm »
After seeing "setColor" and "isColor" functions, I'm positive that Lua will work on the CX.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua compatibility accross Nspire OSes
« Reply #9 on: April 20, 2011, 07:10:05 am »
Once Ndless works on OS 3.0, enhancing the Lua API will be quite easy.
Ndless.me with the finest TI-Nspire programs

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Lua compatibility accross Nspire OSes
« Reply #10 on: April 20, 2011, 05:18:12 pm »
Hmm, like having asm inline? That would be awesome!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Lua compatibility accross Nspire OSes
« Reply #11 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.

Offline DJ Omnimaga

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

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Lua compatibility accross Nspire OSes
« Reply #13 on: April 28, 2011, 06:13:32 am »
Once Ndless works on OS 3.0...

You've found a way?
« Last Edit: April 28, 2011, 06:13:45 am by critor »
TI-Planet co-admin.

Offline GB

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 147
  • Rating: +15/-3
  • Use Microhard WindOS today!
    • View Profile
    • MICROHARD CORPORATION
Re: Lua compatibility accross Nspire OSes
« Reply #14 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.
TI-86 USER
CASIO PRIZM USER
TI-NSPIRE USER
TI-84 PLUS SILVER EDITION USER
TI-83 PLUS USER

PROJECTS:

Microhard Paint
http://www.omnimaga.org/index.php?topic=11915.0

TI-Nspire Character Map
http://www.omnimaga.org/index.php?topic=7725.msg142555#msg142555