I just want to say thank you for this. There are certain programming concepts that don't click for me until they are explained at the byte-level, and this really helped me understand what was going on at a deeper level than any other video I've seen on the topic!
@waliqadri Жыл бұрын
Oh my god, webassemly took me back 20 years,. Miss that time when everything was so simple. We used to have simple command line compilers like asm2exe
@sourdface Жыл бұрын
The bytecode generated was surprisingly easy to understand with the comments given.
@luciano.7b63 жыл бұрын
Hi! I'm from Brazil, I was looking for video tutorial about WEBASSEMBLY and I found this. I'm glad I found you Chris Hay.
@chrishayuk3 жыл бұрын
Glad it was helpful!
@aperson40513 жыл бұрын
Great video! 25:24 - The final WASM binary is only actually 43 bytes! You highlighted the .wat text version :)
@chrishayuk3 жыл бұрын
hahaha doh!!! thank you, glad you enjoyed
@henrmota Жыл бұрын
I noticed that you bring very interesting topics to discussion. Maybe you could make a video explaining how do you learn this new and complex things, and what basic knowledge we should have to investigate this topics by ourselves.
@jorgegomes832 жыл бұрын
Great content you have here. I was looking for something like this to get started messing with wasm. Many thanks!
@chrishayuk2 жыл бұрын
Glad it was helpful!
@migom63 жыл бұрын
More web assembly please ❤️
@chrishayuk3 жыл бұрын
I have some more in the pipeline :) thanks for the great comment
@jamesmccafferty88692 жыл бұрын
Great video. Just saved me a few days of digging
@chrishayuk2 жыл бұрын
Great to hear!
@zbighugh91932 жыл бұрын
When I ran "node server.js" I got a "Cannot use import statement outside a module" error. I found out you have to add "type": "module", to package.json like { "type": "module", "dependencies": { "express": "^4.18.1" } } and that fixed the problem. Also, it was not clear that the test.html should be placed in the 'public' folder. But great tutorial. Got everything to work.
@caseyonline2 жыл бұрын
awesome .. perfect level of instructional details.
@chrishayuk2 жыл бұрын
Glad you liked it!
@109Rage3 жыл бұрын
0:14 - "You're probably never going to hand-code WebAssembly for real world projects" Me, deciding to hand-code a compiler in WebAssembly: 🙃
@chrishayuk3 жыл бұрын
wooohooooo, that sounds like a lot of fun
@jomy10-games2 жыл бұрын
This is exactly what I was looking for. This will be a great challenge
@chrishayuk2 жыл бұрын
glad it's useful
@johnhanley24312 жыл бұрын
Bravo. Videos of this quality spark new ideas.
@chrishayuk2 жыл бұрын
Glad you like
@mineeduka4488 Жыл бұрын
Wow beautiful it is strong type and it has a stack. So beautiful ❤️
@MikeNugget3 жыл бұрын
Would be nice to discuss real examples of using wasm, when and why should it be used. In my opinion the real case is intensive calculations or complex maths but just array sorting.
@chrishayuk3 жыл бұрын
good shout.. i have a plan for a video on that soon... there is some killer use-cases especially around sandboxing in paas/saas environments
@rishikadhikari63262 жыл бұрын
To allow complex applications such as AutoCAD to run on the web
@MikeNugget2 жыл бұрын
@@rishikadhikari6326 Nice one. But I think WASM application is more narrow like transferring some tools written in one language as ffmpeg rather than porting the entire ecosystem because then everything would be run in the browser.
@rishikadhikari63262 жыл бұрын
@@MikeNugget Figma has its main design engine implemented using web assembly and big companies like adobe are trying to do the same thing. Web assembly is just amazing. Waiting for it to be more advanced.
@MikeNugget2 жыл бұрын
@@rishikadhikari6326 I know I know, but you can't simply port large desktop app to the web and just run it in your browser unless it was made in some cross platform engine or framework. So let's hope that WASM support will be more developed in game engines and frameworks.
@dmitryponyatov21582 жыл бұрын
What learning resources can you recommend if I want to write my own frontend language using WASM that mixes Smalltalk and Erlang features? I don't mean basics like Dragon or Blue books, but maybe some live coding sessions available, or detailed descriptions of how message-based languages can be implemented step by step.
@chrishayuk2 жыл бұрын
i think binaryen is good place to start.. github.com/WebAssembly/binaryen it's what assemblyscript uses.. i do plan to do a vid at some point but it's probs a little bit away on the backlog
@faris.abuali2 жыл бұрын
Thanks! Learned a lot from you
@chrishayuk2 жыл бұрын
Glad to help!
@safiaguellil3660 Жыл бұрын
Thank you very much! Very useful and interesting!
@sau0022 жыл бұрын
Excellent
@chrishayuk2 жыл бұрын
Thank you so much 😀
@timexpeachtree3 жыл бұрын
This is great 👍, I believe all Blazor 🔥 devs who want to be pro level, must see this 🙌
@chrishayuk3 жыл бұрын
thanks for the kind comments. got more to come on webassembly...
2 жыл бұрын
Amazing, man!
@chrishayuk2 жыл бұрын
Thank you! Cheers!
@AnasAlZuvix3 жыл бұрын
We need more video on WEBASSEMBLY.
@chrishayuk3 жыл бұрын
maybe check out my vid on webassembly stack machine... kzbin.info/www/bejne/fqLClJ1tbMuop9E
@IasonOrlandosOx Жыл бұрын
Thanks ! Great one
@dmitryponyatov21582 жыл бұрын
Is WASM has some movement toward being itself as a generic runtime both for web backend and frontend? front/back convergence will be great for things like data exchange without serialization (VM-native binary messages), and code sharing
@chrishayuk2 жыл бұрын
i think it's early, but i see it coming
@bendo013 жыл бұрын
Thank You so much for these videos
@chrishayuk3 жыл бұрын
You are so welcome!
@benjaminmoseslieb9856 Жыл бұрын
Great video. At 15:28 is that really "binary"? I've heard that some people use machine, binary, assembly and byte code interchangeably, but aren't there important differences?
@gregoryshields42582 жыл бұрын
I’m curious what is that app you’re drawing on. Apparently you’re using a stylus on your iPad?
@chrishayuk2 жыл бұрын
GoodNotes is the app, and yes using a stylus with my ipad
@gregoryshields42582 жыл бұрын
@@chrishayuk Thanks!
@mandeadaniel13143 жыл бұрын
Nicee 🚀🙌
@parkrw2 жыл бұрын
Do you have in mind including golang/wasm like rust / wasmt ??
@chrishayuk2 жыл бұрын
Yeah happy to do so, I jump around different languages quite a bit, so wasn’t sure if folks wanna see me code in another lanaguage loool, happy to do Go, it’s a language I very much enjoy coding in
@PaulFidika2 жыл бұрын
I am so disappointed that they went with .wat for the file extension name rather than .wtf (webassembly text format)
@chrishayuk2 жыл бұрын
loooool, i never made the connection
@agumonkey3 жыл бұрын
wasm bringing lisp and forth through the backdoor. #RPL
@enjoywatching27002 жыл бұрын
very nice 👍
@chrishayuk2 жыл бұрын
glad the webassembly vids are hitting with you, and thanks for commenting
@darkmojojojo2 жыл бұрын
Some sample code downloads would be good too. I copied this pretty much to the letter and node won't compile so I have no idea what I'm doing wrong and since you copy-pasted code it's possible I missed something.
@JackyPup9 ай бұрын
Is there a market for web_assembly?
@DuyTran-ss4lu2 жыл бұрын
Awesome
@chrishayuk2 жыл бұрын
thank you, glad you liked 😀
@andrewgibson8794 Жыл бұрын
Any good books to learn this?
@rmschindler1443 ай бұрын
installing WABT: on macOS, with Homebrew: `brew install wabt`
@claytonsurgeon3 жыл бұрын
Much appreciated
@chrishayuk3 жыл бұрын
Thanks for the kind words, glad it was useful
@cadetriestocode2 жыл бұрын
Wow web assembly is very lispy
@_realist_69572 жыл бұрын
your eyes expressions are dangerous XD
@chrishayuk2 жыл бұрын
Hahaha hadn’t noticed that before
@okposongebong40662 жыл бұрын
Hi, thanks for shaing... You said you were lazy by calling the local.get 0 twice. Hiw else would you write this?
@chrishayuk2 жыл бұрын
i was thinking about creating a function that would be a power rather than a square which would give reusability.
@niketanjha3 жыл бұрын
Great.
@satya48663 жыл бұрын
Cool
@chrishayuk3 жыл бұрын
thank you so much
@axeleli68453 жыл бұрын
thanks
@chrishayuk3 жыл бұрын
You're welcome!
@mineeduka4488 Жыл бұрын
You're using a dark room and i don't understand why. Dark room is pain for eyes
@chudchadanstud2 жыл бұрын
wat?
@Yas-gs8cm2 жыл бұрын
bruh, that's just lisp
@chrishayuk Жыл бұрын
it's very stylistically close to lisp due to the use of S-Expressions
@TheChrisey Жыл бұрын
Keep in mind that even though web assembly is much faster than JS, it is no way near native performance. virtual machine code and managed memory is still several times slower than native code.
@darkmojojojo2 жыл бұрын
I'm getting: await WebAssembly ^^^^^ SyntaxError: Unexpected reserved word
@darkmojojojo2 жыл бұрын
So apparently I had an old install of node so problem solved.