Why would anyone use Lua over python or C?

Why would anyone use Lua over python or C?

Attached: 1496757793100.jpg (573x892, 113K)

Other urls found in this thread:

en.wikipedia.org/wiki/List_of_applications_using_Lua
twitter.com/NSFWRedditGif

he likes it?

Less work than C.
Faster than Python.

That or you want to embed it into another program.

Came here to say that, and also it has a comfier syntax than both.

isn't that a roblox language?

Its the wow language

>vidya language
No wonder its trash

Its easier (and smaller) than Python to embed as a scripting language into an existing program. That's Lua's main use case, anyway.

Attached: pillua.png (991x387, 131K)

Is breddy gud. :-DDD

>over python
it's loads smaller to embed
>over c
you're supposed to add c bindings to lua, its main purpose is as an embedded language
use it to add extensibility or configurability, not to replace c

>you're supposed to add c bindings to lua
If Lua is so fast then why?

Muh games

cute

You use it WITH C, not over.
Python is too fat.

Guile is a better embedded language though.

Lua > everything

Embeddable, fast as fuck (especially with JIT), simple syntax, helpful community, proper coroutines, tons of libraries, and a wide range of use cases.

It's not, because it's lisp

wouldn't you want to use Tcl/Tk with C

Tcl/Tk is almost dead

(((Guile)))

simple lightweight runtime script
have you ever tried embed and slimming down python 3, user?

You can use Lua to program computers in Opencomputers or computerCraft mods for minecraft.

It's also VERY safe to embed. Everything in Lua is sandboxed by default, there's no IO (not even print!) unless you specifically give the script access to it.

why are you using the "uma delicia" of scripting languages?

Lua is good for things c isnt good at. Pairing them is GOAT

*its the WoW GUI language
Everything else is probably c/c++.

I don't get that meme. Where's it from

Roblox games are scripted with some kind of lua API. It's only Lua in basic syntax.

>t. Learned to program because of roblox like 8 years ago

>Roblox games are scripted with some kind of lua API
Which is called Lua.
The "missing part" is called the standard library.

>use
perl

It statically links with C/C++

>array indices begin with 1
HUEHUEHUEHUE

So you have access to the low level apis like system calls?

Shows how little you know. Its used in all sorts of embedded applications. I used it in my last job and it was not in the game industry.

That's exactly what Lua is. A basic syntax, and extra functionality is provided by the program embedding Lua. Roblox Lua is no less Lua than any other use case.

Why should they not?
Hard mode: give a legitimate reason

Maybe once you understand how your computer works it will make sense why starting at 1 is idiotic

As a scripting language its lighter and smaller than Python and easier to implement into another language than C.

/Thread

Maybe once you understand the difference between an interpreter and compiler, you will understand why you are so wrong.

So, jack of all trades and master of none

>Why would anyone use Lua over python or C?
1) Look at that cute butt.
2) strong but also fast by the looks of things
would use

Master of light scripting implementation i would say.
Alot of programs use Lua as a scripting language for addons.
en.wikipedia.org/wiki/List_of_applications_using_Lua

Exactly, this is only a human concept anyway. While the value 0 can be used to optimize comparisons etc.

And its nothing

Can someone expand on "implement into another language". What does it mean to implement a scripting language anyway?
Just writing some kind of parser that compiles into some form of instructions in the native language?

For a naive pipeline, say something like
parse script text -> serialize into array of ops -> process ops array passing arguments to native functions -> do whatever with outputs

I assume in Lua you just import a lib whihc includes its own methods of Parse() etc.

I've never used multiple languages in ways other than through IPC but I assume there's some overlap.

Honestly I've always chosen my languages based on their name. I use Lua, Perl, and Haskell.