Jump to content

What Language should i choose?


#1
Equal

Equal
  • Members
  • 2 posts
Hi,

im new to leadwerks but not new to programing.

well my question is:

is Lua as powerfull as C++ in leadwerks?
meaning i can create the same things without paying with some kind of efficiency?

Do both give me the same things but only on different ways?

greets Equal

#2
Canardian

Canardian
  • Developer
  • 62 posts
If you don't know coding much, use Lua. It's quite powerful and easy: http://wiki.interfaceware.com/241.html
If you know a lot of coding, use C/C++.
i7 2600kGTX 570 OC16GB XF8 WASD Keyboard
LE 2.53DWS 5.6 Cubase 6.5C/C++Fortran 2008SuperBasic
Official SuperBasic Forum: http://www.siipi.com/forum

#3
Rick

Rick
  • Developer
  • 5,375 posts
In LE2 Lua and the other languages aren't equal. There are a couple things you can't do in Lua simply because Josh hasn't exposed the functionality. So for LE2 you are best off using C++.

In LE3D it "sounds" like every language will have the same functionality LE wise. Josh is putting a lot of energy into Lua in LE3D. He wants it to be a big part of the overall engine, meaning if you want to write once and easily have your game ran on all the supported hardware (all PC platforms & mobile devices) it'll be much easier to accomplish if your project is Lua. It's not that you can't with the other languages, it'll just be easier with Lua.

That being said Lua will never be as fast as C++ in run-time, but sometimes speed isn't everything. It's a balance you have to decide on. I will tell you generally Lua is faster to develop with because you bypass the compile step which often leads to faster transition between coding and testing what you just coded. This development time savings can have a big impact once your project gets so large.
http://leadwerks.wikidot.com/

My Whacky Moles iOS

My Whackky Moles Google Play

"Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness that most frightens us. We ask ourselves, who am I to be brilliant, gorgeous, talented, fabulous? Actually, who are you not to be?"

#4
Equal

Equal
  • Members
  • 2 posts
Thank alot, for the fast and informative awnsers.

The compiling-stpe point got me to pick the Lua.

greets Equal

Edit: 1 more thing, it seems like i am unable to find the API for Lua, i just can find some for c++.
Any links for me?