[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Explain Lua to me. Is it supposed to be better Perl? Where/when

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 14
Thread images: 2

File: lua.gif (5KB, 256x255px) Image search: [Google]
lua.gif
5KB, 256x255px
Explain Lua to me. Is it supposed to be better Perl? Where/when to use it?
>>
>>60738214
It's a really simple scripting language. It's good for when you want to make extensions for things.
>>
It is supposed to be an embedded scripting language, so smaller and ofc more readable than Perl. Still I would prefer Tcl, but Lua is more popular.
>>
Bullshit made by brazillian monkeys
>>
>>60738214
Only good for making mods for games like gmod and beamNG, if you want to make money off programming then Lua isn't for you
>>
Lua is easy to implement into other systems, so a lot of games use Lua for scripting. For standalone development it's pretty much useless though.
>>
>>60740373
This. When i used to play transformice you could do mini-games within the game wwith Lua.
>>
>>60739047
>if you want to make money off programming then Lua isn't for you
I beg to differ
>>
>>60740373
>Lua is easy to implement into other systems, so a lot of games use Lua for scripting
Retard asking questions here. Why is it easier to implement? How? Why not use Python?
>>
>>60738214

Lua has website, and I think they host the Lua book as PDF for free there as well.

Better is subjective. Much like a tractor is better than a Ferrari for plowing fields, but not on a race track.

Lua is used normally where full fledged programming language is overkill, and performance is not huge concern.

>>60742143

It's a lightweight programming language.
>>
>>60742143
Very simple language spec and syntax to implement, much like picoscheme. But unlike Lisps (or even Python), slash commands are very easy for normies to use.

Also, Python's whitespace syntax makes it complete and utter bullcrap for using in an in-game command line shell, which is where Lua is usually used.
>>
>>60742143
If you want to embed a programming language, there is a couple of features you may want.
Like multiple vm instances (think multiple tabs, a playground, different privileges, etc.) or restricting the standard library to a safe subset. Python has none of that.
>>
>>60742223
>> But unlike Lisps (or even Python), slash commands are very easy for normies to use.

Because (join channelname) is clearly so much harder to use than /join channelname
>>
>>60738214
it's the mastermind of CloudFlare.
Thread posts: 14
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.