Rust & WebAssembly with JS (TS) - The Practical Guide

所在平台: Udemy

课程主页: https://www.udemy.com/course/rust-webassembly-with-js-ts-the-practical-guide/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Rust与WebAssembly结合JavaScript(TypeScript)的实用指南 课程概述: Rust是一种高性能、内存高效的编程语言,没有运行时或垃圾收集器,能够支持性能关键的服务,运行于嵌入式设备,并且能够与其他语言轻松集成。WebAssembly是一种能够在现代网页浏览器中运行的新型代码,是一种低级的类似汇编语言,具有紧凑的二进制格式,能够以近原生性能运行,它为C/C++、C#和Rust等语言提供了编译目标,使其可以在网页上运行,并且与JavaScript协同工作。 谁适合这门课程? 如果你计划开始你的开发者职业生涯或提升编程技能,这门课程就非常适合你。在课程中,你将学习如何使用最少的JavaScript和编译为WebAssembly指令的Rust代码来构建一个浏览器游戏。你将获得开始项目所需的信心和技能,同时也会培养申请开发者职位所需的心态。 你将要进行的工作: 你将从零开始构建贪吃蛇游戏,学习用Rust语言编写代码。这门课程以Rust语言的解释和实践示例开始,你将学习Rust特有的特性,如“移动”和“复制”。Rust没有垃圾收集器,内存会在值超出作用域时自动释放,你将轻松管理这个概念。接下来,你将学习借用和引用,通过引用访问值而不拥有它们。 在课程的初始讲座中,我们还将讨论栈和堆结构中的内存管理、模块化、字符串及其他重要主题。完成Rust语言的介绍后,你将开始构建贪吃蛇游戏,学习如何模块化地干净地结构化应用程序。你将构建自己的JavaScript前端,通过简单的Webpack开发服务器进行暴露。之后,你将把JavaScript实现转变为TypeScript(TS),指定类型,使其与Rust代码保持一致。 接下来,你将编写Rust后端代码,作为游戏的核心。你将学习如何将Rust代码编译为WebAssembly代码,WebAssembly是可以在浏览器中运行的代码,其速度(几乎与本地速度相当)和效率超过JavaScript。课程结束时,我们将创建一个生产服务器并将游戏部署到Heroku,以便任何互联网用户都可以畅玩游戏。

课程评论(0条)

课程详情

What is Rust?Rust is a programing language. Rust is blazingly fast and memory-efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, and easily integrate with other languages.What is WebAssembly? WebAssembly is a new type of code that can be run in modern web browsers - it is a low-level assembly-like language with a compact binary format that runs with near-native performance and provides languages such as C/C++, C#, and Rust with a compilation target so that they can run on the web. It is also designed to run alongside JavaScript, allowing both to work together.Is this course right for you?If you plan to start your career as a developer or improve your programming skills, this course is right for you. Learn how to build a browser game with minimal JS and Rust code compiled into WebAssembly instructions.You will get the confidence and skills required to start your projects during this course. In addition, you will get the right mindset to apply for a developer career.What are you going to work on?You will build the Snake game from scratch. You will learn to write code in Rust language, static type, compiled language.The course starts with an explanation and practical examples of the Rust language. You will learn Rust-specific features such as "moving" and "copying"Rust doesn't have a garbage collector. Memory is cleared when the values are getting out of the scope. You will learn how to manage this concept with ease.The next feature you will learn of is borrowing and references. Through references, you will be able to access values without owning them.In the beginning lectures, we will also talk about memory management in Stack and the Heap structures, modularity, strings, and other essential topics.After Rust's introduction lectures, you will start building your Snake game. You will learn how to structure the application modular and cleanly. You will build your own JS frontend, exposed through a simple Webpack development server. Later, you will transform JS implementation into TS (Typescript). This will specify types and be on the same page as Rust code.You will build your rust backend code, the backbone of our game. You will learn how to compile Rust code into WebAssembly code. WebAssembly is code that can run in the browser. It's faster (almost Native speed) and more efficient than JS.At the end of the course, we will create a production server and deploy our game to Heroku, so anybody on the internet can play our game.

课程标签

0人关注该课程

主题相关的课程