Category: Technology



In this video I show the process of setting up AssemblyScript to WebAssembly compilation and how to test and evaluate the performance of placing computation in WASM compared to just using Javascript. AssemblyScript has the goal to provide TypeScript like syntax as much as possible and is therefore suitable for those that prefer to write Javascript and TS over alternatives like C, C++, Python, Go, Rust, Java, PHP, and so on. The functions covered in the video is a simple Add function, Factorials and Squaring all elements in an array. I also try to investigate the impact of passing large parameter payloads between JS and WASM and the glue code needed when passing more complex datatypes as parameters. Enjoy! 😀 Full Code: https://github.com/danba340/assemblyscript-benchmarks Setup from scratch steps:
npm init -y
npm install –save @assemblyscript/loader
npm install –save-dev assemblyscript
npx asinit .
npm run asbuild Twitter: https://twitter.com/BarelyDaniel
Github: https://github.com/danba340 0:00 Intro
1:00 Files overview
2:53 Try the tests
3:30 Factorial AS
4:38 Factorial Test
5:30 Setting up Benchmark
9:30 Add & Factorial Benchmark
12:52 SquareArray AS
14:09 SquareArray Glue Code
17:52 SquareArray Test
19:30 SquareArray Benchmark
23:00 SquareArray no payload Benchmark
24:43 What did we learn? https://www.youtube.com/watch?v=FeoxFeJbHK0



When building with GraphQL you define the schema up front and this can be really handy go use when it comes to writing the queries, resolvers, etc., especially if it’s in TypeScript. So, how do you go about doing the type generation? We’ll take a look at a tool that can generate you the TypeScript types, then implement our backend using them before looking at how they can plug into the front end with React Hooks. We’ll cap off by learning how to model our storage platform effectively using its own types and combine them with the GraphQL schema types. PUBLICATION PERMISSIONS:
Original video was published with the Creative Commons Attribution license (reuse allowed). Link: https://www.youtube.com/watch?v=G2HUgV30EG4 https://www.youtube.com/watch?v=DfZVi1DwpsM



In this webinar, you will learn about how a blockchain is built, the most common inner workings, and the different use cases and applications. You will learn from the live code demo how to build a basic blockchain with JavaScript. PUBLICATION PERMISSIONS:
Original video was published with the Creative Commons Attribution license (reuse allowed). Link: https://www.youtube.com/watch?v=9HrEwEhIzGo https://www.youtube.com/watch?v=JiEAuaNFZGo