[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Lua

You are currently reading a thread in /g/ - Technology

Thread replies: 21
Thread images: 3
File: lua.gif (5 KB, 256x255) Image search: [Google]
lua.gif
5 KB, 256x255
Is this a meme?
>>
Probably
>>
I personally dislike the syntax. I like Javascript more.

But Lua is a full, proper language. For example, waifu2x was written in it, using the torch toolkit.
>>
In terms of it being used for game dev, yes.

Problem is though theres a distinct lack of easy to embed scripting languages, so shit like lua gets used. You could of course invent your own but then its no fun when you need to fix problems with it.
>>
I like it. It's my second go-to scripting language (when scheme isn't an option). It's pretty fucking fast and the way everything is built from tables is neat. Maybe check out moonscript too.
>>
File: 1397298470661.jpg (69 KB, 1004x609) Image search: [Google]
1397298470661.jpg
69 KB, 1004x609
>>54319482
>>
File: ss+(2016-05-01+at+02.11.13).png (9 KB, 815x177) Image search: [Google]
ss+(2016-05-01+at+02.11.13).png
9 KB, 815x177
>>54319757
>>
Can't use awesomewm without knowing at least some Lua...
>>
I'm having a hard time learning more advanced stuff like embedding into c++ and best practices.
>>
>>54319806
Well use xmonad then
>>
This thread is a meme.
>>
>>54319550
>Problem is though theres a distinct lack of easy to embed scripting languages
It's not even that, there are zillions out there, just take a look at this inaccurate, incomplete list: http://freegamedev.net/wiki/Scripting#Scripting_languages
Devs are just lazy asswhipes and take the first they find on Gewgle.
>>
Lua doesnt has "switch" or a method to copy table.

but it has a lot of implementations.
lua-users.org/wiki/LuaImplementations
>>
>>54320438
Key phrase is "easy to embed". Also on top of that "does anyone know how this shit works if there's a problem". Also some random guys toy language they made in CS101 doesn't count.
>>
God, I used to use LUA hen working on Roblox and Gmod 9 back when I was like 14?
I'm suprised it's still a thing. What is it even currently used for?
>>
>>54320830
General purpose scripting language. Lots of people use it as an embedded language still. Being able to easily call C code is nice.
>>
>>54319953
>Enjoy your fullscreen games, and videos


oh.
wait
no EWMH support
>>
>>54320814
Those aren't some random CS101 toy languages.
Those are easy to embed languages and half of them were designed for games.
Ironically, Lua is neither.

You have a point on the support side, but Angelscript is well-supported and so is mruby.
>>
>>54319482
it's a good scripting language
>>
What's wrong with it?
>>
>>54321075
At first glance the way it does classes is weird...until you realize that it's tables all the way down and read about how they work.
Thread replies: 21
Thread images: 3

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK