Getting started with AssemblyScript | WebAssembly | Tutorial

preview_player
Показать описание
This video gives an introduction into AssemblyScript. AssemblyScript is a fun typescript based language that compiles down into WebAssembly. For folks who are experienced in JavaScript or Typescript and want to get started with WebAssembly this is the ideal language.

In this tutorial, I show you how to install AssemblyScript on your machine and get started with it in VSCode. We look at how easy it is to write some AssemblyScript including unit testing and running it in Node.JS. In addition we also look at how small and efficient the compiled WebAssembly is (and how close it is to code you would hand code yourself). Finally we look at the compiler optimizes the code you create. We look at the difference between optimized and optimized generated WebAssembly.

00:00 - Intro
01:48 - Scaffolding an AssemblyScript project
04:31 - Understanding the scaffolded project
06:00 - Coding your first AssemblyScript code
07:54 - Compiling your AssemblyScript
10:00 - Looking at the generated WebAssembly (WASM)
13:53 - Unit Testing your WebAssembly
16:38 - Optimized and Unoptimized WebAssembly
19:25 - Running your WebAssembly in NodeJS
21:28 - Outro
Рекомендации по теме
Комментарии
Автор

Chris,
That's an amazing introduction to as, to the point. Thank you!

msauditech
Автор

I've been learning rust and wanted to give it a try to WASM. I must say your videos are really helpful and well explained. Thanks!!

shipudentavo
Автор

Great video!
It would be amazing if you could show us (maybe you did in another video?) How to use this compiled module in the browser

PabloGnesutta
Автор

Great video. Concise information. The right amount of technical info. What would be interesting would be a speed test AS vs TS, such as finding top 1000 prime numbers (or whatever speed test). One thing I would like to better understand is when WASM is the right choice vs JS given the pros\cons.

nrnoble
Автор

good videos & i like your presentation style also. I have watched this whole list and start follow you, on twitter. Please continue journey with 'C' and advance topics such as optimization

Verile
Автор

I want to see an array function done in AssemblyScript

ehudkirsh
Автор

I find it ironic that Rust is suitable for embedded programming but it produces a wasm file significantly larger than than this javascript-like language. Can you get a compact wasm file by writing Rust module like it is for an embedded application?

MikeM
Автор

Is there a link to a repo? also. How do you overlay your code and videos? It looks cool.

ShaggtyDoo
Автор

Good video. Hope you keep uploading more WASM videos
I have a query, can people see the code found in wasm as it happens with javascript? Or in this case the code is obfuscated?

EladioRochaV
Автор

Running "npm run asbuild" returns the error "SyntaxError: missing ) after argument list". The solution is to install Nodejs version 16. On my system default install is Nodejs version 14.

johnhanley
Автор

how to use big.js with assembly script

limlimhooiyahoocom