[ Index ] [ as / cr ] [ dev / lua ] [ meta ]

/lua/ - Lua programming

Metatables for president

[ ]

* required field

Please read the [Rules] and [FAQ] before posting.


get that creepy shit out of here spambots i am sick of deleting it all the time


[Catalog] [Archive] [Refresh]
File: Love-game-logo-256x256.png (12 KB, 256x256)
Let's get this party started! Please read the rules before posting, etc.
File: 1452802415531.png (127 KB, 497x448)
>>1
>Services you should use
Throw your code on hastebin.com or gist.github.com or nobody will help you
Use GitHub for things that need to last more than a short while. No bitching.

>Useful (free!) programs
Blender - blender.org
Krita - krita.org
Atom - atom.io

>Chat!
#love on irc.oftc.net. If you aren't there, we're already laughing at you behind your back and talking shit about your waifu.
According to some, Zerobrane is also a pretty great Lua IDE. Check it out too!
/love/ -> /lua/

enjoy your newfound freedoms

File: HURRICANE HELLSTORRRRRRRM.png (129 KB, 976x752)
i'm making a game

if anyone thinks they can contribute to making this game, let me know, it's all hands on deck

if you want to know more information i can also talk about that
3 posts and 0 files omitted. Click here to view.
>>15
use >>'s, it makes tracking conversations easier.
>>15
Whatever you want to tell us! What is the game about? What genre? How do you learn more about joining the team or contributing?
File: 1452577157928.jpg (9 KB, 480x320)
>>14
>>19
don't do that.
>>17

well the entire game's plot is actually a lie at the end, but the main goal is to stop these motherfuckers called "glitch kings" since the game is actually a VR simulation (but the main character doesn't know that), so he knows nothing about what's going on

it's a platformer but guess what there's some actual effort put into it and there's gonna be something for everyone:
>you can explore the levels to find all kinds of goodies, such as power packs to restore HP in a pinch, chaos orbs that can power you up to keep the pace going and the action awesome, and lots of other stuff
>you can head into champion halls to learn more about the environment around you and why you're here
>the game's non-linear and encourages replayability in order to keep the experience light, fun, and jam-packed with radicality
>dat art though

as for joining the team we run an irc channel on irc.oftc.net #rodeo, or just shoot me an email at admin@nekuzenteam.org if you have any personal questions at the moment, etc
Expression of Ly 6D in ML cells, a ML cell marker, was also rescued upon TAM treatment <a href=https://fastpriligy.top/>priligy (dapoxetine)</a>

File: 1740032766243281.gif (37 KB, 256x256)
Всем привет :I

File: 2acbc2a839b032f6.png (274 KB, 1200x1600)
What brings you to Lua? Why do you like, dislike, or are somewhere in between on Lua?

I used to hate Lua when I was a kid. I thought it was confusing and meaningless because I never knew how to RTFM. After touching it again the past year, I have made a complete 180 and Lua may just be my favorite and most experienced language now.

I find that Lua's simplicity offers great freedom in the things you can do. The table structure allows so much depth and complexity with zero effort on the developer's part. It can be an array, a dictionary, an object, a pointer, a memory management system, all of those at once and even then a meaningful value in itself. It's C-like in its ubiquity yet safe as though it were specifically built to be all of those (which, for all I know, it may have been).
The use of truth value makes conditionals so clean and straightforward compared to (inferior) languages that demand explicit boolean conversion, not to mention the power of the logical operators with the power to condense a function into a single statement.
Lua's freedom with functions itself is wonderful. The Lua way of nullable/default arguments is straightforward yet nonrestrictive. Being able to override Lua functions so easily gives so much flexibility and power that other scripting languages would never dare to try. Having multiple return values handled so simply allows even more flexibility within a single function. Lua's closures then close this input-process-output masterpiece by providing a completely unlimited access to any above scope's variables, with so many uses, it'd be impossible to name them all.
And on top of all this, and more that I won't mention for the sake of brevity, Lua is fast. LuaJIT in particular is very fast, and many Lua-derived languages try to be faster while maintaining Lua's beauty (although, in my opinion, everything besides pure Lua is simply disfigurement).

So, in short, I guess this is a dumb löve letter to Lua. Let's all löve Lua.

And don't forget to post why you löve Lua, too.
1 post and 0 files omitted. Click here to view.
File: photo_2023-04-06_11-11-09.jpg (6 KB, 227x195)
Looks faster than, say, python.
I also found myself in need of an interpreted language other than, say, perl or python or shell, so here i am.
Also, why is this imageboard sooooo slooooow?
Lua is compact, very fast and you can run it everywhere.
bad sides of Lua are:
1) no modern libs/frameworks
2) stdlib is trash (I came from JS, and Lua just doesn't have this rich stdlib functions like in JS)
3) no adequate community count (nobody will help you with smth)
>>543
on the other hand you can actually memorize the actual entirety of what's in the lua stdlib in detail pretty easily
lua just has a very powerful syntax, but using it is more like an occasion thing for games.

File: minecraft-bgpattern.png (38 KB, 1080x1080)
any MODERN ui framework for love2d? I sick of loveframes so much, but I can't find any framework that would be ok for my project (mmorpg)
just make your own

File: pepethink.png (52 KB, 860x563)
Has anyone here used constants from Lua 5.4 in a real project yet, or not b/c of compatibility with 5.3?
never even considered it, but it'd be off the table anyways since i use luajit.

usually i end up getting constants (as far as i'm concerned) anyways from haxe, but then that's not really about lua anymore
>>402
When I first saw them I was really happy but I have not used them yet as I would prefer my code to still run on 5.3.
I used to use while deving for Playdate.

File: Screen Shot 2022-09-02 at(...).png (221 KB, 1064x630)
Building a full stack app if anyone is interested to collaborate. I come from a python/javascript background and picked Lua a couple of weeks ago and absolutely love it.

Don't know what to build though but I finally have a good foundation with basic crud functionallity (todo). There is not a lot on how to make Lapis purely for API But I think I got it.

Also, what should the name of this stack be? Also dockerizing everything
>>373
join us on the lapis discord if you'd like to talk more about lapis!

https://discord.gg/nJ8vaHVd

lapis is very good at being a json restful api server
>>374
Ahhh I think I joined that the first time I was reading the docs on Lapis. Will introduce myself on Lapis channel
>>374
Discord is harmful!
https://stallman.org/discord.html

File: extrasexy.png (20 KB, 600x450)
Ok so I hate javascript so lets all revolt against it please also dhar mann is my secret lover
that's the spirit
great, who wants to start?

File: Screen Shot 2023-01-01 at(...).png (114 KB, 262x282)
ok so javascript sucks we need to go march to mark Zuckerberg tell him to destroy react.js and then use Lua for everything and then take over the word :)
sir this is a wendys
what a dream, but we need to get rid of python first

File: 20210222_010941.jpg (16 KB, 559x423)
Like I look at the source code of this proj and oh wow I better start learning OOP so that my project isnt garbage. Ive heard metatables are hard. Is it true?
metatables aren't that hard really and you don't have to think about them for a pretty long time. most of the time even when you do need it you're just setting __call for a constructor and __index to another table though to give you a class prototype

oop is also kinda beside the point though (basic classes != oop) and not correlated with good code (it is correlated with over-engineered bullshit though)

most of the relevant stuff for organizing code is just basic lua syntax sugar, like being able to write function some_table:whatever() and it passes self automatically if you also call with :whatever()
>>193
This is a really wise explanation.

[1] [2] [3] [Catalog] [Archive]
[ Index ] [ as / cr ] [ dev / lua ] [ meta ]