Author Topic: On-calc Lua programming now possible!  (Read 4774 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
On-calc Lua programming now possible!
« on: July 06, 2011, 01:06:32 pm »
Since last month, three Lua tools to allow working on this language's programs on the calculator has been released. They behave differently from each others, which should give people more choice.

First of all, there is LuaTerm, which was made by Jimbauwens. This one works in command prompt style and allows you to execute Lua code that was stored in a character string variable.

Secondly, there is Lua onCalc, by Dyar, which works similarly, but without the command console. This makes it easier to use and also the string names are now static.

Finally, there is Oclua, by Extended, which was released a few days ago. This one goes even further, by plain adding an actual Lua editor on the calculator, making it much easier to code. This one uses loadstring(), which was left out by TI when cleaning up the Lua language from some functions to implement it in OS 3.0.1. It allows the making of such editor. A discussion topic is available on Omnimaga for this one, along with this screenshot, attached in it:



Hopefully this should make it much easier to program for some people, especially those who were always used to code on-calc before.

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: On-calc Lua programming now possible!
« Reply #1 on: July 06, 2011, 03:36:19 pm »
Suddenly all these tools come out for Lua ... awesome! This'll make coding Lua easier since you don't need a computer to do it.




Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: On-calc Lua programming now possible!
« Reply #2 on: July 06, 2011, 04:36:08 pm »
To be honest, I didn't release my LuaTerm yet, I just posted some pre-release code :p
And it doesn't only load lua from strings, you can directly type and test stuff, just like on a normal Lua console :)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: On-calc Lua programming now possible!
« Reply #3 on: July 06, 2011, 04:40:00 pm »
To be honest, I didn't release my LuaTerm yet, I just posted some pre-release code :p
And it doesn't only load lua from strings, you can directly type and test stuff, just like on a normal Lua console :)

ExtendeD's looks quite complex actually, never thought it could be that good, nice job!

Never tried DrNar's but I liked Jim Bauwens's, because it's very simple, just like Lua Interpreter for computers or Python IDLE.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: On-calc Lua programming now possible!
« Reply #4 on: July 06, 2011, 04:45:44 pm »
I just hope that TI leaving in loadstring() was intentional, otherwise they may remove it in a future update.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: On-calc Lua programming now possible!
« Reply #5 on: July 06, 2011, 11:15:44 pm »
Sweet!  Now I really have to learn Lua.  :P

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: On-calc Lua programming now possible!
« Reply #6 on: July 07, 2011, 12:52:13 am »
Wow!  Props to everyone creating tools for Lua!  :)
ld a, 0
ld a, a

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: On-calc Lua programming now possible!
« Reply #7 on: July 07, 2011, 06:18:39 am »
Sweet!  Now I really have to learn Lua.  :P

What I think is best about this is for tiny quick programs or even for debugging like in Python :) The best part is ExtendeD's also works with graphics and multiline =D