Тёмный

Roblox Creates React In Lua 

ThePrimeTime
Подписаться 482 тыс.
Просмотров 63 тыс.
50% 1

Recorded live on twitch, GET IN
Reviewed Tweet
x.com/zack_overflow/status/18...
By: x.com/zack_overflow
My Stream
/ theprimeagen
Best Way To Support Me
Become a backend engineer. Its my favorite site
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
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Kinesis Advantage 360: bit.ly/Prime-Kinesis
Get production ready SQLite with Turso: turso.tech/deeznuts

Наука

Опубликовано:

 

21 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 288   
@hamburger--fries
@hamburger--fries 6 дней назад
My 11 year old son made his own Roblox game with Lua. His game is a fps + puzzles. He got all of his school buddies to play and help him to grow the popularity, and his game passed 1 billion visits/plays. He uses Discord and organizes events, its so trippy to see your kid grow. One thing I noticed is we allowed our kids to play with tablets and Iphones starting at age 1 and quickly grew to PC's. He plays outside daily and has boys come over almost daily to do homework. We tried to allow our kids to make their own choices with a helping hand and I am only seeing wonderful results.
@piusijachi2763
@piusijachi2763 6 дней назад
Congrats man cool kid
@thingsiplay
@thingsiplay 6 дней назад
Beautiful story, besides I don't like giving kids under 6 any smartphones or tablets to play with.
@lifelover69
@lifelover69 6 дней назад
epic, little chad in the making
@stxnw
@stxnw 6 дней назад
@@thingsiplaythats why ur kid aint going places
@thingsiplay
@thingsiplay 6 дней назад
@@stxnw You have no idea what you are talking about.
@mxruben81
@mxruben81 5 дней назад
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.
@BiffBish
@BiffBish 5 дней назад
Luau is great, I’ve written tools for Unreal Engine that help integrate gameplay elements into lua for easier user generated content, their type system is more then enough for 99% of use cases
@v0xl
@v0xl 2 дня назад
the only reason I'm still not using luau in my stuff is that it lacks jit
@mxruben81
@mxruben81 2 дня назад
@@v0xl it actually does have something like jit that they're calling native codegen. From my tests, its performance lands about in the middle between lua and luajit. It does especially good if there is a lot of math involved. The native codegen feature is still pretty new though and they've just started using type info for optimizations so I imagine it'll get a lot faster.
@glauco_rocha
@glauco_rocha 6 дней назад
HERE WE GO, LADS: LUA MENTIONED
@1apostoli
@1apostoli 6 дней назад
BRAZIL MENTIONED BRAZIL MENTIONED
@randerins
@randerins 6 дней назад
LUINHA DO MEU CORASSEUN
@tuthui6253
@tuthui6253 5 дней назад
brazil tangentially mentioned
@thingsiplay
@thingsiplay 4 дня назад
GO MENTIONED
@RenderingUser
@RenderingUser 6 дней назад
man, if only roblox didnt permaban linux as a platform
@realskyquest
@realskyquest 5 дней назад
I feel you bro, the current option is to use waydroid the gapps ofc to not suffer from binary types. But still pc specific games are blocked
@jaydeep-p
@jaydeep-p 4 дня назад
Who is playing roblox on Linux?
@realskyquest
@realskyquest 4 дня назад
@jaydeep-p not sure, there are some people on reddit talking about this. But I don't play on linux
@RenderingUser
@RenderingUser 4 дня назад
@@jaydeep-p I used to play occasionally
@aarond309
@aarond309 6 дней назад
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.
@marcusly3497
@marcusly3497 6 дней назад
Not undefined. It only counts things in the array portion. It uses a binary search, that is why it messes up at non sequential indices
@aarond309
@aarond309 6 дней назад
@@marcusly3497 Apparently this has been better defined since older lua versions; but according to the lua 5.4 Reference Manual Section 3.4.7 (I'd put a link, but RU-vid): "The length operator applied on a table returns a border in that table... a border is any positive integer index present in the table that is followed by an absent index, plus two limit cases: zero, when index 1 is absent; and the maximum value for an integer, when that index is present. Note that keys that are not positive integers do not interfere with borders... When t is not a sequence, #t can return any of its borders. (The exact one depends on details of the internal representation of the table, which in turn can depend on how the table was populated and the memory addresses of its non-numeric keys.)" So, while non-integer keys no longer produce undefined results, when your table has a hole, any one of the values followed by nil are legally allowed to be returned by the length operator. The "array section" and "hash section" are implementation details and are *not* present in the specification.
@isodoubIet
@isodoubIet 5 дней назад
This has to be the worst single feature I've ever seen in any non-joke language
@bharatsnair
@bharatsnair 6 дней назад
Redis has embedded Lua, which lets you write Lua scripts that are atomic. Fun language to work with.
@harleyspeedthrust4013
@harleyspeedthrust4013 5 дней назад
ive seen this in some of our production code at work but I've never had to work with it. lua really is a great embedded scripting language.
@omri9325
@omri9325 6 дней назад
You better hope the cricket won't DMCA this video, he seems determined.
@JanJozefo
@JanJozefo 6 дней назад
Who?
@frost54311
@frost54311 6 дней назад
@@JanJozefo put headphones on, and you'll hear a cricket sound in the background
@JanJozefo
@JanJozefo 6 дней назад
​@@frost54311 lmao I hear it now. I always listen to these on my phone's speakers
@griffitaj
@griffitaj 6 дней назад
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.
@georgerogers1166
@georgerogers1166 6 дней назад
Would be even better if they had both Strings and Symbols.
@amargasaurus5337
@amargasaurus5337 5 дней назад
do remember to remember what things are references and which are values and ints silently floatify if you're not careful those got my noob bottoms in trouble a few times, but it does pack a lot of power in little syntax!
@bullpup1337
@bullpup1337 5 дней назад
sorry, but after reading the lua book for 5.3, I have to say it will take me much longer to become proficient in lua. Its not quite as simple as it seems.
@griffitaj
@griffitaj 4 дня назад
@@bullpup1337 For proficiency with just using lua you only need Chapter 3 of the book + reference for any libraries you are using. I agree that if you want to write lua modules in c it does take some time as each version of the lua API has its own subtleties.
@bullpup1337
@bullpup1337 3 дня назад
@@griffitaj We might be talking about a different book, I mean programming in lua by the inventor (ierusalimschy). Just finished chapter 18 on generators and iterators, and I have not even gotten to coroutines yet. There is a lot more than I thought to the language.
@lolgreek123
@lolgreek123 6 дней назад
It is used to make GUI for Roblox games
@jboss1073
@jboss1073 6 дней назад
WHY NOT TCL? IT IS A THOUSAND BILLION TIMES EASIER!
@criptych
@criptych 6 дней назад
@@jboss1073 That was sarcasm, right? … Right?
@jboss1073
@jboss1073 6 дней назад
@@criptych It depends. Is it possible to take simplifying lessons from Tcl and apply them to the web? The skill level of current programmers who build frameworks seems to suggest otherwise. If it is truly impossible to simply the web as much as Tcl simplified Desktop GUI - if you're telling me Tcl is a one-in-a-quadrillion event in humanity and we will never ever again simplify GUIs as much as Tcl did, then I guess you can take it as sarcasm. Boy, how special Tcl is...
@stefanalecu9532
@stefanalecu9532 6 дней назад
​​@@jboss1073 as much as I love Tcl and I use it for everything that requires quick GUIs and scripts... The team *really* has to get a better theme for Unix. And a lot of tooling to at least try and convince people to give it a shot. It is a great language buried in obscurity (unless you work in EDA or use Expect or Tkinter) Sidenote: it should be possible to straight up port Tk to the web (after all, we can use Emscripten and have the entire language run in the browser, which is lightweight enough to be viable)
@fueledbycoffee583
@fueledbycoffee583 6 дней назад
actually all game logic is written in lua. Both UI and and game logic
@dareisaysneed
@dareisaysneed 6 дней назад
you should implement preemptive coroutines/goroutines in vanilla lua with the debug library
@SamWhitlock
@SamWhitlock 6 дней назад
I've always used Lua as the "embedded scripting language" to coordinate the logic in most of my projects. I have an IRC server that basically does all of the logic in Lua (and it just wires up the message handler pipelines and then calls Lua from C++). I've also used it in a network controller to essentially do a corporate version of Tailscale. Extremely easy to embed (Sol3 is great in C++, though it's getting to be borderline abandonware).
@HyperionStudiosDE
@HyperionStudiosDE 6 дней назад
cursed title
@thingsiplay
@thingsiplay 6 дней назад
i read that as cursed titties
@johnathanrhoades7751
@johnathanrhoades7751 5 дней назад
I’m currently reading the “Programming in Lua” book. It’s interesting for sure. Looking at it for writing a neovim plugin.
@MatiasKiviniemi
@MatiasKiviniemi 6 дней назад
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.
@zoltannyikos7039
@zoltannyikos7039 6 дней назад
You can also embed Ruby either the whole regular version or mruby which is a smaller, easier to use version specifically built for this embedding usecase.
@iddiiddrisu5971
@iddiiddrisu5971 5 дней назад
OMG!!! My embedded systems just got a new frontend. React-lua!!! Let's go!!!
@berkormanli
@berkormanli День назад
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.
@justin4911
@justin4911 3 дня назад
The funny part about Prime's "don't use a DSL, use Lua" is that Roberto Ierusalimschy, the BDFL of Lua, teaches a MOOC focused on creating small languages using Lua.
@petrusboniatus
@petrusboniatus 5 дней назад
You can also embed scheme, with a similar size of Lua.
@St3amPunk
@St3amPunk 5 дней назад
Yo dog, i heard you like Integrated development environments, so we downloaded an integrated development environment to program an integrated development environment so you can program an integrated development environment with my integrated development environment.
@LiveErrors
@LiveErrors 5 дней назад
Shout-out to EmmyLua btw If I'm not mistaken they are the ones who innovated the type checking lsp functionality that SumNeko uses Might be wrong
@palmberry5576
@palmberry5576 3 дня назад
They are the one that made the annotations, but I think the type system is being completely rewritten (and still probably will be too weak to document the cc tweaked api lol)
@brssnkl
@brssnkl 4 дня назад
You can expose native functions to js via JavaScript Interface on both iOS and Android. I think even react native is doing that after so many years. You can do updatable js in iOS/Android in a day as well.
@Nadi_Games
@Nadi_Games 5 дней назад
I've been using lua for almost 20 years: World of Warcraft addons , it's lua 😉 Iirc, it was the 1st time I used it. And Prime is right, lua is a fantastic language. Even the name is cool, and poetic. Lua is not an acronym, it just means moon in portuguese. 🌔
@henningerhenningstone691
@henningerhenningstone691 6 часов назад
Lua is so embeddable that it has risen to the proverbial Doom in "can it run Doom" of programming languages. If there is anything that I can reasonably embed Lua in, I will :D
@lalit10368
@lalit10368 4 дня назад
I had pointed this problem how lua handles length in a PR to harpoon README fix.
@Bloky.
@Bloky. 5 дней назад
QuickJS is just as easy to embed as Lua. Although when you start toying with async you will need an event loop
@Redollarisationz
@Redollarisationz 5 дней назад
"Hey , feeling a bit unsettled after stumbling upon Marblism. Heard it can effortlessly whip up a full stack web app with impeccable codebase. Any thoughts?
@jonatasbaldan
@jonatasbaldan 6 дней назад
Is Lua itself getting updates? The interpreter shows "1994~2012".
@GerardLementec
@GerardLementec 6 дней назад
it is but in all honesty lua 5.1 or luajit are enough and is what is usually used in most projects
@arson5304
@arson5304 6 дней назад
roblox forked their own version of lua and is updating that, it's called luau
@_garicas
@_garicas 6 дней назад
Lua 5.1 was (and still is) the most popular version due all its features and still being really simple, also when LuaJIT was developed, it was based on Lua 5.1 and still is. There's Lua 5.4.6 which release data was 2023-05-02 (in the official Lua website), but people use version 5.1 a lot also to not break compatibility in some cases
@boblol1465
@boblol1465 6 дней назад
lua5.4 exists but lua5.1 and luajit are the most popular versions luajit is based off lua5.1 and includes minor improvements from versions in the future
@Shaar_
@Shaar_ 6 дней назад
use luajit it's the better version for me
@Tony-dp1rl
@Tony-dp1rl 6 дней назад
There are some incredibly profitable services written entirely in LUA. I am not experienced with it, but I know some companies make a lot of money using it.
@sczoot6285
@sczoot6285 6 дней назад
I had to write a PlayDate game in lua and had a great time towards the end
@krumbergify
@krumbergify 6 дней назад
I hate that just like in QBasic any mispelled variables get a default value, nil. Instead of crashing and showing me the bug early the program continous and causes strange side effects :(. However I like Lua:s coroutines and how easy it is to embed it .
@felipheallef
@felipheallef 6 дней назад
Brazil mentioned!
@DanktownBunny
@DanktownBunny 6 дней назад
To bypass the #a problem, Garry's Mod gLua has table.Count(a) that iterates over the table to get the correct amount. My favorite part of lua is the fact that all tables are basically dictionaries, you can shove any data you want into them. Even a function could be a key!
@hallo7053
@hallo7053 3 дня назад
idk that is not really a bypass, you can just use a for loop instead, but in the end imo it does not really matter anyway. I don't think I have ever used mixed dictionary and array in lua
@palmberry5576
@palmberry5576 3 дня назад
@@hallo7053yeah, the most mixing I have ever done would maybe be string | table or false | something
@ardwetha
@ardwetha 5 дней назад
If you are annoyed by 1 base indexing just make a function which adds one.
@dytra_io
@dytra_io 5 дней назад
I think all js developers should learn lua
@sczoot6285
@sczoot6285 6 дней назад
It's not a "1 based indexing" difference it's indexing based off of an index rather than an offset
@isodoubIet
@isodoubIet 5 дней назад
Stop repeating TJ's nonsense. An "index" doesn't start at 1. An index, in sane programming languages, starts at zero. The difference is not between "indexing" and "subscripting", because those are the exact same thing; the difference is between "indexing" and "counting". Tl;dr it _is_ 1-based indexing.
@lwinklly
@lwinklly 6 дней назад
YESSSSSSSSS REACT-LUA GETTING ATTENTION!!!!!!!!!!!!!!!!!!!!!!!!!
@lwinklly
@lwinklly 6 дней назад
Both repos' github stars have doubled/tripled *already*, I don't know what arc this is starting but the part of my brain that has been interested in react-lua since 2021 couldn't be more hyped
@ajnart_
@ajnart_ 5 дней назад
Someone should make a course to teach programming in Roblox where you have to solve problems using code in the game. Would make an excellent class
@ryan_the_dev
@ryan_the_dev 6 дней назад
Typescript for lua incoming.
@jembulkezmaslem5214
@jembulkezmaslem5214 6 дней назад
Well actually it already happened since roblox uses their own modified version of lua called luau. It has types. Can't escape typescript lol.
@zzhabib1
@zzhabib1 6 дней назад
Already exists, roblox-ts is a TypeScript to lua compiler
@RT-.
@RT-. 6 дней назад
@@zzhabib1 Yep and it's used in production by some very big games
@hallo7053
@hallo7053 5 дней назад
yeah but luau is different, they control the full stack unlike ts which is just a transpiler to javascript
@hri7566
@hri7566 6 дней назад
i forced roblox-ts to write code for computercraft instead, it's fairly annoying to work with, but it's better than bare untyped lua
@askplays
@askplays 6 дней назад
thats really cool
@RT-.
@RT-. 6 дней назад
You could write it with types with Luau and use darklua to remove those types
@apexfossa
@apexfossa 6 дней назад
Lua is fun, can make cool scripts with it in roblox
@Gennys
@Gennys 5 дней назад
Prime the first question you asked you just completely sidestep the answer and just started talking about Lua instead of the first question you asked which was how good is JS to Lua as a transliteration step.
@RobertoRenovato
@RobertoRenovato 6 дней назад
The best part of learning Lua is to make Pico-8 games. 😁
@corvoworldbuilding
@corvoworldbuilding 6 дней назад
LUA MENTIONED LET'S GOOOOOOOO!!!!!!
@thingsiplay
@thingsiplay 6 дней назад
GO MENTIONED LET'S RUST
@randerins
@randerins 6 дней назад
​@@thingsiplaywhat
@thingsiplay
@thingsiplay 5 дней назад
@@randerins yes
@VitisCZ
@VitisCZ 5 дней назад
So lua has quantum state it's both an array and a map
@LoFiAxolotl
@LoFiAxolotl 6 дней назад
it's hard to find any video game that doesn't have some cursed Lua in there... so good for Roblox for porting it... will be interesting to see in 10 years where all this Roblox stuff lead the then old enough programmers
@harleyspeedthrust4013
@harleyspeedthrust4013 5 дней назад
roblox has always had some flavor of lua powering their games. roblox has also been around for at least ten years, maybe 15 (I couldn't be bothered to check). so i bet that many of the kids who cut their teeth writing games and scripts for roblox 10 years ago are working in software today
@jorgamund07
@jorgamund07 6 дней назад
I haven't watched the video yet, but that's a banger of a title.
@devcomptrickshots4136
@devcomptrickshots4136 5 дней назад
This is a bit misinformed. First off, Roblox uses luau (not lua), luau is a typed and much more performant lua alternative. The codebases were old, and before GitHub support luau syntax highlighting, and hence they're marked as lua. Secondly, Roblox's frontend is *not* written in luau, these libraries are equivalents to JS libraries for writing games on their platform. The only bit of frontend which uses this is their desktop app (LuaApp). EDIT: I noticed some people ask about typed arrays, and doc comments and a standard library; the luau community has made things for this. Typed arrays are built into luau types, doc comments are powered by moonwave (it's similar to rustdoc, it generates a doc site from comments for you) and lune is a runtime which implements a complete, lightweight, and fast standard library for it.
@lwinklly
@lwinklly 4 дня назад
holy crack, new dev comp wisdom just dropped
@devcomptrickshots4136
@devcomptrickshots4136 2 дня назад
@@lwinklly hi
@KvapuJanjalia
@KvapuJanjalia 6 дней назад
You forgot to mention that Roblox created their own dialect of Lua, named "Luau".
@joeljohansson6097
@joeljohansson6097 5 дней назад
nothing preventing you from making a my_better_table module/abstraction in lua... i made my own switch and class "keywords" to get rid of all metatable handling for example
@dealloc
@dealloc 6 дней назад
5:30 or you can embed a Lisp. But Lua is probably your best bet.
@MarcelRobitaille
@MarcelRobitaille 6 дней назад
micropython is definitely still a thing but I've only ever heard about it in the context of microcontrollers.
@aDaily1222
@aDaily1222 6 дней назад
What does "embedded systems" really mean? lol every one has a diff answer, i would like to know @ThePrimeTime 's definition
@bennythetiger6052
@bennythetiger6052 6 дней назад
I think any system that is specific to a device that is not considered a general purpose computer could be called embedded
@mage3690
@mage3690 6 дней назад
​@@bennythetiger6052I think prime's answer likely includes "device [or environment]" since he sometimes uses "embedded" to mean "embedded into a videogame". But yeah -- "specific to a device that is not considered a general purpose computer" is a pretty good definition, so long as you don't use "Turing machine" as your definition for "general purpose computer".
@aDaily1222
@aDaily1222 5 дней назад
@@bennythetiger6052 i like that one.
@bennythetiger6052
@bennythetiger6052 5 дней назад
@mage3690 I just mean a computer that wasn't made with a highly specific intention, like TVs for streaming videos, headphones for streaming audio, smart hubs for home or car controls, etc.
@thingsiplay
@thingsiplay 6 дней назад
6:50 How is Luas error handling different from Pythons Try..Catch?
@SilentFire08
@SilentFire08 6 дней назад
because you didnt have to use try catch :)
@tranquangthang8897
@tranquangthang8897 6 дней назад
pcall?
@isodoubIet
@isodoubIet 5 дней назад
@@tranquangthang8897 trivial to implement
@isodoubIet
@isodoubIet 5 дней назад
@@tranquangthang8897 trivial to implement that in py
@isodoubIet
@isodoubIet 5 дней назад
very easy to implement pcall in py
@Rugg-qk4pl
@Rugg-qk4pl 6 дней назад
HTML/CSS based UI is so much better than the UI libraries most games engines have built in. So awesome
@XxZeldaxXXxLinkxX
@XxZeldaxXXxLinkxX 5 дней назад
It should be a universal standard at this point. Every other ui system just feels so clunky
@Frostbytedigital
@Frostbytedigital 6 дней назад
Shoulda picked solid
@ReedoTV
@ReedoTV 6 дней назад
Lua sounds cool. What country is it from?
@GabrielLima-gz8zg
@GabrielLima-gz8zg 6 дней назад
Brazil!!! 🇧🇷
@Max-wk7cg
@Max-wk7cg 6 дней назад
You also get to create World of Wacraft addons if you learn lua :)
@ninjalacoon
@ninjalacoon 6 дней назад
Lua computercraft
@_Khrix
@_Khrix 3 дня назад
Lua mentioned let's go Vai Brasil
@LaughingOrange
@LaughingOrange 5 дней назад
Came to laugh at Roblox doing something stupid, ended up changing my mind on Lua as a language.
@petermen9914
@petermen9914 4 дня назад
What about C/C++ or Arduino for embedded systems? The are really popular. Just asking, probably I didn't get sth important here |^
@UnidimensionalPropheticCatgirl
@UnidimensionalPropheticCatgirl 23 часа назад
Embedded scripting is what he is talking about, what you are talking about is embedded devices, those are like 99% done in C, occasionally some Ada or C++. Also arduino isn’t a language but a brand of MCUs, they use C with wiring HAL.
@ShadowKestrel
@ShadowKestrel 6 дней назад
i wonder how feasible it would be to have lua running natively in the browser
@osmano807
@osmano807 6 дней назад
There's a browser with Lua instead of JS named Bussin Web X
@ahdog8
@ahdog8 5 дней назад
Not exactly "native", but a WASM Lua runtime could probably be made with relative ease. I searched and it seems like someone's already working on one
@HowManySmall
@HowManySmall 5 дней назад
lmfao i was the one who first found this in the roblox open source server
@lwinklly
@lwinklly 4 дня назад
graah why are you here
@MagnumCarta
@MagnumCarta 6 дней назад
Thank God they didn't make Angular in Lua. If they did, that'd be a big "Oof"!
@Cahnisama
@Cahnisama 5 дней назад
They need roact-table
@mrchickenrocket1
@mrchickenrocket1 20 часов назад
What do you think of luau?
@Hersatz
@Hersatz 2 дня назад
Now if only they could port anti-child abuse law enforcement too.
@nonono9700
@nonono9700 5 дней назад
So tj can be a react dev now?
@tokisuno
@tokisuno 4 дня назад
why are you on lua 5.1.5?
@eduardoADSL
@eduardoADSL 6 дней назад
Lua and "go horse", two Brazilian contemporary inventions.
@randerins
@randerins 6 дней назад
....CAVALO.
@rodrigodh1
@rodrigodh1 6 дней назад
Cade os meus manos do brazil mentioned?
@pxkqd
@pxkqd 6 дней назад
What I don't like about Lua is the split with Luajit. It's like python2 and 3. At least in javascript we know newest is better.
@LtdJorge
@LtdJorge 6 дней назад
You mean the post Lua 5.1 stuff?
@pxkqd
@pxkqd 6 дней назад
@@LtdJorge yeah, there's a 5.4 but both luajit and luau which I are pretty popular are stuck in 5.1 I know you can just use any version and it's not so super different, but it still makes Lua code less portable. I haven't checked but is this react-lua and the other Roblox stuff 5.1, or Luau syntax? Can it be used in Luajit? Or in official Lua? 🤷🏻‍♂️
@LtdJorge
@LtdJorge 6 дней назад
@@pxkqd I'm pretty sure the React thing is in Luau, since it's for Roblox UI.
@mxruben81
@mxruben81 5 дней назад
​@@pxkqdluau does have features from newer versions of lua, they're just really picky about what they add.
@cz7259
@cz7259 6 дней назад
Lua has 0 learning curve. Anyone who can code knows lua by default they just don’t realize it. On the other hand the usage of Lua is fairly limited till this day. I only get to use it in nvim, while being forced to use disgusting languages like c# or js at work.
@harleyspeedthrust4013
@harleyspeedthrust4013 5 дней назад
what's so bad about c#? I've only seen snippets, so I'm genuinely curious.
@UnidimensionalPropheticCatgirl
@UnidimensionalPropheticCatgirl 23 часа назад
@@harleyspeedthrust4013 It suffers from the c++ syndrome of “features will continue until morale improves”, the standard library is a kitchen sink in which even microsoft doesn’t follow its naming conventions, there’s always million things happening implicitly, the build system and package manager suck, the tooling outside of microsoft stuff also sucks
@neociber24
@neociber24 6 дней назад
But why?
@sasuke2910
@sasuke2910 6 дней назад
A lot of justifying of Lua, but that's doesn't really strike me as the shocking thing about this. I guess Prime assumes that React on the Roblox frontend is a given.
@jake-gs2gd
@jake-gs2gd 6 дней назад
It’s for the game engine and making game guis. Not for the site
@dipereira0123
@dipereira0123 4 дня назад
BRAZIL MENTIONED!! LETS GO!!🇧🇷🇧🇷
@monad_tcp
@monad_tcp 4 дня назад
Metatables !
@rocapbg9518
@rocapbg9518 2 дня назад
Nah I can't handle 1 based indexing
6 дней назад
☠️
@lukewood2662
@lukewood2662 6 дней назад
BRAZIL MENTIONED
@CEOofCulturalMarxism
@CEOofCulturalMarxism 5 дней назад
BRAZIL mentioned
@vitosnatios
@vitosnatios 3 дня назад
Hail Brazil
@ncpeaksean4278
@ncpeaksean4278 6 дней назад
Awesome
@fiendishhhhh
@fiendishhhhh 6 дней назад
BRAZIL MENTIONED 🇧🇷🇧🇷🇧🇷
@GabrielLima-gz8zg
@GabrielLima-gz8zg 6 дней назад
I really hope you change your i3 to AwesomeWM, which you can use Lua for everything
@ninjalacoon
@ninjalacoon 6 дней назад
Lol I love lua circlejerks
@ncpeaksean4278
@ncpeaksean4278 6 дней назад
Braaaaziillll 😂
@anar0gk158
@anar0gk158 6 дней назад
What????
@blenderpanzi
@blenderpanzi 6 дней назад
Me after the first 2,5 minutes: Ok, I'm never going to touch that language. That seems worse than even PHP! *shudder*
@nealiumj
@nealiumj 23 часа назад
Ehhh.. 1 base indexing gives me shit every single time I use it 🤦‍♂️ why is this null!!- spend 5-10 min -“oh, I forgot I’m using a toy language! 🤦‍♂️”
@mohamadtabbakh9887
@mohamadtabbakh9887 6 дней назад
I'm new to programming and I have no real world experience, but don't we use C/C++ for embedded systems programming? I'm learning C so that I can eventually work with real-time operating systems (mainly to work with cars and stuff). Should I change course and start learning lua? Or is it still okay to continue with C/C++ and ASM? Edit: Thanks for everyone for the insightful comments. It's cleared alot of the fog about this subject.
@LtdJorge
@LtdJorge 6 дней назад
C is used infinitely more in embedded.
@valley-artifact
@valley-artifact 6 дней назад
C and Lua have 2 complimentary use cases in that area, no real overlap. you can't use Lua for the OS because it's interpreted and requires a runtime environment, you use a systems programming language like C or Rust for that, the idea is that you then implement a Lua interpreter into the program so you can use Lua to easily extend functionality without recompiling anything, makes it easier to do things like control the devices remotely with scripts.
@harleyspeedthrust4013
@harleyspeedthrust4013 5 дней назад
"embedded" means different things here. you're thinking of embedded microcontrollers or microprocessors which are typically programmed in their own flavors of C/C++. but "embedded" can also refer to a scripting environment "embedded" in another piece of software - like a video game that lets you write scripts, or something like that
@obkf-too
@obkf-too 4 дня назад
TCL is also good.
@aftabhussain4036
@aftabhussain4036 4 дня назад
WTF is that title?
@nomadshiba
@nomadshiba 6 дней назад
# means length?????? i hate magic symbols
@criptych
@criptych 6 дней назад
That's too bad, most programming languages use them. You might like Inform 7, though. Or Osmosian.
@pepperdayjackpac4521
@pepperdayjackpac4521 6 дней назад
# is as magic as +, -, and !
@biggerdoofus
@biggerdoofus 6 дней назад
I don't get what your expectation for the length operator is. Nil is the value of nonexistence. Setting a table index to nil is how you flag it for deletion.
@str2254
@str2254 6 дней назад
Don't make me play roblox
@LiveErrors
@LiveErrors 5 дней назад
But why React Though? Just feels wise it doesn't fit
@nero1375
@nero1375 6 дней назад
React made right!!!
@Gomace
@Gomace 6 дней назад
hue hue hue hue hue hue hue hue hue hue
Далее
I Have Never Worked | Prime Reacts
26:11
Просмотров 345 тыс.
A Jr Dev For Life?? | Prime Reacts
21:33
Просмотров 279 тыс.
когда повзрослела // EVA mash
00:40
Просмотров 1,8 млн
Спасибо Анджилишка, попил😂
00:19
So I've Been Trying Other Languages...
30:59
Просмотров 50 тыс.
The Most Amazing Software Ever Created
20:02
Просмотров 304 тыс.
How One Small Change Broke Wikipedia's First Link Rule
20:33
1000 Players - One Game of Doom
15:42
Просмотров 153 тыс.
JSX But With Lua | Prime Reacts
17:39
Просмотров 45 тыс.
I Bought a $5000 PC in a Random Asian Tech Mall
22:12
malicious javascript injected into 100,000 websites
12:28
What Does Your Editor Say About You | Prime Reacts
22:12
How React 19 Almost Broke The Web
55:40
Просмотров 84 тыс.