High-school student makes React a million times faster

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • Million.js is a React library that can improve rendering performance by bypassing the virtual DOM. It is inspired by blockdom and other popular JavaScript frameworks like Solid and Svelte
    #javascript #programming #thecodereport
    💬 Chat with Me on Discord
    / discord
    🔗 Resources
    Million on GitHub github.com/aid...
    Million.js Website million.dev
    Solid in 100 Seconds • Solid in 100 Seconds
    10 JS Frameworks Compared • I built the same app 1...
    🔥 Get More Content - Upgrade to PRO
    Upgrade at fireship.io/pro
    Use code YT25 for 25% off PRO access
    🎨 My Editor Settings
    - Atom One Dark
    - vscode-icons
    - Fira Code Font
    🔖 Topics Covered
    - Million.js basics tutorial
    - How to make React faster
    - React vs Solid.js
    - React vs Svelte
    - What is the virtual DOM in react?
    - React performance optimization

Комментарии • 1 тыс.

  • @c.5879
    @c.5879 Год назад +9324

    Moral of the story:
    It doesn't matter how good you are, there is always a teenager who can do it a million.js times better

    • @IStMl
      @IStMl Год назад +401

      and it doesn't matter you're a teenager that can make it a million times better, because there's always an asian teenager that can make it a billion times better

    • @krishp1104
      @krishp1104 Год назад +14

      ✊️😔

    • @TheBlackManMythLegend
      @TheBlackManMythLegend Год назад +21

      @@berkileri2082 nice Fix I was about to do the same fix.

    • @vectoralphaSec
      @vectoralphaSec Год назад +23

      ​@Berk İleri man I wish I was Asian. Maybe then I would actually be smaert.

    • @Sanyu-Tumusiime
      @Sanyu-Tumusiime Год назад +15

      @@vectoralphaSec why? im black and smart

  • @smith4591
    @smith4591 Год назад +2493

    As the older generation, we can finally die in peace knowing there is at least one person who will carry society on his back.

  • @gigiopincio5006
    @gigiopincio5006 Год назад +4642

    i feel this says more about react than it does about the high schooler

    • @abdirahmann
      @abdirahmann Год назад +65

      😂😂😂😂

    • @IStMl
      @IStMl Год назад +354

      and about Facebook engineers

    • @Meleeman011
      @Meleeman011 Год назад +335

      if someone asks you how big your js framework is when you load it and you begin with the words "well gzipped and minified" you have already failed.

    • @me-low-key
      @me-low-key Год назад +214

      About the entire React community probably "Sorry was too busy googling how to center my div to actually care about the Virtual DOM and how it works, certainly the React mighty open source community got it all figured out, they created this thing called server side components, that's huge, my div get centered in the server already 🤯"

    • @IStMl
      @IStMl Год назад +21

      @@me-low-key hahahaha

  • @ohhellothere17
    @ohhellothere17 Год назад +1783

    The amount of optimization techniques/tools and community support that react has is unreal 🤯

    • @vaisakhkm783
      @vaisakhkm783 Год назад +89

      we didn't had to support it with wheel chair, if it was already fine..

    • @IStMl
      @IStMl Год назад +215

      the amount of community support is both amazing and a testament to how bad React is

    • @uziboozy4540
      @uziboozy4540 Год назад +40

      Yet still the worst frontend "framework".

    • @ccgarciab
      @ccgarciab Год назад +32

      Imagine if all this effort was spent in the way better alternatives

    • @Fiercesoulking
      @Fiercesoulking Год назад +19

      Not its not the React implementation is unbelievable stupid . Its copying a the whole tree for it to let an iterator doing things like delete on it . The standard way in all other languages is make a list while doing it and then let it run over again to apply changes.

  • @leovin00
    @leovin00 Год назад +65

    This is the dev equivalent of playing a multiplayer game and suddenly seeing 김황보 join the server

    • @aiexzs
      @aiexzs Год назад +3

      this comment is magical

  • @jackied.v.carson6059
    @jackied.v.carson6059 Год назад +432

    I knew as soon as I saw the title you'd be talking about Million. I first saw this project with me at the international science and engineering fair a few years ago. It's really incredible and I wish the creator of it the best of luck in his endeavors!

    • @IdentifiantE.S
      @IdentifiantE.S Год назад +2

      Yes !

    • @thr417
      @thr417 Год назад +2

      What are his endeavors, can you talk about it?

    • @thenostalgicguy46
      @thenostalgicguy46 Год назад

      I also came across Million but had no idea Fireship would make a video about it lol.

  • @addanametocontinue
    @addanametocontinue Год назад +1357

    Great to hear. To be fair to those React developers: most software developers use the software without a deep understanding of how it works. You can't blame them, either. They're too busy learning how to use the software stack so they can get a job as a developer than to spend their time digging deeper into any single one of them. You don't get paid for understanding how React works at a granular level. Companies don't pay you for this extra knowledge and it only helps like 1% of the time.

    • @ccgarciab
      @ccgarciab Год назад +31

      But what about the creators of React?

    • @fark69
      @fark69 Год назад +208

      @@ccgarciab I think a lot people don't realize that the creators of React are just a team from Facebook, they didn't even earn high wages at Facebook. Dan Abramov made like $100k at Facebook. I mean to say I can't expect them to put out brilliantly efficient and beautiful code when they are not commensurately valued by Facebook for their work

    • @akissot1402
      @akissot1402 Год назад +18

      replace companies with clients. in the real world market clients want a solution to a problem the faster it can just solve the problem the better, you are not making a living or going to compete for things a client doesn't want.

    • @jordixboy
      @jordixboy Год назад +1

      So... Are you saying higher pay equals more knowledge or being more intelligent? Wow

    • @overPowerPenguin
      @overPowerPenguin Год назад +13

      ​@@fark69Dan was working in the UK office, paid in GBP and that 100K was gross at the time he was hired in 2015. Now probably he earns a lot more, plus stocks , which probably he isn't going to tell, but keep in mind that in the UK he needs to pay a lot of taxes, like 50% or so for revenue over 60k a year plus NHS and the rest of the things.

  • @AlexeiDenis
    @AlexeiDenis Год назад +452

    Finally Aiden Bai gets the props he deserve.

    • @DauntingGecko
      @DauntingGecko Год назад +74

      { children } …? 🤓

    • @TypingHazard
      @TypingHazard Год назад +54

      But does he also get the state he deserves?

    • @darienverdugo290
      @darienverdugo290 Год назад

      what A CRACK

    • @wh2742
      @wh2742 Год назад +174

      Is there not a suspicious amount of ai in his name?

    • @Timmie_Tudor
      @Timmie_Tudor Год назад +15

      ​@@wh2742If there are so many AIs in his name, maybe he asked AI how to optimize React, and he implemented the optimizations suggested by AI.

  • @mhcbon4606
    @mhcbon4606 Год назад +46

    hell yeah, tree diff is a reasonable approach, but you are much better served with a little bit of pre compilation to hook the code here and there. Especially in JS/HTML, there have been so much work around the tooling to parse, transpile, output, so much richness in this field is really a strength for this language.

    • @sashamc309
      @sashamc309 Год назад +5

      this makes me want to learn more about how compilers work. I think this is a really creative solution, and I wouldn’t be surprised if Facebook hires the author to work on the React code in order to make this API supported officially and out of the box

  • @jswlprtk
    @jswlprtk Год назад +57

    How did we get to this point where we are performing surgeries on DOM for premature optimization and shipping electron all over the place at the same time

    • @BusinessWolf1
      @BusinessWolf1 Год назад +11

      so what happened is we didn't burn enough -10x engineers at the stake

    • @bug3937
      @bug3937 Год назад +8

      javascript happened.

    • @psisis7423
      @psisis7423 Год назад +6

      Not a single count of software I enjoy is written in javascript

    • @Core4Films
      @Core4Films Год назад +16

      @@psisis7423 he says, posting on a website that uses javascript

    • @okie9025
      @okie9025 Год назад +1

      90% of people who complain about Javascript have never written any production code in a language they enjoy, guaranteed.

  • @asagiai4965
    @asagiai4965 Год назад +5

    1:12 lol a highly experience react developer asking what's a virtual dom.
    Anyway, props to this kid

  • @ra2enjoyer708
    @ra2enjoyer708 Год назад +53

    Do note these "pre-compiled" optimizations translate directly into bigger bundle size if done at build time or longer startup time if done at runtime. So the speed gain only matters if you really have rendering performance problems which you can pin down on react rendering engine specifically (not the lag introduced by interacting with quadrillion async browser APIs).

    • @go_fuck_yourself
      @go_fuck_yourself Год назад +3

      API call optimization could honestly be a speciality on its own.

  • @metropolis10
    @metropolis10 Год назад +7

    What I find amazing is that react was the framework that revolutionized updates because it didn't crash and burn when you had too many updates like older methods did with the famous server monitoring page demo. The fact we now have more transparent and even faster and better ways just a decade latter gives me hope for humanity.

  • @lKrauzer
    @lKrauzer Год назад +169

    This channel makes me think front-end is insanely more complex than what I know and expect, maybe I'll never be able to land a full-stack job, because I thought the only complex and hardcore part of this was the back-end, but I'm dumb enough to think back-end is complex as hell, and now front-end seems like a nightmare too, guess I'll stick to front-end development

    • @miraclenerdkidchiki6249
      @miraclenerdkidchiki6249 Год назад +5

      Same here bro😂

    • @YuriG03042
      @YuriG03042 Год назад +229

      congratulations on your recently acquired impostor syndrome, have fun and don't get hurt

    • @duarteribeiro1520
      @duarteribeiro1520 Год назад +4

      ​@@YuriG03042 This

    • @senrign
      @senrign Год назад +55

      Imposter syndrome is loosely defined as doubting your abilities and feeling like a fraud. It disproportionately affects high-achieving people, who find it difficult to accept their accomplishments. Many question whether they're deserving of accolades.

    • @MedChergui
      @MedChergui Год назад +5

      @@senrign exactly, this like the dunning Kruger effect

  • @N0ES
    @N0ES Год назад +97

    I never really bothered myself to think about how to improve the frameworks and libraries I use, I always assume it was coded by large teams and I'd be wasting my time trying to improve them, but this example kind of clashes with that mentality. I don't want to look at other's people's work, it's so much easier to improve my own stuff, because even in a messy development environment I could still have a mental map of where everything is and how it works, but I wouldn't have that for other's work, a lot of time would be wasted on just familiarizing myself with it.

    • @RottenMuLoT
      @RottenMuLoT Год назад +27

      You assume there is a large team behind. I did the same for years, only to realize PHP is driven by a team of only 5 paid full-time devs.

    • @vittoopugliese
      @vittoopugliese Год назад +1

      siempre hay un asiatico que lo hace mas rapido

    • @Holobrine
      @Holobrine Год назад

      Yeah, I’ve had a RUclips channel idea for that reason to document open source project architectures before but it seems like a lot of work for each architecture to cover. Although, I suppose they could be a video series per project instead 🤔

  • @logusgraphics
    @logusgraphics Год назад +18

    If you've been doing this for a long time you realized that the best tool is the one that has the most robust ecosystem, largest community, greatest documentation, easiest collaboration, better readability and most elegant API. These aspects are not founded in performance (speed) mostly. Most solutions one must build don't need to be faster than light, just responsive enough for the benchmarks. But for sure all solutions need the previously mentioned aspects.

  • @ghulammujtaba9236
    @ghulammujtaba9236 Год назад +27

    Not faster than me running here to watch this video.

  • @shadamethyst1258
    @shadamethyst1258 Год назад +54

    Honestly, react should have been doing static analysis from day one. Manual reactivity is a pain and a huge source of bugs, and react already compiles jsx into js, so I don't get why they couldn't perform static analysis

    • @majorhumbert676
      @majorhumbert676 Год назад +11

      The React team had a project that explored this, but it had some drawbacks that led them to decide on a different path. I forgot the details, think it might have had something to do with concurrent rendering.

    • @amateurtries7542
      @amateurtries7542 Год назад +1

      @@majorhumbert676 If you don't mind telling, have you worked for Facebook?
      Is it possible to know this info without being an employee for Meta?

    • @majorhumbert676
      @majorhumbert676 Год назад +2

      @@amateurtries7542 I just heard this mentioned a few times on Ryan Carniato's streams (the creator of SolidJs).

    • @ra2enjoyer708
      @ra2enjoyer708 Год назад

      How do you expect static analysis to work client-side?

    • @raffimolero64
      @raffimolero64 Год назад

      Not enough innovation tokens. React already innovated the VDOM, which laid the *foundation* for the rest of the frameworks.
      Unless Angular did that first, I don't know.

  • @Growlizing
    @Growlizing Год назад +3

    It was never that the vdom was supposed to be blazing fast, the issue was that changing the real dom (and keeping track of updates) was so incredibly slow.

  • @kasper369
    @kasper369 Год назад +44

    This teen is giving me peer pressure, now I want to create something epic

    • @thecoolnewsguy
      @thecoolnewsguy Год назад

      Same let's go!!!

    • @cx6894
      @cx6894 Год назад +11

      That's a good thing, humans need competition to improve and get better. Without it you become comfortable and when you become comfortable you stagnate or get worse.

    • @yungifez
      @yungifez Год назад

      I thought i had gone far as a teen but now i feel old at 19

    • @NathanHedglin
      @NathanHedglin Год назад +3

      Find some garbage JS library (most of them) and optimize it

    • @thecoolnewsguy
      @thecoolnewsguy Год назад

      @@NathanHedglin lol

  • @id104335409
    @id104335409 Год назад +9

    I understood some of those words!

  • @zoladkow
    @zoladkow Год назад +4

    What a rebel - just a wrapper instead of making this into a brand new framework 🤯

  • @cedrics7374
    @cedrics7374 Год назад +24

    The idea of the virtual dom was to avoid repainting the ui multiple times which is costly. Which made react faster than angular.. so calling it overhead is a bit exaggerated

    • @TheGreySage0
      @TheGreySage0 Год назад +1

      Sadly that is what React doesn't seem to be doing,entire point was to to avoid updating everything at once...

    • @radvilardian740
      @radvilardian740 Год назад +2

      you can toggle that in angular btw, which will make it faster than react. And incoming version 16 with signal based component will make it a lot times faster

  • @mycode0
    @mycode0 Год назад +18

    he figured out how to make react 70% faster I couldn't even figure out what exactly was done

    • @thenostalgicguy46
      @thenostalgicguy46 Год назад +1

      From what I understand, Instead of rendering the component to get a virtual DOM, Million runs static analysis on the JSX to figure where the exact change in state is rendered. This allows you to basically skip static nodes which is great for minute changes like updating a single counter.

  • @friyguy
    @friyguy Год назад +8

    i love this code report series

  • @geeshta
    @geeshta Год назад +5

    I was getting paranoid from the lack of new JS frameworks lately

    • @Daijyobanai
      @Daijyobanai Год назад

      It's how you can tell if you slipped into an alternative reality, instead of asking who is president or prime minister, just ask if there are any new frameworks in the last hour, if the answer is no you are no longer in the same timeline or dimension.

  • @CottidaeSEA
    @CottidaeSEA Год назад +27

    So basically, the dude took a quick peek into the world of backend and figured hashmaps were cool, so he essentially did a similar thing for React?

    • @BusinessWolf1
      @BusinessWolf1 Год назад

      yep

    • @Zer-ei4co
      @Zer-ei4co Год назад +7

      “Basically”? I mean, he put in the work and made a whole new framework, at least give credit where it’s due instead of being immediately dismissive.

    • @aiexzs
      @aiexzs Год назад +1

      that's a pretty long "quick peek"

    • @CottidaeSEA
      @CottidaeSEA Год назад +1

      @@Zer-ei4co Can you not identify a hyperbole when you see one? Of course it's impressive.
      As for the result, it's an augmentation of React that has an additional ruleset to work with the static analysis. It's not truly a new framework. It's still just as impressive, but call it what it is.

    • @CottidaeSEA
      @CottidaeSEA Год назад

      @@aiexzs Well... the quick peek was quick, the time required to apply the principle, not so much. Honestly, making React run faster than SolidJS, even if it's potentially only in faster benchmarks is massive. That means React will perform much closer to vanilla JS which is an incredible feat and if it starts being used more extensively, it will have a massive impact on lower end mobile devices especially.

  • @phoenix-tt
    @phoenix-tt Год назад +30

    Ah, yes, they just turned React into Vue by introducing a proper compiler

  • @JohnneyleeRollins
    @JohnneyleeRollins Год назад +45

    He already has ten years of react experience but zero of professional 😅

    • @CottidaeSEA
      @CottidaeSEA Год назад +22

      Soon he'll be required to have 10 years of experience using his own framework for a job even though he started working on it in 2021.

    • @YuriG03042
      @YuriG03042 Год назад +16

      about to get hired as an unpaid intern

    • @gigiopincio5006
      @gigiopincio5006 Год назад +2

      he accrues experience years with react 70% faster than everyone else

    • @vanhohenheim1515
      @vanhohenheim1515 Год назад +2

      ​@@CottidaeSEA 😂

    • @thenostalgicguy46
      @thenostalgicguy46 Год назад

      @@YuriG03042 Maybe in the US lol. I'm straight out of high school in the UK and doing a degree apprenticeship. I get to work, get paid and get a degree all for free.

  • @shinoobie1549
    @shinoobie1549 Год назад +6

    "MillionJS" - so Techlead achieved time travel (as a millionaire) and went back in time

  • @ReasoningBanking
    @ReasoningBanking Год назад +1

    just going with the flow and observing how fast world and technologies changes

  • @killingtimeitself
    @killingtimeitself Год назад +3

    gen z on their way to do things better than millions of programmers while shitposting really just goes to show how truly incredibly stupid modern computing innovation can be sometimes.

  • @soviut303
    @soviut303 Год назад +36

    Good to see my prediction of Svelte-like compilers making their way into other frameworks is becoming a reality. Unfortunately, it means that Svelte will probably stay less popular than it deserves, but hey, we could always consider it the first "academic framework" in the frontend space.

    • @AbWischBar
      @AbWischBar Год назад +11

      For anything that can’t be done with plain HTML CSS and a bit of JavaScript I am using Svelte. It is not just the compiler approach that makes it my favorite. Especially the Stores concept runs circles around React and its state management (or whatever fancy words you use for data binding and data model).
      I started as a web developer long before any of these frameworks were a thing. Moved to desktop, mobile and embedded and when I returned to web, React was the thing but Svelte on the rise. React felt immediately way too complicated for what it tried to solve whereas Svelte was simple and straight forward. Has everything I needed.
      Will support it as long as it lives

    • @ricardoamendoeira3800
      @ricardoamendoeira3800 Год назад +9

      The thing about Svelte is that you get interested in it because of the performance but then you stay because the dev experience is so awesome compared to the alternatives, and the good performance becomes a secondary benefit.

    • @ea_naseer
      @ea_naseer Год назад

      Cough *elm compiler and co* cough

    • @ea_naseer
      @ea_naseer Год назад

      Cough *elm compiler and co* cough

    • @emt2185
      @emt2185 Год назад +2

      ​@@AbWischBar I'm in a similar boat to you. Every time I try using React I bounce off state management. Svelte was immediately intuitive by comparison

  • @Way_Of_The_Light
    @Way_Of_The_Light Год назад +1

    Your sense of humor just keeps getting better 🤣🤣

  • @aryanprakhar
    @aryanprakhar Год назад +1

    This video has forced me to rethink my whole teenage life :))

  • @daisywuwoo1
    @daisywuwoo1 Год назад +3

    Thanks for always delivering the newest happening in front end, learnt a lot!

  • @ambinintsoahasina
    @ambinintsoahasina Год назад +21

    Okay, I'll say it out loud: I'm angry, jealous and insecure by the fact that people are better than me.
    Thank you for coming to my TED talk

    • @yungifez
      @yungifez Год назад +1

      Hey dude, im furious angry jealous and sad
      But life is shit and can be like that sometimes😂😂

  • @snowpower18
    @snowpower18 Год назад +1

    It's been -12 minutes- 0 minutes since a new JavaScript framework was released

  • @TerenceKearns
    @TerenceKearns Год назад

    2:32 "I am the virtual dom now" 🤣😂🤣😂 I'm dying...

  • @Gosu9765
    @Gosu9765 Год назад +38

    W8, so he made all those gains but without use of chat GPT? Is that even possible? What a mad lad.

    • @slayerzerg
      @slayerzerg Год назад +14

      you can't make anything new with chatgpt lol

    • @thecoolnewsguy
      @thecoolnewsguy Год назад +10

      Stop overhyping "AI"

    • @flouglemireindustries4335
      @flouglemireindustries4335 Год назад +1

      before yall take this comment too much to heart, treat it as a joke

    • @thecoolnewsguy
      @thecoolnewsguy Год назад

      @@flouglemireindustries4335 I love pizza 🍕

    • @ko-Daegu
      @ko-Daegu Год назад

      @@matthewjyao who got first and seocnd and what;s an IESF ?

  • @MattYang
    @MattYang Год назад +14

    cool video (as usual)! the benchmarks are misleading though and as you alluded to, for real-world apps it is basically unusable due to the constraints.

  • @anon_y_mousse
    @anon_y_mousse Год назад

    So the lesson here is that compilation is always better? Okay, good to have my life choices validated.

  • @hamu_sando
    @hamu_sando Год назад

    Omg the Captain Phillips meme nearly made me spit out my coffee

  • @bsljth
    @bsljth Год назад +3

    Q: How can you make React faster?
    .
    .
    .
    A: Use Svelte.

  • @IPS423
    @IPS423 Год назад +3

    Well using things like seems like the angular way. That's a major deviation from how react is written.
    It seems more of a discussion about ease of use vs performance. Very glad that you mentioned that people rarely run into performance issues due to optimisations in framework itself (my inference - sry if wrong).
    Surely, the react developers also know the "compilers" other smarter people use.
    (I would like to hear Ben Awad's opinion on the angular thing.)

  • @altf4216
    @altf4216 Год назад +1

    he made it to the Regeneron International Science and Engineering Fair with it!

  • @ghostaccountlmao
    @ghostaccountlmao Год назад +1

    I don't think the amount of tech literate people has ever necessarily gone down percentage wise. I'd argue it will only go up and, just like actual literacy, will become a societal norm.

  • @Enormousguy
    @Enormousguy Год назад +7

    So it's like making a table in HTML

  • @hugo-garcia
    @hugo-garcia Год назад +27

    More than 20 years later everyone is still trying to ma Javascript not run like crap

    • @Meleeman011
      @Meleeman011 Год назад +5

      over 10 years trying to make react not crap too

  • @xmine08
    @xmine08 Год назад

    Optimizations in the framework always make sense. Yes, you can waste time on it, or actually invest it. An often overlooked part of a green future is not computing stuff that's not necessary - Of course, we'll always have to strike a balance here. This makes your app either faster for your client, or keeps their battery running for longer, or makes it work at all in the first place. How's that a bad thing? It's not, it's great.

  • @davorlucic4873
    @davorlucic4873 Год назад +1

    could you do a 100 seconds mantine video? mantine looks like a useful component library and i think more people should know about it :)

  • @thejonte
    @thejonte Год назад +4

    I am learning React! Thanks for your content.

  • @ninjuhdelic
    @ninjuhdelic Год назад +3

    i think people forget how powerful your mind is when youre young. You really lose a lot as you age. Like my grind as a teen and early 20s made me feel unstopable. Then girls happen.

  • @cmdrrademenes4058
    @cmdrrademenes4058 Год назад

    I checked his commit history
    this madlad started blasting code on a first year of high school (possibly even sooner). I was studying for math exams when I was a freshman lol

  • @PacificBird
    @PacificBird Год назад +1

    This looks a lot like what Dioxus-rs did to get their virtual dom based framework working as fast as signal based JS frameworks!

  • @anmolarora5630
    @anmolarora5630 Год назад +12

    "Well if you are a highly expirienced react developer you might be wondering what is a the virtual DOM!"' I am dying while laughing 🤣🤣

  • @truvc
    @truvc Год назад +3

    I’ve been expecting someone to do this with React for a long time.

  • @modolief
    @modolief Год назад +1

    Fireship always puts a smile on my face 😀

  • @quintencabo
    @quintencabo Год назад

    That picture of the bridge was soooo cursed.

  • @heisenbergstayouttamyterri1508
    @heisenbergstayouttamyterri1508 Год назад +16

    Would've been interested if it was made 70% easier and readable than faster....

    • @heisenbergstayouttamyterri1508
      @heisenbergstayouttamyterri1508 Год назад +8

      @@IStMl or Vue!

    • @IStMl
      @IStMl Год назад +2

      @@heisenbergstayouttamyterri1508 Vue is great but Svelte is even cleaner. But the ecosystem is immature atm

    • @phoneywheeze
      @phoneywheeze Год назад +2

      ​@@IStMl it may be immature, but in the end, it does support most vanilla js libraries, as its just a compiler

    • @IStMl
      @IStMl Год назад

      @@phoneywheeze yes thats a huge plus, but a lot of libs are for React nowadays

    • @manmanmanichfindekeinennam7613
      @manmanmanichfindekeinennam7613 Год назад +1

      ​@@IStMl not anymore. Svelte has a rich eco system with all tooling one needs

  • @Bliss467
    @Bliss467 Год назад +95

    I’m sure the react developers are 100% aware of this and haven’t changed react for the exact reason you described as a downside to million.js

    • @FS-yq9ef
      @FS-yq9ef Год назад +8

      It's a possibility but also unlikely considering how buggy most Facebook owned software is.

    • @heitorvrb
      @heitorvrb Год назад +6

      If you don't follow the rules, it just reverts to the Virtual Dom. So as long as you know what you're doing, you get all the upside where it is possible, otherwise it still works as it would without million.js.

    • @ronaldaug8504
      @ronaldaug8504 Год назад +1

      If it's boosting performance by 70% is definitely worth a try.

  • @Free..Palestine....
    @Free..Palestine.... Год назад +1

    Me a 16 year old wondering what the hell is react? And here a teenager made this unbelievable piece of program.. Sometimes I wonder what the hell am I doing?

  • @annoying_anonymous
    @annoying_anonymous Год назад

    Damn my ad was 1hr long thankfully it wasn't unskipable😂

  • @ward7576
    @ward7576 Год назад +4

    Probs their management loved their idea of virtual DOM and made the devs stick with it and make it just as fast as possible.
    It's not always devs, people. I can also start to do what *I want* in the workplace, but that means I'll be let go soon enough.

  • @ansh11a47
    @ansh11a47 Год назад +26

    This is the motivation i needed to quit programming.

    • @elielc.8459
      @elielc.8459 Год назад +2

      bruh 😂😭

    • @yungifez
      @yungifez Год назад +1

      Yup no more

    • @Pscytlk
      @Pscytlk Год назад +1

      🤣🤣🤣🤣🤣🤣

    • @Pscytlk
      @Pscytlk Год назад +1

      i am gonna ship to rust.

  • @ramizr
    @ramizr Год назад +1

    YOU ROCKKK AIDEN!!!

  • @noahbarger1
    @noahbarger1 Год назад

    always counting on fire ship for our latest software dev news

  • @halfsleeves
    @halfsleeves Год назад +5

    "if you are a highly experienced react developer you must be wondering what is virtual dom?" hahahaha....

  • @AlexEliotOfficial
    @AlexEliotOfficial Год назад +152

    React’s horrible performance has been appalling to me many a time when choosing the tech stack for a project. If, with this, it matches Vue (or even get close to it) then it will become a very viable option for a performant frontend.

    • @YuriG03042
      @YuriG03042 Год назад +9

      since it's faster than solid, then it might also be faster than Vue that's is template. might only lose to Svelte and Strawberry, really

    • @gomesiano
      @gomesiano Год назад +47

      Just curious, but what kind of apps you do that react's performance affect you that much? I'm asking because i've done a bunch of web apps, all different to use with real time systems and really never had a performance issue.

    • @jason96G
      @jason96G Год назад +16

      What OP is saying isn’t based in anything. It’s just one of takes that are provocative to garner attention.

    • @AlexEliotOfficial
      @AlexEliotOfficial Год назад +3

      @@gomesiano When dealing with animations, the rerendering can take so long that the animation either doesn’t play, or flashes. Suppose a comment feed with many comments and many replies. And have a button at the top level to collapse all replies. I was unable to do it with CSS and had to use Framer Motion (which ngl was an excellent choice as it’s an amazing library, but would be better if I could just CSS my way through it instead of just flashing because it was slow to rerender for the transition to apply).
      But other than this specific scenario, I always found myself trying to improve performance by going on roundabout ways to overcome its rerendering and eventually got tired of it.

    • @sprinklehomie5811
      @sprinklehomie5811 Год назад +4

      @@AlexEliotOfficial Do work on your backend to support better loading features, nobody needs to see 10+ comments right away most likely

  • @jrkirby93
    @jrkirby93 Год назад +1

    No way! A teenager beat a snail in a footrace??? How???

  • @TheHardikupadhyay87
    @TheHardikupadhyay87 Год назад

    i didn't understood no shit but enjoyed the video. now this makes me feel good.thank you.

  • @MedChergui
    @MedChergui Год назад +3

    Be who you want, but there's always an Asian dude who can do it better than you .
    Kudos to him

  • @rand0mtv660
    @rand0mtv660 Год назад +9

    Yeah as everything in programming, it has its downsides because it requires you to write React with even more additional "rules" and specifics. I mean it's still crazy that it's that faster, but not sure how usable in real world.
    At this point, I'm just waiting for React Forget and what the React team will do with compiling code and optimizations. I don't really have a problem with React's performance because it's quite fast, I just have a problem with some specifics regarding memoization and re-render optimizations because those are just pure overhead for developers using React.

  • @hemanthsavasere934
    @hemanthsavasere934 Год назад +1

    My thought process, very much similar to Tensorflow which has a static graph and Pytorch which has a dynamic graph.

  • @Toleich
    @Toleich Год назад +1

    "the manure truck goes 70% faster now!"
    I'm still not driving a manure truck.

  • @mojoboingo1744
    @mojoboingo1744 Год назад +3

    "One day fix React-"
    Let's not get crazy.

  • @DemPilafian
    @DemPilafian Год назад +8

    To be fair to Facebook developers, it's very hard to write a framework with an Oculus strapped to your cranium.

  • @bespaloffftw
    @bespaloffftw Год назад +2

    Great video! I don't really care about react performance, since we are building simple interfaces, it is absolutely fine. What I am really pissed with is all those millions of nuances with hooks, effects, state... Hope they would simplify things one day.

    • @galaxiapixel
      @galaxiapixel Год назад +1

      Usa svelte y listo, problema resuelto, lo digo por experiencia .

  • @MarcCastellsBallesta
    @MarcCastellsBallesta Год назад

    I don't understand 90% of the content. I still love to watch every single video.

  • @jaspercaelan4998
    @jaspercaelan4998 Год назад +4

    So it's still slow AF.

  • @7iomka
    @7iomka Год назад +4

    A spoonful of soot for those who are prematurely prejudiced: "Returns must be "deterministic," meaning there can only be one return statement at the end of the block that returns a stable tree."
    Million.js requires that you use DOM elements instead of components. This is because components can introduce non-deterministic returns, which can cause degraded performance.
    🤯

    • @ko-Daegu
      @ko-Daegu Год назад

      and that;s mean ?

    • @7iomka
      @7iomka Год назад +2

      @@ko-Daegu it is not useful now in most cases

    • @ra2enjoyer708
      @ra2enjoyer708 Год назад +1

      @@ko-Daegu That means it's useless for hybrid render contexts and all components which deal with multiple states. Which is vast majority of them.

  • @DevLife717
    @DevLife717 Год назад

    Paul Dillett reference was savage

  • @triplea657aaa
    @triplea657aaa Год назад +1

    Love the not so subtle jab at react devs

  • @asifurrahman5436
    @asifurrahman5436 Год назад +4

    React, please hire this guy before he makes another framework

  • @TheBlackManMythLegend
    @TheBlackManMythLegend Год назад +8

    react is just the new jquery one day it will be disrupted by something else and better

    • @YuriG03042
      @YuriG03042 Год назад +2

      if meta drops support, yeah. otherwise it just has too much cash pumped into it to fail

    • @user85937
      @user85937 Год назад +6

      React is the proof that the most popular framework isn't necessarily the best framework.

    • @aiexzs
      @aiexzs Год назад

      @@user85937 javascript as a whole

    • @aiexzs
      @aiexzs Год назад

      @@user85937 actually no the entire web, markup languages should be pulverized

    • @piyushpatil898
      @piyushpatil898 Год назад

      Big names attached with React

  • @martinzen
    @martinzen Год назад

    that final diss kills

  • @Boomkop3
    @Boomkop3 Год назад +1

    I'm not surprised knowing the quality coming from meta

  • @mateuszabramek7015
    @mateuszabramek7015 Год назад +3

    This is where current js frameworks development is. Everyone says it's great, so it must be great solution, right?

  • @godnyx117
    @godnyx117 Год назад +3

    I always thought how is it possible that there will be WHOLE TEAMS, even FULLTIME developers doing software and they'll manage to fuck it up so badly!
    I'm now writing my compiler for my language.
    It's going to use a CUSTOM backend and I'm also making my own file format and loader! Everything is possible with a little bit of passion!

    • @ra2enjoyer708
      @ra2enjoyer708 Год назад

      Don't forget the compiler would have to be "multiplatform" but with vendor-specific dependencies and crash with cryptic errors upon not meeting them.

    • @godnyx117
      @godnyx117 Год назад

      @@ra2enjoyer708 Yeah...

    • @godnyx117
      @godnyx117 Год назад

      @@ra2enjoyer708 Sucks to be me I guess...

    • @Daijyobanai
      @Daijyobanai Год назад +1

      how is it possible that there will be WHOLE TEAMS, even FULLTIME
      because they are being micro-managed by "Agile coaches" who don't give developers the freedom to solve real problems. Clearly react optimization didn't get enough "points" in the sprint planning :-(

    • @godnyx117
      @godnyx117 Год назад

      @@Daijyobanai This doesn't change the result.

  • @merovingen4546
    @merovingen4546 Год назад +1

    VDOM was a crutch, such as everything in react, so there need some crutches to make base crutch work EVEN better )

    • @BusinessWolf1
      @BusinessWolf1 Год назад

      crutches are also tools which make things easier, and that is a good thing

    • @merovingen4546
      @merovingen4546 Год назад

      @@BusinessWolf1 can't fight this one )

  • @ahmedayachi5889
    @ahmedayachi5889 Год назад +1

    i'm a react developer, and i can admit despite the fact that react allows the creation of clean elegant component-based architecture, actually never seen a framework/library with such clean syntax, it's so dumb, It's like they have traded performance for cleanliness, the component has to rerender on every single state update, that's why there are too many hooks and wrappers to optimize performance, things were never a problem with vanilla js

  • @DevlogBill
    @DevlogBill Год назад +6

    You kidding me? This kid created his own framework with a compiler and it is faster than React? That is amazing!

    • @gilfhunter42069
      @gilfhunter42069 Год назад +8

      Well no, he didn't. React has a lot more under the hood than just the method it handles DOM changes. It's just one bottleneck of react 'this kid' detected and fixed. To be fair, if other very good engineers had a reason to dig every single bit of performance out of react and compared it to other fast frameworks, they could have done this, too. It's sad enough that a teenager was the one who first got the idea to do it, says a lot about todays software market. This is not a hate comment, Aiden did great work, however it's not the magic some people make it out to be.

    • @putnam120
      @putnam120 Год назад +1

      My guess is that other professionals had higher priorities. But still cool

    • @ra2enjoyer708
      @ra2enjoyer708 Год назад

      Did you watch the video? It's literally a decorator for react components, which expects them to be written in a specific way. Chances are you won't benefit from it in a typical hybrid-rendered component which has to deal with auth, fetching, caching and data synchronisation between different sources of data. Without major refactor at least.

  • @OdysseusVrakas
    @OdysseusVrakas Год назад +14

    He made React react 70% faster. Brilliant.

  • @PursuitOfMastery
    @PursuitOfMastery Год назад

    The Paul Dillet reference was insane 😂

  • @apidas
    @apidas Год назад

    man, kids are on another level

  • @user85937
    @user85937 Год назад +4

    It makes me sad that companies keep choosing for React, it's the most crappy js framework you can pick.

    • @smith4591
      @smith4591 Год назад +1

      Company I work uses Angular

    • @yourivanmill
      @yourivanmill Год назад

      Im so happy to work with Vue, won’t use anything else

  • @jojo031
    @jojo031 Год назад +16

    "there's no way a teenager could out-render an entire team of top-tier engineers at Meta"
    After completing my BS in Computer Science, I can safely say that I'm not surprised some child outperformed "engineers"

    • @NathanHedglin
      @NathanHedglin Год назад +5

      😂 exactly. The bar is pretty low. Just need skinny jeans, a Mac and know basic JavaScript

    • @piyushpatil898
      @piyushpatil898 Год назад +3

      @@NathanHedglin Not really Gaming Laptop is fine

    • @thenostalgicguy46
      @thenostalgicguy46 Год назад

      Bro, teenagers work at Meta. I have a mate doing an apprenticeship at Meta here in UK

  • @micelumail5829
    @micelumail5829 Год назад

    I love it when your video has many logos

  • @andre-le-bone-aparte
    @andre-le-bone-aparte Год назад +1

    @0:28 - Asian Efficiency FTW

  • @retinapeg1846
    @retinapeg1846 Год назад +14

    there is always an asian better than you