[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]

Is Lua a meme script language or is it worth picking up?

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: 67
Thread images: 8

File: Lua-logo-nolabel.svg.png (72KB, 1200x1200px) Image search: [Google]
Lua-logo-nolabel.svg.png
72KB, 1200x1200px
Is Lua a meme script language or is it worth picking up?
>>
>>61369314
It's a meme that isn't funny
>>
it's a cute language
>>
>>61369314
Huge fucking meme.
Pick up Python or something actually useful.
>>
>>61369314
fuck off lua is mine, go away.
>>
File: emilia3.jpg (179KB, 781x1100px) Image search: [Google]
emilia3.jpg
179KB, 781x1100px
its less a meme than python and other script langauges
Lua is worth learning over most other script languages
>>
i have never programmed and even i understand some parts of these scripts and edit on them. pretty good to be honest. it could be the english of programming languages.
>>
>>61369314
Depends what you do.

Lua has a lot of uses but if you don't know then don't learn it.
>>
>>61369314

If you want to make Gmod mods, yes
>>
>>61369314
It's a fucking meme.
>>
>>61369314
it's a really good embedded scripting language
luajit is really nice too
>>
only good for powder toy and gmod plugins
>>
good meme
>>
>>61369314
It's pretty nice.

Easy to learn because it's a rather small language.
It has LuaJit which is really good. Usually just as fast as Java or better.
It interacts nicely with C.
>>
Tcl > Lua
>>
>>61369314
>worth picking up
Need an embedded interpreter for a simple language? Then yes, otherwise no.
>>
it's good for WoW addons
>>
>>61369314
It's a good language design, too bad it doesn't have as many library bindings as Python.
>>
>>61369314
GTFO out of 4chan Hardik.
>>
File: standards.png (24KB, 500x283px) Image search: [Google]
standards.png
24KB, 500x283px
>>61369314
This picture explains why Lua exists.

That said, Lua is used by Awesome WM, which is kind of good. :)
>>
>>61369416
>Python
Brainlet spotted
Lua is for scripting WHILE embedded into another language. Python is too bloated and terrible to do this.

Lua is fine Tbh it's only flaw is that it's not a lisp. Also metatables.
>>
I was planning to use it to make games with Löve, worth it in that case?
>>
>>61371688
Lua is not a standard.
>>
>>61369432
Sick bait dude
>>
>>61371976
>arrays start at 1
>>
>>61369314
I learnt it in a day to program cards for my chinese cartoon cardgame

I could only do it because I was totally consumed by my autistic pursuit of children's cardgames, it's not comparatively easy
>>
lua + ffi

it is happiness for me but maybe not for you
>>
>>61369314
If you're just looking to learn a scripting language, Lua isn't the most useful choice.

It doesn't seem like a bad language, though.
>>
>>61371688
>This picture explains why Lua exists.
The alternatives then were Tcl, early JS and ad hoc stuff like elisp.
>>
>>61373355
This. Lua have the easiest and best FFI of any other interpreter or compiler. It's also a pretty language syntactically talking.
>>
>>61369314
I stopped embedding languages years ago.

Now I just create sub-processes for the scripting language interpreter and comunicate both via zeromq.
>>
I use Lua for scripting in Roblox :3
>>
>arrays start at 1
other than that it's perfect and I would learn it
>>
>>61370348
True enough.
>>
>>61374340
>no sandboxing
>>
File: 00116.gif (42KB, 650x650px) Image search: [Google]
00116.gif
42KB, 650x650px
>>61374340
As long as you still offer a proper plugin API...
>>
>>61369314
I prefer mruby, at least it has been audited.
>>
>https://www.lua.org/pil/1.2.html
>Global variables do not need declarations. You simply assign a value to a global variable to create it. It is not an error to access a non-initialized variable; you just get the special value nil as the result

I'm struggling to think of a more retarded feature I've heard of in a serious language.
>>
>>61375961
>I'm struggling to think of a more retarded feature I've heard of in a serious language.
How about:
>almost any dynamic scripting language
>All kinds of variables do not need declarations. If you're lucky we have some opt-in strict mode.
>>
>>61369314
if you're working with C, yes.
if you're an autistic Garry's Mod player, also yes.
if anything else, no the language is shit use something else.
>>
it's got it's handy little uses. anybody dismissing it outright probably hasn't even checked it out. I find it particularly handy because nginx can work with custom lua modules. that should be reason enough for somebody to check it out in todays day and age.
>>
I use lua daily because we use Kaseya.

Fuck Kaseya, I think every sysadmin can agree. Even stock nagios is leagues ahead. If this job didn't pay so good i'd of quit already.
>>
>>61369432
Gmod is Lua . Enough said
>>
>>61372601
I'd say so. I've had fun with the combination. LÖVE does just enough in my opinion and Lua is a lot of fun too. Try it out, see if you're compatible.

I've also used C++ with SFML, Python with pyglet, JavaScript with Crafty and Unity with C#.
>>
>>61369314
What's to pick up? Takes literally 15 minutes to have a working knowledge if you know Python, which you already should if you're even considering a near-useless language like Lua.
>>
>>61371976
You never used LISP as an embedded language, you're just parroting memes from the internet.
I don't even think you have ever touched a LISP in your short life
>>
>>61377432
>embedded Lisp
you mean lisp machines from the 80's? I doubt you've used those.
there isn't any embedded Lisp dawg. It's an ANSI C lisp implementation at best
>>
>>61377451
>lisp machines when the topic is obviously embedded scripting languages and not scripting languages on some faggotron micro controller embedded boards
>>
>>61369314
literally use python instead
do not ever consider using lua for anything
>>
>>61371976
Metamethods make the language livable you simpleton
>>
>>61377451
no he's talking about guile, obviously
>>
>>61375961
t. anal insecure staticbigot
>>
>>61371688
nah, this applies to guile tho, which might actually have enough man power to actually deliver on meeting everyone's use cases

it already has emacsLisp and Lua compatability layers that work decent from what I hear
>>
File: lua.png (13KB, 310x100px) Image search: [Google]
lua.png
13KB, 310x100px
>>61369314
Only time I've ever used it.
>>
>>61371688
Lua was started in 1993. Javascript wasn't yet a twinkle in Eich's eye. Tcl was tried and deemed unsatisfactory:

>However, Tcl had unfamiliar syntax, did not offer good support for data description, and ran only on Unix platforms.
>>
It's good for embedding in other programs.
>>
File: luacap1.jpg (62KB, 500x505px) Image search: [Google]
luacap1.jpg
62KB, 500x505px
>>61376439
Roblox is Lua . Enough said
>>
>>61374491
wanna online date :33
>>
>>61374522
This. Literally the only thing I don't like about the language
>>
it's a good language for easy embedding within another piece of software. It's C/C++ interface is awful though
>>
>>61373302
That's the best feature of lua

Lua has comfiest syntax and all the bad quirks turn out to be no problem in the end.
>>
File: 1485043804180.jpg (29KB, 400x400px) Image search: [Google]
1485043804180.jpg
29KB, 400x400px
>>61384816
>it's a feature
>>
>>61383472
>It's C/C++ interface is awful though
Seriously? That's a big selling point for Lua
>>
>>61372967
anime forum
>>
>>61384984
He's half right, though.

Compared to CPython and for a C library it might be a good API but there is always room for more metaprogramming, like AngelScript and ChaiScript do in C++ or whatever is possible in languages with even better metaprogramming.
That's why I look forward to Jai, because it has the ultimate metaprogramming feature which allows it to just annotate a function to be used in a scripting language and the metaprogram figures out the rest.
>>
>>61385741
Jai is really well thought out,
but I can't wait for it to come out one day, which is why I just roll with C style C++ and probably Lua for scripting.
Thread posts: 67
Thread images: 8


[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.