Author Topic: PCspire, run Nspire lua programs nativly on your pc  (Read 31880 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
PCspire, run Nspire lua programs nativly on your pc
« on: March 15, 2012, 03:51:57 pm »
Hello :)

Just wanted to show a little project I'm busy on.
As some of you know, I mainly develop on Linux. This means testing Nspire Lua programs is a bit harder.
Nspire_emu works fine, but there is no mouse support.
That is why I set out to create something to run Lua programs natively (meaning without emulation) on my computer.
I started 3 days ago, and here is the result:

Spoiler For screenshots:
(Colors are bad because of screen recorder)


EEPro (under dev) runs pretty good


Tetris:


Even different screen sizes if the lua script supports it:


And today I added a debugger:

( gvars() is a custom function of me that prints classes and/or objects )

I use the Löve Lua framework, since it was also event based and that made stuff a bit easier.

Stuff I still need to do:
  • Mouse cursor changing
  • D2Editor support (maybe too hard)
  • math.eval --> TI.Basic interpreter
  • Physics. Possible but very hard
  • Saving state of script done
If I forgot something I will update the list.
« Last Edit: March 16, 2012, 04:00:00 pm by jimbauwens »

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #1 on: March 15, 2012, 03:53:06 pm »
awesome =)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #2 on: March 15, 2012, 03:55:53 pm »
I eat you when this is not for windows. I need this SO bad  if I want to develop nspire lua programs (but I do not have an nspire xD)
I'm not a nerd but I pretend:

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #3 on: March 15, 2012, 03:59:15 pm »
@aeTIos
It's for all os's!
Hey, and you are a big part to blame, since you pointed me to the Love framework!
Guilty I say!

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #4 on: March 15, 2012, 04:02:05 pm »
Hehe Löve ROCKS.
It makes stuff sooo much easier!
I'm not a nerd but I pretend:

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #5 on: March 15, 2012, 04:05:33 pm »
That might be pretty useful, you won't need a Nspire or the emulator to run Lua programs.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #6 on: March 15, 2012, 04:06:42 pm »
Yeah, true.
Also, with the debugger it becomes a useful programming tool :)

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #7 on: March 15, 2012, 04:09:46 pm »
Can this be set to scale the speed to what a real nspire could do?
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 aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #8 on: March 15, 2012, 04:11:03 pm »
Could you please spoil the pics in the first post, my browser breaks on them :\
I'm not a nerd but I pretend:

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #9 on: March 15, 2012, 04:18:36 pm »
Ruler: the timer that most programs use to time stuff is the same.
And keyboard input is set to the same rate. So in theory, all programs should act quite the same.

aeTIos, done

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #10 on: March 15, 2012, 04:30:26 pm »
This is wonderful, and undoubtedly more lightweight (for both size and speed) than the large TINCS bloat :)
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: PCspire, run Nspire lua programs nativly on your pc
« Reply #11 on: March 15, 2012, 04:48:27 pm »
Thanks Lionel :)

Also, cubefield works:


I did have to change a speed variable though. Cubefield detects PCspire as a CX, so it set a variable to make the whole program go faster.
This will probably also be a problem in TINCS, and isn't really fixable (well, cubefield's code needs to be changed).
« Last Edit: March 15, 2012, 04:48:40 pm by jimbauwens »

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #12 on: March 15, 2012, 10:06:40 pm »
Very nice! May be able to bring me back to Ubuntu for calc development!  :D

Downloads soon?

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #13 on: March 15, 2012, 10:22:59 pm »
This is definitely cross-platform, as this itself is also written in Lua! :D Windows, Linux, Mac OS X - you name it :)
(I'm assuming there will be binary distributions: https://love2d.org/wiki/Game_Distribution)

This is some amazing work! :D This will truly unlock the world of Lua for me, and possibly for countless others as well! :D
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #14 on: March 16, 2012, 03:53:17 am »
@cyanophycean314, I'll shouldn't take too long before a release, as it's already quite progressed.

@alberthrocks, thanks! And yes, I will distribute it in .love files :)