Author Topic: Lua on the Nspire?  (Read 30933 times)

0 Members and 2 Guests are viewing this topic.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Lua on the Nspire?
« Reply #30 on: April 13, 2011, 11:39:18 am »
Yep. think of it like
Code: [Select]
-repeat this for each token-
if string=token
code
end
« Last Edit: April 13, 2011, 11:40:49 am by aeTIos »
I'm not a nerd but I pretend:

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: Lua on the Nspire?
« Reply #31 on: April 13, 2011, 11:41:28 am »
Well then...  :o

I call not first candidate for hacking in more functions!

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua on the Nspire?
« Reply #32 on: April 13, 2011, 11:42:49 am »
The Lua interpreter itself is open source, and a fairly small code base with good portability :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Lua on the Nspire?
« Reply #33 on: April 13, 2011, 11:42:50 am »
oh, but they've been working on it with >10 ppl, I think, and not only on that.
(Someone should make a TI-8x Lua interpreter in Axe/Asm)
I'm not a nerd but I pretend:

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: Lua on the Nspire?
« Reply #34 on: April 13, 2011, 11:44:08 am »
Portable code is fun to play with...
Until you brick everything :/

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Lua on the Nspire?
« Reply #35 on: April 13, 2011, 11:45:45 am »
mhm you can brick your calc with everything... just be careful
I'm not a nerd but I pretend:

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: Lua on the Nspire?
« Reply #36 on: April 13, 2011, 11:47:42 am »
That being the reason for emulators.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Lua on the Nspire?
« Reply #37 on: April 13, 2011, 12:13:27 pm »
Wait, Lua is interpreted? I thought it was compiled?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: Lua on the Nspire?
« Reply #38 on: April 13, 2011, 12:48:01 pm »
Interpreter?! CRAP!  :mad: <--umad

EDIT to add clarity: I am generally not good with interpreters. I am not trying to degrade them in any way, shape or form. Thank you for your negative ratings. Seriously, I don't mind.
« Last Edit: April 17, 2011, 01:38:03 am by BrownyTCat »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Lua on the Nspire?
« Reply #39 on: April 13, 2011, 01:42:13 pm »
Not all interpreters are crap. Some are.
I'm not a nerd but I pretend:

Ashbad

  • Guest
Re: Lua on the Nspire?
« Reply #40 on: April 13, 2011, 01:43:56 pm »
I don't think it's a wise thing to bash interpreters :P  Some, like Lua, are extremely powerful.

This actually seems it could be extremely awesome -- Lua is a really fun language to code in :) I haven't coded in it for a while, but it's fast enough to fulfill most of your needs, including game coding.
« Last Edit: April 13, 2011, 01:44:13 pm by Ashbad »

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Lua on the Nspire?
« Reply #41 on: April 13, 2011, 02:10:32 pm »
Even though Lua is a little bit slower than python and the libraries aren't as extensive, the good thing is that an interpreter is much easier to make and is well designed for less powerful systems such as calcs. Python would still be good to see, but it would be hell to code all of that OOP in an interpreted platform.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

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 on the Nspire?
« Reply #42 on: April 13, 2011, 04:00:54 pm »
I wonder how Nspire Lua speed compares to TI-BASIC... someone should try making a program that draws the RPG stuff in Jhgenius01 game to compare. It's definitively better than nothing.

I wonder if in the future it could be possible to port Lua files between the TI-Nspire and Casio Classpad? The screen size differences might sometimes be an issue, though...

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Lua on the Nspire?
« Reply #43 on: April 13, 2011, 04:01:30 pm »
for a=1,10 do
print("That would be awesome")
end
Sig wipe!

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua on the Nspire?
« Reply #44 on: April 13, 2011, 04:16:14 pm »
Interesting, I was actually trying to port it. A decent console was probably just what was missing to make it work.
Ndless.me with the finest TI-Nspire programs