WebAssembly Tutorial - 3 - Streaming wasm Files

preview_player
Показать описание
In this video, we improve upon the framework used to call functions with ccall and cwrap. Here, we use streaming, which eliminates the need to include the large JavaScript file. Streaming directly takes a wasm file and then exports the functions for use on our webpage. This provides a much simpler and more intuitive solution. We will also use streaming from now on to integrate memory accesses along with other functions that streaming allows us to do.

Timestamps:
• Basic streaming: 0:00
• Multiple files: 08:56

Рекомендации по теме
Комментарии
Автор

Is something wrong with the audio? There's a good section of the video where the audio is very stuttery.

iantan
Автор

Hello Michael. Many thanks for this introduction to WebAssembly in the browser with emscripten. I appreciate your commitment for people learning WASM. This variant with streaming is so much better and clearer than the export with ccal and cwrap in the previous lesson. Looking forward to the next ones.

MarkusEicher
Автор

if anyone runs into an issue with the div keyword, it's now in the stdio library as a special keyword, you can fix it by simply using divv or div_ or however you'd rather it be.

TerryDavisMedia
Автор

I like you videos on WASM, very informative, keep going! As an augmented reality developer that primarily work on native mobile, I have high hopes in web assembly, it may be the only way (for now) for us to make great AR experiences on the web. Well, we still need to port all the computer vision algorithms to WASM but we'll get there eventually.

soverain
Автор

Thanks a lot professor, I appreciate your dedication.

ngocnguyenthihong
Автор

how can we do that with c# - not c/c++

browaruspierogus
Автор

I have a question that you may be able to help me with. Im making a game, and my question is about the game loop. I have a version that is working with pure js, single threaded that uses requestFrameAnimation to tick, but as expected its too slow for what I want. Worker threads were no help in solving the speed problem also. Im going to port my code to c++ and do it the webassembly way. My question is should I still use requestFrameAnimation to cause the game loop that calls functions from wasm or should I put the game loop in the wasm too?

ThatOneStuff
Автор

your tutorial so amazing thank you <3

peroforrr
Автор

it throw this error
Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #0 error: module is not an object or function

nano