DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
JavaCode7
JavaCode7

Posted on • Updated on

Lua v Ruby

Lua. My 5th favourite language (after python, typescript, go and javascript). While not that powerful, it's the language of choice for roblox and some 2D gamedevs (via Love2D). Coded in C with easily readable syntax and good for beginners. Lua is going to put up a good fight.

Ruby. Not that popular in gamedev but useful in webdev (via ruby on rails) it is the language that just so happens to power DEV! Much more powerful than lua at the expense of speed and effectiveness as a first programming language for absolute beginners.

Lua

Let's see what we have here:

  • βœ” Β Fast
  • βœ” Β Game engine support
  • βœ” Β Simple syntax
  • βœ” Β Dynamically typed
  • βœ” Β Compiled
  • ❌ Not very powerful
  • ❌ Compiles to .out files unless you use srlua
  • ❌ Have to download the package manager.

Ruby

And rivalling lua:

  • ❌ Not as fast as lua
  • βœ” Β Game engine support (Ruby2D)
  • βœ” Β Simple syntax
  • βœ” Β Dynamically typed
  • βœ” Β Interpreted
  • ❌ Very powerful
  • βœ” Β Webdev
  • βœ” Β Built in package manager

And there we have it! Ruby wins by 1 point. This brings me to the end of my article but I would love to hear what you think! Comment down below to share your thoughts πŸ’¬.

Oldest comments (3)

Collapse
 
freakcdev297 profile image
FreakCdev • Edited on

I don't really know what's "not powerful" or "powerful" ?

Besides, I thought Lua came with a package manager depending where you're downloading it? Mine came with... pretty much everything.

Collapse
 
javacode7 profile image
JavaCode7 Author

The "power" of programming language is its functionality.

Collapse
 
javacode7 profile image
JavaCode7 Author

I have 2. One from Lua for windows and another from MinGW. Neither came with Rocks or any other package manager.

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›