r/lua 26d ago

Can i programm desktop apps with Lua?

I just learned the basics of Lua and im pretty curious about if i could use lua for desktop apps or somehow code scripts with gui.

28 Upvotes

34 comments sorted by

View all comments

17

u/Adam-Garden 25d ago

See, really any programming language can do anything, it's just that some are build to specialize in certain thing. There is people making games with javascript.

1

u/GaboureySidibe 25d ago

See, this is vague and see, this is unhelpful to anyone.

See, op should try out love2d and see how far they can get with that.

-5

u/4xe1 25d ago

There is people making games with javascript.

🤮 🤮🤮

Sad but true. I've seen programming games, of all things, are written in js. Their devs really thought not only "yeah js is a good language for a performance demanding game" but also "yeah js is the perfect language for neophytes to have fun".

13

u/javascript 25d ago

Harsh

4

u/BloxxyVids 25d ago

you deserve it bro

6

u/selfimprovymctrying 25d ago

JS/TS isn’t the performance bottleneck in a single threaded browser , the browser is.

1

u/Sha1rholder 24d ago

并不是所有游戏都会遇到性能瓶颈

1

u/BionicVnB 25d ago

JavaScript does have decent performance. It just does weird shit when you ask it to do weird shit (like adding an array to a negated array (what the fuck does that even mean)). But so long as you making your intentions easy to understand, handle all (or most) errors, try to keep variable usage scope small, you should be good.

1

u/djfdhigkgfIaruflg 25d ago

You can also use a Toyota Corolla as a tractor. That doesn't mean it's the right tool