Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nah, lua kinda sucks. Great if its all you have, but has some quirks I really dislike.
-
@Demolishun all I've ever seen it used for was having something relatively simple embedded into another larger systems. I think it's frequently used for modding games or so.
But yeah, it's kind of ... Meh. -
@Ranchonyx I use it a lot in modded Minecraft. I don't like the indexing starts at 1. I also don't like how cumbersome their data structures are. But for short scripts to automate stuff in game it is great. I would actually prefer embedded JS. I do like that Lua has kinda become a standard modding interface for games. It really rocks in that department. You don't have to learn some new other scripting language.
-
@Demolishun Accurate. In ... Was it OpenComputers or Computercraft? Anyway, it's good fun I reckon, but I'd really like to have a node.js like embedded thingamabob in Minecraft. Lol. Fantasies
-
@Ranchonyx I have mostly played with ComputerCraft and its variants. I am not sure what OpenComputers has. There was talk on the ComputerCraft channels (don't remember where) about making a JS variant. The problem is they would need to rewrite all the code for the Lua operating system they built in game. At least if they did it the same way as the Lua stuff.
-
@Demolishun Yep. I was just fantasizing.
But it'd be kinda cool tho, no?
Just set up a small express-like server and easily communicate from one place to another. Nifty. -
@Ranchonyx they have a web library for lua. You can actually upload and download programs from pastebin this way. This is in the ComputerCraft mod that they have this library. Not sure what lua has out of the box. It might be what they are using.
-
@Demolishun factorio has C++ as the core and uses lua to add all content and everything, just saying
All programming languages are equal.
Some are more equal than others though.
random