Author Topic: Relative speed of Lua?  (Read 14050 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Relative speed of Lua?
« on: April 19, 2011, 07:27:16 pm »
Let's say TI-Nspire speed could be measured on a scale of 1-10, with Ti-Basic code at 1 and ASM/C Code at 10. 

Very, very roughly, where would Lua fall on this scale?



PS: Imo speed doesn't matter.   I know that the importance of LUA is what it can let Ti-Basic users do.  I'm just curious ;D

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Relative speed of Lua?
« Reply #1 on: April 19, 2011, 07:29:27 pm »
No idea, but Nspire BASIC is already pretty fast :hyper:




Ashbad

  • Guest
Re: Relative speed of Lua?
« Reply #2 on: April 19, 2011, 07:59:58 pm »
I cannot make that comparison for NSpire Lua -- but if TI basic for computer (:P) was 1 and x86 assembly as a 10, computer Lua is a bit closer to a 5.  Python is a 7.  Java is 8, C is 9, for more comparison ;)

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: Relative speed of Lua?
« Reply #3 on: April 19, 2011, 08:26:03 pm »
It's hard to tell. If they use the same code for both interpreters, maybe the speed is the same. That said, Lua offers a bit more freedom even if it's a stripped version of it.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Relative speed of Lua?
« Reply #4 on: April 19, 2011, 08:33:06 pm »
Exactly : 8
I can make a 30fps program displaying 3D models in a complete animation.
This test has been performed by calculating how fast my program can display a model during a rotatation of 2*pi with a pi/100 increment and a refresh rate of 100fps (100fps => 30fps, 10fps => 7fps).

It is really good, to my mind, comparing to the TI-Basic that need over than 2 secondes to display the same model only one time.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

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: Relative speed of Lua?
« Reply #5 on: April 19, 2011, 08:34:57 pm »
Wow! is that your port of Make3D getting 30 FPS? That's probably looking pretty fuzzy on the screen (darn crappy lcds :P), and that is really, really fast!

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Relative speed of Lua?
« Reply #6 on: April 19, 2011, 08:39:35 pm »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Relative speed of Lua?
« Reply #7 on: April 19, 2011, 08:48:53 pm »
That is fast ... like Axe fast (compared to other Z80 calc stuff, of course).

Guess I'm gonna learn Lua after all :D
« Last Edit: April 19, 2011, 10:05:10 pm by Deep Thought »




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: Relative speed of Lua?
« Reply #8 on: April 19, 2011, 08:50:13 pm »
Well, the Calc is at least 15 times more powerful. ARM vs z80, ARM wins. even if the z80s were 150 mhz, they would still lose.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Relative speed of Lua?
« Reply #9 on: April 19, 2011, 08:51:27 pm »
Well, the Calc is at least 15 times more powerful. ARM vs z80, ARM wins. even if the z80s were 150 mhz, they would still lose.

Partly, but not fully, because it has automatic multiplication (in z80, we have to do multiplication ourselves!)

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Relative speed of Lua?
« Reply #10 on: April 19, 2011, 08:58:37 pm »
Wow! is that your port of Make3D getting 30 FPS? That's probably looking pretty fuzzy on the screen (darn crappy lcds :P), and that is really, really fast!
Yes !
Have a look :
http://education.ti.com/html/nspireplayer/3.0.1/application/index.html?locale=en&nspirefile=http://levak.free.fr/ftp/nspire/Make3D/Make3D.tns
(I have to keep a GUI for nspire-player whereas there are many shortcuts activated to modify some globals)
« Last Edit: April 19, 2011, 09:00:32 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Relative speed of Lua?
« Reply #11 on: April 19, 2011, 09:19:10 pm »
Nice! :w00t:  Great demo!  It's so fast!
ld a, 0
ld a, a

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Relative speed of Lua?
« Reply #12 on: April 19, 2011, 10:04:47 pm »
It is, wow O.O




Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Relative speed of Lua?
« Reply #13 on: April 19, 2011, 10:07:08 pm »
Wow this is great. I'm going to love to see how my game does. I hope I don't over do it
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

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: Relative speed of Lua?
« Reply #14 on: April 19, 2011, 10:11:40 pm »
@Hot Dog how is automatic multiplication a bad thing? Hardware multiplication would be faster, not slower, than software based methods.

Also, I hate TI hating linux. :( Not supported :P