[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: luaa.gif (183 KB, 512x512)
183 KB GIF
Do you like bazillian language?
>>
>>109875412
More like bazedilian language am I right?
>>
File: 1763560840485283.jpg (1.81 MB, 4513x4517)
1.81 MB JPG
>>109875412
>>
File: lnYoCty.png (239 KB, 948x1366)
239 KB PNG
>>109875412
yes
>>
>>109875412
extremely overrated
>>
>>109875447
Lua is an overhated language actually
>>
>>109875434
Whoever sexualizes Lua should be placed against a concrete wall, sedated, and then shot behind the ear with a .22 caliber hollow point.
>>
>>109875491
there's nothing sexual here? it's just cute, no?
>>
>>109875491
>sees cute girl
>immediately thinks of sex
Your problem
>>
>>109875501
>>109875505

You know exactly what you're doing. I won't waste my time reasoning with archonic parasites that wear the face of humans. Fuck you both.
>>
>>109875505
There is no problem.

> Lua chan
SEX
>>
>>109875522
???
get well soon
>>
>>109875546

Extremely weak gaslighting attempt.

I'll be well when you're rotting in the ground. So sick if you lolicon degenerates shitting up every single website you touch and then crying victim when you get called out. Fuck you. If this was the Wild West I'd quick draw your crusty weeb ass.
>>
>>109875568
Lua is old though.
>>
Uh oh melty
>>
>>109875434
>>109875436
>programmers imagining themselves as women
as always
>>
>>109875412
I'm thankful for it because it became the standard videogame modding language and simplified a lot of things related to it but I still think it's "Python, but worse"
>>
>>109875568
literally nothing you said applies to me, i only like men
>>
>>109875638
Based faggot
>>
>>109875412
More like bazinga language!>>109875505
Rapist board sadly
>>
>>109875505
There isn't a single image where she is wearing pants, also the maid costume is sexual.
>>
>>109875632
Python but good you mean
>>109875436
how does Lua-chan feel about her older C-ster?
>>109875491
Nothing wrong with liking cute girls
>>
>>109875412
Please someone do the sneedful and port love2d and lovr to web.
>>
File: flame.png (105 KB, 357x460)
105 KB PNG
Daily reminder the most sophisticated malware was written in Lua.
>>
>>109875758
Wouldn't that be stuxnet?

>>109875600
The programmer isn't pictured, the language is.
>>
>>109875753
https://github.com/Davidobot/love.js
>>
>>109875412
Nobody likes sl polluting huehuehue fags except other retarded sl polluting huehuehue fags and even then its few and far between.
>>
>>109875810
It doesnt work.
>>
>>109875838
It does
source: was using it myself several months ago
>>
>>109875888
Have you tried it with a real game once?
>>
>>109875418
you are not. more like bozollian language
>>
>>109875916
Yes it's easy. If the game targets the wrong LOVE version you can just fix that on a case by case basis. And some features are disabled because they don't make sense for web, so just stub them out. Also use the compatibility mode.
>>
sexo
>>
>>109875933
Maybe I'm a retard. Never could make my games run on it but there are a lot of browser playable games that uses love2d on itchio.
>>
File: 1786642953654965.png (92 KB, 617x313)
92 KB PNG
>>109875412
I'm learning it because some gamedev and networking stuff I've been looking at uses it and once again it reinforces my observation that no good language ever becomes popular.
Just embed a Scheme instead of coming up with nth half-assed scripting language, damn it.
It's better than Python and JS for its intended use cases, but less convenient to use than them.
>>
>>109875412
what do you even do with it outside of video game scripting
>>
>>109876137
pychan needs bigger boobs, and be fatter and more bloated in general
>>
What makes Lua do cute and embedable?
>>
>>109876137
>Don't make scripting languages
You expect 4chan scriptkiddies to write compilers?
>>
>>109876196
learn to read fag
>>
I like it a lot. Everytime I encounter something with some DSL, I just end up thinking "this should really just have been lua".

Using lua as the config language is also just the objectively best way to handle configs.
>>
>>109876556
Learn to be less gay fag
>>
File: 1769292843913226.jpg (44 KB, 460x460)
44 KB JPG
I used to mess around with lua and love2d years ago, now I learned C and made a little game with it, it was a lot of fun and I want to make another. I think integrating lua with C and using both would be interesting, but I don't really know what for, which parts should I use lua for. Anyone here has done something like it?
>>
>>109875412
No I only like scala
>>
>>109876887
The classic C+Lua combo is to write the engine and rendering code in C, and then use Lua for gameplay scripting (expose primitives to it like creating entities and changing game state flags and such)
This is the way Lua was meant to be used
>>
>>109875568
Are you hiding skeletons in your closet? It's a tale as old as time when it comes to harassing lolicons
>>
>>109876137
>some gamedev and networking stuff
just say roblox
>>
>>109877375
This is a PUC Lua thread, fuck off.
>>
>>109875436
>>109875434
Is Lua-chan Catholic?
>>
>>109875412
No. Lua sucks
>>
>>109875412
Portuguese? I'm indifferent to it.
>>
>>109879399
NO. PICK LEFT OR RIGHT GOY
>>
>>109877679
Yes, only oral and anal until marriage.
>>
>>109875455
This, I've never seen more hate for a language thats as unfounded as the hate for Lua. It's the only embedded language worth using.
>>
would be perfect if not for the 1 based indexing
>>
>>109880396
It's a non-issue
1 based indexing is possibly one of the biggest programming midwit filters of all time
>>
>>109880435
I just prefer it to match the data offset, I'm not saying that it's a big issue however it's something to remember when coming from most other languages
>>
>>109880557
Lua tables are mixed value key/value pair dictionaries with no fixed size or offset, and the array component is an implementation detail that isn't in the spec.
>>
>>109880435
I tend to agree with you, however Lua is probably the last language I would think such a design decision makes sense. Lua was conceived to be inserted into C code so of all the languages it is the one I would expect to follow C's conventions closely.
>>
>>109875412
>>109876937
What fun projects do you guys recommend to learn C and Lua simultaneously?
>>
how's openresty? i want to check it out.
>>
>>109882478
Seconding this
>>
>>109882478
a simple x11 window manager would be cool
>>
scripting languages aren’t really worth using. they’re for people who don’t know how to program and for sandboxing and that’s about it.
>>
>>109882478

Write a program in C, compile it like a library and then orchestrate it from Lua.
>>
>>109882478
Don't
>>
>>109883690
Whyn't?
>>
>>109883739
Lua nigger and C sucks
>>
>>109883744
Proper English please.
>>
>>109883744

Respond in English instead of 4Chan brainrot please.
>>
>>109883757
jinx!
>>
>>109883219
They're for runtime configuration and scripting of a pre-existing compiled program, idiot nocoder.
>>
>>109883765

You can easily do those in C unless you're talking about orchestrating C functions from Lua... which can still be done in C but Lua is actually slightly easier by that point.
>>
>>109883782
What do you do when the program is already compiled and you need to extend it somehow?
>>
>>109883797

Then you'e designed the program inefficiently, you should be easily able to recomp while maintaining a consistent API with strategy, facade and factory (if OOP) patterns doing the heavy lifting, the implementation/definitions should be broken up in to smaller files for faster and more modular recomp.

Don't get me wrong bro I love Lua a lot but I do worry that some devs rely on it too much as a crutch.
>>
>>1098830
Hyprland uses Lua now. You could contribute to the project.
>>
>>109883765
if you’re using a 30k loc dependency for “runtime configuration” you are deranged. you might as well wrap your program in electron because that’s how much of a niggerlicious retard you’re being


and “scripting” is worse than hot reloading by every metric unless again, you explicitly need sandboxing
>>
>>109884177

I agree but you are absolutely insufferable.
>>
>>109883797
Then you'd still need to recompile it to use the script unless you randomly save a path for a script that might be used which in turn means you just badly designed your program.
>>
>>109882897
It's good, for backend web dev try Lapis
>>
>>109884244
But sometimes you do want to add some extra customization without needing to recompile. Such as creating plugins, mods, or really flexible settings.
For example I like using lua scripts to make easily configurable state machines for my devices, particularly mice and game controllers. Really lets you step out of the boundaries of simple remappers.
>>
My favorite chan platform was written in Lua. I have modified it to be hacker proof.
>>
When I was still a teen and knew zero things about programming, I downloaded a Minecraft mod that added computers that ran Lua scripts, so I basically bruteforced myself to learn programming just for a game.
I never use it nowadays but it holds a small place in my heart.
>>
>>109883219
Lisp is an interpreted language and was used to create operating system, older than C.
You're a retard and a zoomer.
>>
>>109885089
Lapis chan is cool
I hope you open sourced your version
>>
File: HOqcyFCWIAIMXyD.jpg (244 KB, 900x1200)
244 KB JPG
many great creators take inspo from bazil
>>
>>109885110
ComputerCraft is real gangster shit
There's still a version of it available today https://tweaked.cc
>>
>>109876137
>Just embed a Scheme instead of coming up with nth half-assed scripting language
Scheme is a half-assed scripting language
>>
File: 1788066324953820.png (80 KB, 675x681)
80 KB PNG
>>109885174
>>
>>109884177
use assembly if you care about performance, fucktard
C is still abstracted
>>
>>109884177
LoC is a niggerlicious way to measure the size of a library, comparing it to electron is disingenuous since Lua only adds 100kb-200kb to your binary
>>
>>109885166
Its pico and I will eventually release it once I can get in touch with the original author and get them to put a license in it.
>>
>>109885210
you're talking to a retard
he's seething at an embedded language designed to make mods/plugins, comparing it to compiled language, which makes no fucking sense
embedded and compiled languages serve different purpose
he's typing this shit while his compiled web browser uses extension written in js, using his logic then he should write the extension in C and recompile the web browser every time he adds new extensions
>>
>>109885210
>>109885292
I was pointing out what a bad idea it is to make an entire scripting language a hard dependency for a config parser.

>200kb
it's not about size (though size correlates), it's about onloading additional complexity needlessly. you can count semicolors if that makes you feel better instead. the point is if you just wrote the thing that minimally does what you need would be more like 5kib max instead of 200

the rest of this is is just strawmanning and being disingenuous, I explicitly acknowledged the need for sandboxing.

>>109885195
assembly isn't portable and you don't need to use assembly to not pessimize your software for no good reason



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.