Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Why use LUA?

  
  1. #1
    Organized_Chaos's Avatar
    Organized_Chaos is offline Senior Member -Hacks Titan
    Join Date
    May 2008
    Posts
    4,768
    Rep Power
    53962

    Default Why use LUA?

    Is there any advantage to using LUA to program? I remember building a little menu years ago which basically did something different for each button I pushed. But I also remember that I had to have a LUA Player in order to even use it. So, should I start teaching myself LUA again? Or should I just jump into C++?


  2. #2
    Babkock's Avatar
    Babkock is offline Programmer -Hacks Member
    Join Date
    Jul 2009
    Location
    $PWD
    Posts
    282
    Rep Power
    64

    Default

    I'm learning LUA and I think it's much easier to learn than C/C++.
    My homebrew: ToneMatrix

  3. #3
    Organized_Chaos's Avatar
    Organized_Chaos is offline Senior Member -Hacks Titan
    Join Date
    May 2008
    Posts
    4,768
    Rep Power
    53962

    Default

    But C is more versatile and you can compile it all as a standalone eboot.pbp. With LUA you have to have LUA player. I agree that LUA is easier than C/C++ though.

  4. #4
    PearLBLacK is offline vaca -Hacks Enthusiast
    Join Date
    May 2010
    Location
    Doesn't Matter
    Posts
    584
    Rep Power
    0

    Default

    Quote Originally Posted by Babkock View Post
    I'm learning LUA and I think it's much easier to learn than C/C++.
    I'd have to disagree with that. The syntax in LUA didn't impress me at all.
    In my opinion, C++ is far better than LUA, both in features and structure.

    And I personally think C++ is easier to learn than LUA. But that's just me.

  5. #5
    mootjeuh's Avatar
    mootjeuh is offline -Hacks Neophyte
    Join Date
    Jun 2010
    Posts
    87
    Rep Power
    9

    Default

    I think that the only advantages that Lua has over C are, table manipulation, and that slightly easier syntax.
    But I'd go with C in a second.

  6. #6
    Oby1Chick is offline -Hacks Newbie
    Join Date
    Jul 2010
    Posts
    24
    Rep Power
    0

    Default

    Well, LUA is an interpreted language, while C and C++ are compiled languages.
    LUA is slower than C/C++ because it will take more time to the processor to convert your human logic to a low-level architecture pipeline.
    C and C++ will be faster because they don't have no much difference with assembly language (At least less than LUA). However, LUA is an easier language to learn and is still able to do great things.

    To be able to do amazing things in LUA, you would need to make a specified LUA interpretor for each of your projects. This can be proven with Fresh Engine :
    http://www.youtube.com/watch?v=TdTbZaLK_48

    This game is coded in LUA. But they made a specified LUA interpretor, that uses hardware acceleration is 3D-oriented.
    Anyway, I recommend you to start by LUA in order to learn programming basics and then to use C/C++ when you will need more speed or just more functions.
    Good luck !

  7. #7
    Organized_Chaos's Avatar
    Organized_Chaos is offline Senior Member -Hacks Titan
    Join Date
    May 2008
    Posts
    4,768
    Rep Power
    53962

    Default

    Wow, I started this thread 6 months ago... lol

    Long ago I started learning LUA. I didn't like how I had to have Lua Player to use my homebrew stuff. So I started learning C.

  8. #8
    w00tguy123 is offline -Hacks Newbie
    Join Date
    Aug 2010
    Posts
    8
    Rep Power
    0

    Default

    Are there any active lua forums anymore? So far this is the most active one I could find and it seems pretty dead.

  9. #9
    10$man's Avatar
    10$man is offline Programmer -Hacks Smarty
    Join Date
    Jun 2010
    Posts
    100
    Rep Power
    9

    Default

    Quote Originally Posted by w00tguy123 View Post
    Are there any active lua forums anymore? So far this is the most active one I could find and it seems pretty dead.
    Not alot of people use lua anymore... I feel like the last person still on it. you might try forums.luaplayer.org Thats were i go. the people there are very helpful!
    My PSPz: PSP 2000 5.00 m33-4, PSP 1000 GEN d3

    Group Projects: Game (unannounced)

    personal Projects: Shotgun fun fun psp, Learning exploiting

  10. #10
    w00tguy123 is offline -Hacks Newbie
    Join Date
    Aug 2010
    Posts
    8
    Rep Power
    0

    Default

    ah, yes! I can't believe I never checked the forums of the actual luaplayer website Yea it seems like a lot of other forums had their lua help forums die in the past months. I still love coding in lua because development goes so fast. Every time I try C/C++ I get something simple done in a couple of days and then realize I could have made a playable lua game in that time.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •