Author Topic: Can you code in Lua?  (Read 26739 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Can you code in Lua?
« on: April 14, 2011, 04:10:47 am »
In response to the recent news that the NSpire OS 3.0 can be programmed using Lua, a new subforum was created aimed at Lua Language.

I'd like to know who of you know Lua, like me :) I learnt Lua a few months ago, but haven't coded a lot of programs, it was more just learning.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Can you code in Lua?
« Reply #1 on: April 14, 2011, 04:16:38 am »
I haven't programmed in it yet, but it looks easy to me.
I'm sure that most people will not have an problem using it.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Can you code in Lua?
« Reply #2 on: April 14, 2011, 04:18:06 am »
I haven't programmed in it yet, but it looks easy to me.
I'm sure that most people will not have an problem using it.

It's interpreted, just like python, in fact, python, lua and ruby are quite similar.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Can you code in Lua?
« Reply #3 on: April 14, 2011, 08:52:44 am »
I know CAML, Python and many other languages, so theire is nothing new for me in lua, except a new Lego game to assemble object and recursivity. =)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Can you code in Lua?
« Reply #4 on: April 14, 2011, 08:57:02 am »
I voted 'No, will learn'. But its actualy 'No, maybe will learn'.
I am not busy on the nspire. Jim just bought one today(for himself) and I'm busy with myst...
But if I start going on the nspire I feel I have to learn lua before I can program 'something good'.


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Can you code in Lua?
« Reply #5 on: April 14, 2011, 09:00:09 am »
I've programmed some World of Warcraft addons (which are done in LUA) so I'm not bad :)
But it's been quite a while and I'll dive into it again !
« Last Edit: April 14, 2011, 09:00:25 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Can you code in Lua?
« Reply #6 on: April 14, 2011, 09:59:34 am »
I accidentally voted no, but will learn. I meant to vote no, and will not learn. I really have no reason to learn LUA as i don't own or program for the Nspire.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Can you code in Lua?
« Reply #7 on: April 14, 2011, 10:54:14 am »
I accidentally voted no, but will learn. I meant to vote no, and will not learn. I really have no reason to learn LUA as i don't own or program for the Nspire.

I think you can change your vote, though.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Can you code in Lua?
« Reply #8 on: April 14, 2011, 11:22:28 am »
Yes I learned it last year. it is a very easy language to get started with. But I will not be coding the Nspire with it  :P

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 AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Can you code in Lua?
« Reply #9 on: April 14, 2011, 11:30:47 am »
I'll never use it, but knowing myself, I'll want to try something with it so I'll learn the language, then get bored and never touch it again :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Ashbad

  • Guest
Re: Can you code in Lua?
« Reply #10 on: April 14, 2011, 01:21:50 pm »
I know Lua extremely well :)  It's actually a very powerful language for an interpreter, and I like it much more than python, because of stright out OOP, it has a much simpler table system -- it can be a pain for some applications, but for others it saves some programming time, and helps you think of the object easier :)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Can you code in Lua?
« Reply #11 on: April 14, 2011, 03:11:31 pm »
I know Lua extremely well :)  It's actually a very powerful language for an interpreter, and I like it much more than python, because of stright out OOP, it has a much simpler table system -- it can be a pain for some applications, but for others it saves some programming time, and helps you think of the object easier :)

I don't wanna discuss this, but Python's OOP is better than Lua's.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Can you code in Lua?
« Reply #12 on: April 14, 2011, 03:21:33 pm »
In your opinion. Please let us discuss Lua here. (No offense)
I think OOP is way to complicated for calcs.
« Last Edit: April 14, 2011, 03:22:10 pm by aeTIos »
I'm not a nerd but I pretend:

Ashbad

  • Guest
Re: Can you code in Lua?
« Reply #13 on: April 14, 2011, 03:25:50 pm »
I know Lua extremely well :)  It's actually a very powerful language for an interpreter, and I like it much more than python, because of stright out OOP, it has a much simpler table system -- it can be a pain for some applications, but for others it saves some programming time, and helps you think of the object easier :)

I don't wanna discuss this, but Python's OOP is better than Lua's.

Lua really doesn't really even have OOP -- it just can group methods and variables and other tables into a table, which can somewhat represent an object ;)

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Can you code in Lua?
« Reply #14 on: April 14, 2011, 03:46:55 pm »
Nobody has thought about the fact that the entire TI OS could be coded in Lua ?
Look:
 - TI was really fast to implement this Lua interpreter (since 05/2010)
 - Same Way of programming, Lua's objects and "toto.a, toto.b, toto.c etc .." variables, math.eval("DelVar "..varname) and expr("DelVar "&varname)
 - Same way of TNS structure, in the XML files, we've got "<gg:VAR></gg:VAR>" token for the widget variables, in the Lua's interpreted method we've got the "gc:" object

Thus, only one question : Can Lua be compiled ? or just directly interpreded by the ARM core ?
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua