Now is The Best Time to Learn WebAssembly

Поділитися
Вставка
  • Опубліковано 27 лют 2024
  • A Web Assembly Crash Course.
    💬 Topics:
    - What is Web Assembly?
    - Why use Web Assembly?
    - Web Assembly use cases;
    - Web Assembly vs JavaScript;
    - Build apps with Go;
    - Go and Web Assembly;
    ✉️ Join the Newsletter - newsletter.awesome.club/
    🥇 Become a Member - / @awesome-coding
    📖 Blog Article - www.awesome.club/blog/2024/no...

КОМЕНТАРІ • 181

  • @pokefreak2112
    @pokefreak2112 3 місяці тому +147

    You should be very careful when making performance claims about WASM. Unoptimized WASM is often slower than js, and optimized js (using array buffers and workers) can often result in near identical or better performance than WASM. A lot of number crunching tasks like image processing are also better suited for the GPU than the CPU, so using webGPU instead of WASM would make more sense.
    The real reason to use WASM is simply that you can run your non-js code in the browser or any other WASM environment.

    • @awesome-coding
      @awesome-coding  3 місяці тому +10

      Good points!
      Thanks for mentioning them!

    • @9SMTM6
      @9SMTM6 3 місяці тому +15

      I'm MOSTLY with you.
      But performance optimizing JS code manually is painful, and not always well documented. In addition, if you test your JS in one browser to find what should be optimized, this may not transport to other browsers (particularly mobile browsers tend to be worse at dynamically optimizing code). And most JS libraries will not be performance optimized, so you've got to do everything yourself.
      So if you need reliable performance and don't want to write everything yourself, WASM is worth it. But in that case you probably don't want to use Go to do it, but something like Rust, which is better at having predictible performance for CPU intensive tasks.
      Very much with you when it comes to WebGPU, but that is also even harder to target for a "normal" developer, if you target it yourself. Understanding shader code, and what shader code is performant on GPUs is not trivial, and again often not portable between GPUs.

    • @pokefreak2112
      @pokefreak2112 3 місяці тому

      ​@@9SMTM6 Funny you mention js performance stuff being poorly documented, because I found the WASM documentation to be so awful I just kinda reverse-engineered the binary format to get a feel for it instead of reading docs. Agree about most js not being optimized, which is why I don't use that many third party libraries.
      My point is that if you're expecting your performance to skyrocket by rewriting your logic from js to some language targeting WASM you *should* be benchmarking the result, because JS is a lot more optimized (and WASM is a lot slower) than most people think.
      Go and Rust are actually both good examples of languages that could lead to poor WASM performance. Go has GC and Rust has implicit allocations. If you want to go fast you *need* to minimize your allocations, regardless of if you're writing JS, Go or Rust. None of these languages are slow, but cloning millions of objects every frame is.
      And sure GPU programming is not trivial but I'm not really interested in making code "junior friendly", I just want to ship applications that are actually good. And you can always upskill people if needed. None of this stuff is hard, it's just a bit niche.

    • @pokefreak2112
      @pokefreak2112 3 місяці тому +10

      ​@@9SMTM6 To give you a concrete example of allocations mattering more than language: There's this frontend framework called Yew that's basically a clone of React but written in Rust. Their VDOM is very optimized and they don't have GC to worry about, so predicably it's a bit faster than React.
      However javascript frameworks that do not use VDOM are still significantly faster than Yew, because they simply do less work and allocate less.

    • @ristekostadinov2820
      @ristekostadinov2820 3 місяці тому +1

      @eak2112 i've been saying wasm can reach the mainstream only when browsers implement features for manipulating dom (there is no such proposal for now, and the creators have said already that js is not going anywhere) via wams rather than interop js. Wasm is useful for cloud service providers, building general purpose function and exposing it to multiple languages and of course re-using code for desktop apps like what Autodesk does.

  • @crab-cake
    @crab-cake 3 місяці тому +16

    one thing that's missing in most languages that i'd like to see in wasm is a web-sys equivalent. it's a rust crate that automatically generates dom bindings from webidl definitions. in other words, you can manipulate the dom from rust without js glue code. the js glue stills exists, but it's handled under the hood for you. that's why and how there are so many pure rust wasm frameworks.

  • @TheRafark
    @TheRafark 3 місяці тому +5

    JavaScript is only “alive and well” because they don’t want to give us direct access to the DOM. That’s the only reason JavaScript is still relevant in the browser.

    • @awesome-coding
      @awesome-coding  3 місяці тому +2

      who is "they"?

    • @trumpetpunk42
      @trumpetpunk42 3 місяці тому

      ​@@awesome-codingKanye West reference

    • @aka5
      @aka5 2 місяці тому

      ​@@trumpetpunk42I won't say what race, what people, "they" are... It was a Jewish "they"

  • @amit_go
    @amit_go 3 місяці тому +86

    2024 is for Go 💙

    • @typicalhog
      @typicalhog 3 місяці тому +12

      Rust

    • @Y-JA
      @Y-JA 3 місяці тому +3

      ​​@@typicalhogI share the sentiment (i do too prefer rust) but it seems like 2024 will be equaly great for both. If we can trust the Jetbrains survey, both Go and Rust have the highest expected growth rates based on the intentions of surveyed developers to either learn or migrate to a new language in 2024. Rust ranked at the top at 13% and Go was a close second at 11%.

    • @typicalhog
      @typicalhog 3 місяці тому

      @@Y-JA Yeah, I agree! Also, I mostly dislike Go because of the garbage collector.

    • @justafreak15able
      @justafreak15able 3 місяці тому +6

      ​@@typicalhogThe performance hit of GC is very negligible for a small app or even for a pretty big scale app. If you're running discord level servers sure it will hurt but go has already optimised their GC. You're an engineer and you are tasked with picking the right tools. Not just writing code in one programming language. Go is easy as fk and it's very easy to onboard new devs to a codebase. Picks what's best for the task and leave the bickering to junior devs.

    • @kasper369
      @kasper369 3 місяці тому +1

      I was thinking of learning Go but I got seduced by Assembly Script

  • @edism
    @edism 3 місяці тому

    Another great contribution to the devops UA-cam community 🎉

  • @wlockuz4467
    @wlockuz4467 3 місяці тому +3

    You never fail to present something unique compared to everyone else.

    • @awesome-coding
      @awesome-coding  3 місяці тому +1

      Thank you so much! It really means a lot 😊

  • @AchwaqKhalid
    @AchwaqKhalid 3 місяці тому

    Let's *GO* 🚀

  • @dmitriidemenev5258
    @dmitriidemenev5258 3 місяці тому +2

    Rust is amazing. And it's great for WebAssembly.

  • @DoktorKumpel
    @DoktorKumpel 3 місяці тому +5

    Don't you miss out on even more type safety by doing things like js.Global().Call('alert', 'x')?
    Or will it error if you mistype "alert"?

  • @zsmain
    @zsmain 3 місяці тому +1

    That's an amazing video, thank you

  • @dameanvil
    @dameanvil 3 місяці тому +1

    0:00 🌐 WebAssembly expands the scope of web development by enabling high-performance applications on the web.
    1:31 🧰 WebAssembly is type safe, offering a significant improvement over JavaScript's dynamic typing.
    1:45 🎯 WebAssembly serves as a compilation target for other languages, allowing developers to leverage the performance of different languages for web development.
    3:07 🛠 WebAssembly enables seamless interaction with the DOM and browser APIs, enhancing web app development.
    4:11 ⚡ WebAssembly offers near-native performance, making resource-intensive tasks feasible on the client-side.
    5:02 📡 WebAssembly facilitates client-side computations, reducing the need for server round trips in web applications.
    6:00 🖥 WebAssembly allows complex tasks like image processing to be efficiently executed in the browser, enhancing user experience.
    7:31 🛡 Despite JavaScript's dominance, WebAssembly provides undeniable advantages, such as type safety and mature tooling, in web development.

  • @Bourn77
    @Bourn77 3 місяці тому +16

    C# also supports fully fledged wasm development using Blazor framework, it's pretty much usable as a web framework these days

    • @Makeshitjusbecuz
      @Makeshitjusbecuz 3 місяці тому +1

      It wasn't as performant last I checked. But I hope it's much faster now.

    • @crab-cake
      @crab-cake 3 місяці тому +2

      @@Makeshitjusbecuz it's still extremely slow. if you look at js framework benchmark it's dead last. you can feel the clunkiness.

    • @Gruak7
      @Gruak7 3 місяці тому

      It regularly bottoms the krausest benchmark.

    • @orterves
      @orterves 3 місяці тому +1

      Its niche is still internal business apps in my opinion, and only if you're already a C# dev shop. But in that context, I like it a lot

    • @SirusStarTV
      @SirusStarTV 3 місяці тому

      It's fkng slow and assembly (dlls) are huge in size.

  • @yoanhg421
    @yoanhg421 3 місяці тому +7

    We have gone full circle to writing vanilla js in go to gain 0.5seconds in speed 😅.

    • @TheRafark
      @TheRafark 3 місяці тому +2

      500ms is A LOT

    • @yoanhg421
      @yoanhg421 3 місяці тому +1

      @@TheRafark it’s all relative. It may or may not be worth it depending on what you are doing, the libraries available, your expertise with the language, and product deadline. Always use the right tool for the job.

    • @kephas-media
      @kephas-media 3 місяці тому +1

      0.5 seconds, that's amazing, what did you do?

    • @kephas-media
      @kephas-media 3 місяці тому +1

      ​@@TheRafarkhere I was thinking I was the only one thinking this

  • @licokr
    @licokr 3 місяці тому

    Awesome!

  • @a-bites3203
    @a-bites3203 3 місяці тому

    Is threading in wasm now actually supported when using go?

  • @Jamo008
    @Jamo008 3 місяці тому

    To block forever, usually we do: select {}

  • @bugged1212
    @bugged1212 3 місяці тому +2

    Most of the apps would do fine with just JS, the stuff that one might need this for would be audio/video/image processing. Maybe live streaming data processing, something like stocks data stream. But I can't seem to think of major use cases beyond some niche ones.

    • @awesome-coding
      @awesome-coding  3 місяці тому

      I agree with you on the short time. On the long term there is an argument to be made that a lot more stuff will be moved into the browser, and the applications will grow in complexity.

    • @vitalyl1327
      @vitalyl1327 2 місяці тому

      Besides JS simply being the crappiest of the languages that ever existed?

    • @bugged1212
      @bugged1212 2 місяці тому

      @@vitalyl1327 And yet has the most high paying jobs eh.

  • @StingSting844
    @StingSting844 3 місяці тому

    I have begun to see web assembly as a means to reduce compute costs for actions that are traditionally done in a server. We are thinking to offload some data computation for our data intensive dashboards to WASM on the client's browser itself. The server would just stream the data and all processing can be done by them locally.

    • @dazzaondmic
      @dazzaondmic 3 місяці тому

      Did you have any success with this? I want to do the same for my dashboard as I've a lot of computationally expensive tasks that I think might give me performance improvements if I do them with WASM

    • @trappedcat3615
      @trappedcat3615 3 місяці тому

      Workers might be a better option. WASM can be laggy user experience for heavy computation, especially on mobile.

  • @manosragiadakos3928
    @manosragiadakos3928 3 місяці тому +9

    the problem with Go's WASM is the size and it does not compile CGo to WASM.

    • @9SMTM6
      @9SMTM6 3 місяці тому

      To be fair, the equivalents of the last point are present in every language except probably C(++) itself, as far as I am aware.
      Rust has the same issue. Kotlin does too.

    • @dmitriidemenev5258
      @dmitriidemenev5258 3 місяці тому

      I don't think Rust has this issue. It's on par with C and C++.

    • @9SMTM6
      @9SMTM6 3 місяці тому

      @@dmitriidemenev5258 while Rust, in contrast to Go, may have the capability to archive the same things as C tools, linking against C libraries while targeting WASM is not really possible, at least not without WASM specific work, which is difficult expecially if it's a dependency of a dependency - though, to be fair, probably possible, Cargo allows you to apply patches to libraries.
      Be aware that this is more from heresay from library devs, and that in a quick search to confirm, I could only find workarounds such as mentioned above. Particularly the thread I remembered was on rustybuzz, in a deprecation issue (closed now).
      The workarounds are of the nature of compiling both to WASM seperately and then finding a way to link them using adapters in the embedding (so mostly JS glue code).
      The 2nd point MAY at some point be solved with the component model, but as is, that standard is still in development and once finished it'll probably take some time until it gets into the toolchains.

  • @arabculture9201
    @arabculture9201 3 місяці тому +12

    Awesome in the European version of Fireship :)

    • @awesome-coding
      @awesome-coding  3 місяці тому +9

      Somehow this sounds like a really bad thing :))

    • @TechBuddy_
      @TechBuddy_ 3 місяці тому +6

      ​@@awesome-codingsounds like a compliment to me tho 🤷

    • @mangopopjuice
      @mangopopjuice 3 місяці тому

      Apart from the fact that there is no humour. Which is the one thing that makes fireship stand out. Good vid though

    • @TechBuddy_
      @TechBuddy_ 3 місяці тому

      @@mangopopjuice humour is hard!! And it's even harder to make everyone watching smile / laugh

    • @awesome-coding
      @awesome-coding  3 місяці тому +2

      @@TechBuddy_ @mangopopjuice so you guys are implying I'm not funny?! 🥲

  • @henson2k
    @henson2k 3 місяці тому +2

    When I was much younger something like that was called Java applet or OCX or ActiveX

    • @awesome-coding
      @awesome-coding  3 місяці тому +1

      Java Applets :)) that’s a blast from the past…

    • @SirusStarTV
      @SirusStarTV 3 місяці тому

      But wasm supposed to run on mobile also

  • @user-in3xs9gn2o
    @user-in3xs9gn2o 3 місяці тому

    I am fedup with blazor WASM. It's bulky and can't compare it with react or angular.

  • @clashcon11
    @clashcon11 3 місяці тому

    And you here in this site with js?

  • @jordanstewart225
    @jordanstewart225 3 місяці тому +1

    Great video! The global scopes terrify me

    • @awesome-coding
      @awesome-coding  3 місяці тому +1

      Thank you!
      Yep, I know what you mean. There are some ways to avoid the global scope with WASM and Go, but I kept it simple for demo purposes.

  • @yogeshrathod953
    @yogeshrathod953 3 місяці тому +4

    Will the debugging will be easy for wasm?

    • @awesome-coding
      @awesome-coding  3 місяці тому

      Yes - you have some tools you can work with.
      Check out this video: ua-cam.com/video/VBMHswhun-s/v-deo.html

  • @axMf3qTI
    @axMf3qTI 3 місяці тому

    So to show something on a page you'll always have to use the DOM? Let's say I want to animate a bitmap image, manipulate it over time through code. I'd have to use a canvas, write code, compile it to wasm and have that binary instruct the canvas on my page, Is this correct?

    • @awesome-coding
      @awesome-coding  3 місяці тому +1

      Yes, at the end of the day, you need plain old HTML (Canvas is"just" an HTML element at the end of the day) do display stuff on the page.

    • @aldrius00
      @aldrius00 3 місяці тому +1

      It still need js for DOM jobs.

  • @hurb9188
    @hurb9188 3 місяці тому

    Maybe in the future we can make games on browsers

  • @genomexp
    @genomexp 3 місяці тому +1

    Uptalk uptalk uptalk

  • @msahu2595
    @msahu2595 3 місяці тому

    ♥️

  • @sajan_paul
    @sajan_paul 2 місяці тому

    Go aint good for WA because of runtime memory footprint

  • @Fake7217
    @Fake7217 3 місяці тому

    AssemblyScript A TypeScript-like language for WebAssembly. No any resons to use go in front 😅

  • @ThePandaGuitar
    @ThePandaGuitar 26 днів тому

    just keep in mind, vanilla js is actually 15% faster than any wasm or rust to wasm library

    • @awesome-coding
      @awesome-coding  26 днів тому

      Are there any official stats you could share?

    • @ThePandaGuitar
      @ThePandaGuitar 25 днів тому

      @@awesome-coding check js-framework-benchmark or leptos creator video The Truth about Rust/WebAssembly Performance

    • @awesome-coding
      @awesome-coding  25 днів тому

      @@ThePandaGuitar Thanks!

  • @justintie
    @justintie 3 місяці тому

    Pretty messy I would say. I think doing this specific task would be easier on the server. It seems that WA makes more sense for heavier stuff like Photoshop or games.

  • @motoboy6666
    @motoboy6666 3 місяці тому +1

    Can we just stop or pause the learning of new stuff … for a … while … year?

    • @awesome-coding
      @awesome-coding  3 місяці тому

      What should we do in the meantime? :))

    • @motoboy6666
      @motoboy6666 3 місяці тому

      @@awesome-coding do webdevelopement .. without the constant parallell learning process and evaluation of tools 🤪☺️

  • @laas29
    @laas29 3 місяці тому

    The last time I had to compile js -> wasm, the resulting code was slower.

    • @awesome-coding
      @awesome-coding  3 місяці тому

      It's possible for certain. It's a matter of use cases.

  • @fishxsea
    @fishxsea 3 місяці тому

    I like the burp at the end of every sentence.

    • @awesome-coding
      @awesome-coding  3 місяці тому

      😂 you guys make me really self conscious about my voice.

  • @FzsHotDogInDonut
    @FzsHotDogInDonut 3 місяці тому

    Can it be hosted on c-panel?

    • @awesome-coding
      @awesome-coding  3 місяці тому

      The wasm module is a static file you can host any way you like.

    • @FzsHotDogInDonut
      @FzsHotDogInDonut 3 місяці тому

      @@awesome-coding niceee 💕

  • @x0z59
    @x0z59 3 місяці тому

    Bro, may I know the colorthemes of your editor from this video? thanks

    • @awesome-coding
      @awesome-coding  3 місяці тому

      Hey! It's the default dark theme offered by IntelliJ IDEA.

    • @x0z59
      @x0z59 3 місяці тому

      What intellij editor, bro. thanks
      @@awesome-coding

    • @awesome-coding
      @awesome-coding  3 місяці тому

      @@x0z59 www.jetbrains.com/idea/

    • @x0z59
      @x0z59 3 місяці тому

      thanks mate
      @@awesome-coding

  • @ulrich-tonmoy
    @ulrich-tonmoy 3 місяці тому +2

    In term of WASM SPA Blazor is great

    • @awesome-coding
      @awesome-coding  3 місяці тому

      I hear only good things about .net world these days

  • @salman0ansari
    @salman0ansari 3 місяці тому

    biggest turn-off for me is binary size.

    • @awesome-coding
      @awesome-coding  3 місяці тому

      That's fair. Go is not the best example here. You'll get way better results with C or Rust.

  • @TheTimeProphet
    @TheTimeProphet 3 місяці тому

    Naa I think I will stick with Angular.

    • @awesome-coding
      @awesome-coding  3 місяці тому

      That's a good idea, especially now that Angular is really getting simpler and better.

  • @browaruspierogus2182
    @browaruspierogus2182 Місяць тому

    why we still use js for gods sake

  • @keshavakumar9828
    @keshavakumar9828 3 місяці тому

    Please release a go course

  • @MagicNumberArg
    @MagicNumberArg 3 місяці тому

    WASM is awesome. aWASMe 😊. Its the next incarnation of "write once, run anywhere" having learned from JVM and CLR and improved upon them. Surprisingly, it feels like it's getting more interest on the backend than the front. There are even plans to have WASM-based containers.

    • @awesome-coding
      @awesome-coding  3 місяці тому

      Ah... the good old "write once, debug everywhere" promise!

    • @MagicNumberArg
      @MagicNumberArg 3 місяці тому

      @@awesome-coding it's got to come true one day. I mean, look at Docker at what it has done for "runs the same everywhere".

    • @zoladkow
      @zoladkow 3 місяці тому

      Ah... all the web needed is more obfuscated stuff

  • @fullstack4284
    @fullstack4284 3 місяці тому +5

    Its like using a machine gun to kill fly

    • @awesome-coding
      @awesome-coding  3 місяці тому +4

      Isn't this the best way to do it?

    • @fullstack4284
      @fullstack4284 3 місяці тому +1

      @@awesome-coding This is the way

  • @grinsk3ks
    @grinsk3ks 3 місяці тому

    And now someone will compile bun to wasm to run js faster in the browser

  • @akinoreh
    @akinoreh 3 місяці тому

    I thought I heard a burp, but now I'm not sure. There seems to be some audio imperfections:
    01:00 model
    02:00 model
    02:52 module
    07:15 app
    07:31 undeniable
    Is the voice AI-generated? They seem too strange to be authentic. I think.
    I came across your videos before, but haven't noticed this before.

    • @akinoreh
      @akinoreh 3 місяці тому

      Being curious, I took a look at the previous video and the first video. The previous one seems to have similar issues.
      React 19 - This Has To Stop!
      ua-cam.com/video/qSQtKtmj4M0/v-deo.html
      00:38 simple
      01:26 dilemma
      The first video has a different voice. It's much lower and clean. Had some spikes though.
      Build APIs with Spring and Kotlin
      ua-cam.com/video/34r-PMOdCbA/v-deo.html

    • @eypandabear7483
      @eypandabear7483 23 дні тому

      en.wikipedia.org/wiki/Vocal_fry_register

  • @robchr
    @robchr 2 місяці тому

    Now do kotlin multiplatform

    • @awesome-coding
      @awesome-coding  2 місяці тому

      Thank you for the suggestion! It is on the list ✌️

  • @user-gh4lv2ub2j
    @user-gh4lv2ub2j 2 місяці тому

    32 bit. It's 32 bit.

  • @minor12828
    @minor12828 3 місяці тому

    Still too complex

  • @dionysis_
    @dionysis_ 3 місяці тому

    1:00 burp 😂

  • @kasper369
    @kasper369 3 місяці тому

    Js dev: but wait, we have a secret wepon its called *Assembly Script* Muhahaha

  • @evccyr
    @evccyr 3 місяці тому

    Glad it's not the deno channel

  • @elhaambasheerch7058
    @elhaambasheerch7058 3 місяці тому +1

    Dont think it would be wise to replace JS in the browser.

    • @awesome-coding
      @awesome-coding  3 місяці тому

      Curious to find out why :)

    • @ThomasSselate
      @ThomasSselate 3 місяці тому +2

      It is urgent to replace JS everywhere 😅

  • @mlvki
    @mlvki 3 місяці тому

    can you make something about PHP?

    • @awesome-coding
      @awesome-coding  3 місяці тому +1

      It's on my list - I want to spend more time with it first, to make sure I have a good understanding of the more recent versions.
      Thank you for your suggestion!

    • @TechBuddy_
      @TechBuddy_ 3 місяці тому

      ​@@awesome-codinglarvel is fantastic!! And modern pho is better than php 4

  • @namaefumei
    @namaefumei 3 місяці тому +5

    Every year they said this lol
    It's not gonna happen
    Web is not that easy even if they could make it possible

    • @awesome-coding
      @awesome-coding  3 місяці тому +3

      Yea.. that' was like the first thing I joked about right when the video started...

    • @Malix_off
      @Malix_off 3 місяці тому

      WASM will not kill JS
      JS will still be the first language to interact with the DOM
      Everything else (web related) could be replaced to WASM

    • @TechBuddy_
      @TechBuddy_ 3 місяці тому

      ​@@Malix_offdepends! If wasm could run standalone without any js glue code it could replace js. Also for most languages wasm is an afterthought so the final binaries are huge which is a main blocker. Dart team and the go team are working to make this better thi, we'll see where this goes

    • @TechBuddy_
      @TechBuddy_ 3 місяці тому

      Man I had a looong comment and it disappeared into the ether lol 😂

    • @namaefumei
      @namaefumei 3 місяці тому

      @@awesome-coding I know I know I am just saying. It's not about what you said in the video. Just stating the fact

  • @Bond-zj2ku
    @Bond-zj2ku 3 місяці тому

    Const Video = yourChannelName ;

    • @alvinin
      @alvinin 3 місяці тому +1

      Error 404

    • @Bond-zj2ku
      @Bond-zj2ku 3 місяці тому

      @@alvinin oh there was a bug.
      Const greatVideoResource = thisChannelName ;

  • @naninano8813
    @naninano8813 3 місяці тому

    wasm would be cool if they actually let us use it for mutating dom and interacting with web api. i never want to have to work with JS. I have trauma from deciding to code in JScript 20 years ago for one of my assignments. what a truly repugnant garbage

    • @awesome-coding
      @awesome-coding  3 місяці тому

      In all fairness, JS is in a better shape now (especially with TS).

  • @yifeiren8004
    @yifeiren8004 3 місяці тому

    really can't see such a inconvenient thing could take off at any time. It is terrible.

  • @zlackbiro
    @zlackbiro 3 місяці тому +1

    Come on!!! You mentioned five steps in this procedure and you three times included JavaScript to make stuff running! How this can be more performant compared to pure JavaScript in 5 lines if code? Don't be stupid... BTW, the community for WASM compared to JavaScript is pure zero!

    • @ApodicticScott
      @ApodicticScott 3 місяці тому +2

      It’s performant depending on the task, because of going through a major compiler outside of WASM’s you can take C code, Rust code, etc and use it in your project. I would recommend reading on Figma’s journey of using it. They have a js navbar in there app but the rest iirc is written in C

    • @awesome-coding
      @awesome-coding  3 місяці тому +1

      @blackzerosrb Are you arguing that JavaScript is more performant than WASM? 😅

    • @EdwinManual
      @EdwinManual 3 місяці тому

      @blackzerosrb probably you are an intern or never grown out from that knowledge level

    • @eypandabear7483
      @eypandabear7483 23 дні тому

      I’m not a web dev but I suspect when you call stuff like “js.Global()….” that just calls the JavaScript runtime, different from “including Javascript”. The JS runtime is usually native compiled C++.