Author Topic: Setting up Nspire Lua on Linux  (Read 6101 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Setting up Nspire Lua on Linux
« on: June 19, 2011, 03:00:41 pm »
I just made a very quick and simple video on how to compile and make Nspire Lua programs on Linux.



I hope you like it ;) Any questions just post.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Setting up Nspire Lua on Linux
« Reply #1 on: June 21, 2011, 04:50:25 am »
Good job, its very clear for beginners :)
It demonstrates perfectly how much more easy it is than TI's tool which pastes the result to the clipboard.

I use this tool constantly, and you can't program something to work faster. Good job Debrouxl, Adriweb and ExtendeD! (and also David for making this vid :)

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Setting up Nspire Lua on Linux
« Reply #2 on: June 21, 2011, 04:53:05 am »
Does this produce 0D-encrypted files that are 3.0.2 compatible, or do we need to use 3.0.1 to re-save the TNS?

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Setting up Nspire Lua on Linux
« Reply #3 on: June 21, 2011, 04:56:48 am »
No, It doesn't encrypt it, and you will need to resave it in order to use it on 3.0.2. But I think there will come a version which encrypts it soon or later, as ExtendeD has done quite some research on it (as you know).

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Setting up Nspire Lua on Linux
« Reply #4 on: June 21, 2011, 04:58:51 am »
Ah. I'll be looking forward to the new version, then. :)

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: Setting up Nspire Lua on Linux
« Reply #5 on: June 21, 2011, 06:00:48 am »
I'm looking forward for what's coming up from ExtendeD with ndless 3, there's about to be a revolution and then TI has to give up.
...
I' hope... :P

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Setting up Nspire Lua on Linux
« Reply #6 on: June 21, 2011, 06:35:13 am »
Quote
But I think there will come a version which encrypts it soon or later, as ExtendeD has done quite some research on it (as you know).
IMO, the main problem with generating chunks in 0D format is not the encryption. It's TI's proprietary and patented XML compression. Citizens of countries where software patents have full or partial legality (i.e., between others, the USA and the EU states) could find themselves on the receiving end of patent infringement / DMCA violation / etc. lawsuits...
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Setting up Nspire Lua on Linux
« Reply #7 on: June 21, 2011, 07:09:49 am »
Oh, I didn't think about that :(
Thanks for noticing us about those issues Lionel.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Setting up Nspire Lua on Linux
« Reply #8 on: June 21, 2011, 07:25:54 am »
Well, I'm just rewriting what ExtendeD wrote ;)
Quote
So what does this mean for us? Implementing a third-party converter which includes the XML compression required by OS 3.0.2 is impossible without being exposed to legal action. Compressing XML is surely a bright idea to optimize storage space, but there were many open binary XML encoding methods available that did not require TI to invest (probably specifically for the TI-Nspire) in a new one. Unless they want to wrap the device with fiddle-proof legal tape.
(emphasis mine)

Granted, ExtendeD later wrote:
Quote
I first checked that XML-compressing a Lua script from a skeleton (similarly to what the current third-party Lua converters for OS 3.0.1 do) is quite easy without needing to implemented the patented algorithm, thus avoiding any legal issues. This is good news.
That may indeed do the job for Lua scripts, which are a particular case; but in general, implementing a fully generic 0D -> clear text/binary decompressor, or a full clear text/binary -> 0D compressor, is impossible for citizens of countries where software patents have any value...
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Setting up Nspire Lua on Linux
« Reply #9 on: June 21, 2011, 08:11:39 am »
Good job, its very clear for beginners :)
It demonstrates perfectly how much more easy it is than TI's tool which pastes the result to the clipboard.

I use this tool constantly, and you can't program something to work faster. Good job Debrouxl, Adriweb and ExtendeD! (and also David for making this vid :)

Thanks a lot Jim Bauwens, and yes all credit for Lua>TNS Program for Debrouxl, Adriweb and ExtendeD.

I'm looking forward for what's coming up from ExtendeD with ndless 3, there's about to be a revolution and then TI has to give up.
...
I' hope... :P

I am also looking forward for Ndless 3. But for now I have to stick for what I got, and it's Lua, but as soon and if Ndless 3 comes out, I will start coding in C for the Nspire.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Setting up Nspire Lua on Linux
« Reply #10 on: June 21, 2011, 01:08:00 pm »
Well, I'm just rewriting what ExtendeD wrote ;)
Quote
So what does this mean for us? Implementing a third-party converter which includes the XML compression required by OS 3.0.2 is impossible without being exposed to legal action. Compressing XML is surely a bright idea to optimize storage space, but there were many open binary XML encoding methods available that did not require TI to invest (probably specifically for the TI-Nspire) in a new one. Unless they want to wrap the device with fiddle-proof legal tape.
(emphasis mine)

Granted, ExtendeD later wrote:
Quote
I first checked that XML-compressing a Lua script from a skeleton (similarly to what the current third-party Lua converters for OS 3.0.1 do) is quite easy without needing to implemented the patented algorithm, thus avoiding any legal issues. This is good news.
That may indeed do the job for Lua scripts, which are a particular case; but in general, implementing a fully generic 0D -> clear text/binary decompressor, or a full clear text/binary -> 0D compressor, is impossible for citizens of countries where software patents have any value...
Couldn't it be reverse-engineered?

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Setting up Nspire Lua on Linux
« Reply #11 on: June 21, 2011, 01:10:28 pm »
Couldn't it be reverse-engineered?
The main problem is not that we don't know how 0D compression works. The problem is that it's protected by a patent, and that can limit us a lot.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Setting up Nspire Lua on Linux
« Reply #12 on: June 21, 2011, 03:30:54 pm »
This is one reason I think TI is being nice but not nice enough, They are still wrapping it in legal tape we can't bypass. I can't wait for ndless 3, I bet it will be amazing. Is he having to make a seperate version for CX and regular?
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y