Navigate Select ESC Close

Roblox Creates React In Lua

2024-06-22 Science & Technology
97.3k
3.1k
315
ThePrimeTime
ThePrimeTime
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Recorded live on twitch, GET IN ### Reviewed Tweet https://x.com/zack_overflow/status/1803612884196532432 By: https://x.com/zack_overflow ### My Stream https://twitch.tv/ThePrimeagen ### Best Way To Support Me Become a backend engineer. Its my favorite site https://boot.dev/?promo=PRIMEYT This is also the best way to support me is to support yourself becoming a better backend engineer. MY MAIN YT CHANNEL: Has well edited engineering videos https://youtube.com/ThePrimeagen Discord https://discord.gg/ThePrimeagen Have something for me to read or react to?: https://www.reddit.com/r/ThePrimeagenReact/ Kinesis Advantage 360: https://bit.ly/Prime-Kinesis Get production ready SQLite with Turso: https://turso.tech/deeznuts

Top Comments (10)

@glauco_rocha 2024-06-22

HERE WE GO, LADS: LUA MENTIONED

309 6 replies
@mxruben81 2024-06-23

Roblox actually did this a long time ago. It's mainly used to write ui code in their engine. Afaik they aren't actually using lua for their website? Also, fun fact, their fork of lua (called luau) has a type system and some other goodies such as compound assignment and continue statements in loops. It does this while still staying simple. Best part is that it's open source and you can use it freely (although their c API documentation is lacking). I haven't wanted to go back to vanilla lua since.

224 10 replies
@griffitaj 2024-06-22

You can learn Lua in less than a day. It has the bare minimal set of semantics needed for a language. One collection type, tables. Strings as atoms (think Erlang), so they are blazingly fast to compare.

64 7 replies
@omri9325 2024-06-22

You better hope the cricket won't DMCA this video, he seems determined.

57 3 replies
@aarond309 2024-06-22

Lua’s length operator is actually even *more special* than you think. #tbl returns the length of the table *only* when the table is a “sequence” (ie contains sequential keys only). If any keys are non-sequential (think nils or strings), the result of #tbl is undefined and up to implementations.

50 6 replies
@bharatdoesstuff 2024-06-22

Redis has embedded Lua, which lets you write Lua scripts that are atomic. Fun language to work with.

28 1 replies
@fcktyshawn 2024-06-30

i recommend everyone learn roblox lua. the best introduction to programming for kids. i started with roblox lua in 6th grade and now i'm a 22 computer technician and hobbyist programmer.

22 3 replies
@berkormanli 2024-06-27

As a part-time fun based Lua developer, there is a beautiful thing in Lua called Metatable and Metamethods. Since Lua lacks classes, these two can mimic some of object oriented behavior. You can easily change a table's behavior by using those metamethods. If you want to create an Array class, you would change the _newindex metamethod (this will be called when there is an assignment, _index will be called when there is an access.) to count its length and also set it with rawset() method. You can also change the behavior of the length operator (#). Using Lua made me furious because it lacks so many things like data structures and some algorithms/functionality you would consider a standard but later on after spending some time trying to implement things, this made me actually realize how much someone can forget the basics because using a library is a lot easier. It is a crazy small and core language that can be a lot more by using what it provides.

19
@triducal 2024-06-29

as a roblox dev react-lua is extremely useful for creating declaritive ui functionality and makes it alot easier to put together large projects.

18
@MatiasKiviniemi 2024-06-22

Great thing about Lua is that there's zero time wasted on architectual formalities, you just start coding. And since there's really no bad ways of solving something, results are never too horrible. Good developers make great code (as always), average coders make ok code and even bad ones make better code than in more complex environments with more options to screw yourself. I've done multiple-inheritance OO in lua, had every game object contained a Components-table where you could inject any game feature. Game loop iterated through those and class methods just had object as first param.

13

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot