003 realization of rust assembly Conway life game
0 Introduction
Video address: https://www.bilibili.com/video/BV1eg411g7c8 Relevant source code: https://github.com/anonymousGiga/Rust-and-Web-Assembly
In this section, we will use WebAssembly to implement a simple game.
1 rules of the game
In a two-dimensional grid, the state of each grid is "life" or "death". Each squar ...
Posted by Ansel_Tk1 on Tue, 08 Mar 2022 02:44:23 +0100
Throw away Electron and embrace Tauri based on Rust
What is TauriTauri is a cross platform GUI framework, which is basically similar to the idea of Electron. The front-end implementation of Tauri is also based on a series of Web languages, and the back-end of Tauri uses Rust. Tauri can create smaller, faster and more secure cross platform desktop applications.Why Rust?Rust is a language that giv ...
Posted by smonsivaes on Tue, 22 Feb 2022 03:08:02 +0100
Rust life cycle
Rust life cycle
First, each reference has a life cycle, that is, the reference maintains a valid scope
The scope of a reference starts from the declared place and continues until the last use
let a=String::from("a");
let b=&a;//The birth of b is not followed by the use of b, so b dies
During the borrower's life, the owner mus ...
Posted by RON_ron on Mon, 21 Feb 2022 09:10:42 +0100
Using RUST to write the actual combat of streaming media server -- rtmp chunk stepping on the pit record
Using RUST to write the actual combat of streaming media server -- rtmp chunk stepping on the pit record
In recent months, I've broken my guard and focused on a new open source project, a streaming media service written in trust xiu. I stepped on a lot of holes in the process of implementation. Today, let's talk about the chunk in rtmp.
RTMP p ...
Posted by Mieke23 on Sat, 19 Feb 2022 23:50:29 +0100
Rust homemade memory cheater
preface
Cheat Engine is a game focused cheater. It can be used to scan the memory in the game and allow them to be modified. This tool may not have been heard of, but the famous Jinshan Ranger must have been used by everyone more than ten years ago.
By chance, I saw a project written by Rust. I liked his concise grammar and gathered the advan ...
Posted by Bobulous on Mon, 14 Feb 2022 02:59:42 +0100
rust real-world series - Fibonacci using Iterator iterator
Why Fibonacci Sequence
The Fibonacci sequence is well suited for the iterator used in real-world rust, and the algorithm is simple and straightforward. This example can be used to learn the use of Iterator and is a good example for practice after learning the iterator chapter of rust.
Code Actual
don't bb, show me the code
struct Fib(usize, ...
Posted by co.ador on Fri, 04 Feb 2022 18:11:30 +0100
rust real-world series - Fibonacci using Iterator iterator
Why Fibonacci Sequence
The Fibonacci sequence is well suited for the iterator used in real-world rust, and the algorithm is simple and straightforward. This example can be used to learn the use of Iterator and is a good example for practice after learning the iterator chapter of rust.
Code Actual
don't bb, show me the code
struct Fib(usize, usi ...
Posted by lordfrikk on Fri, 04 Feb 2022 18:04:45 +0100
Language features of Rust introduction series - 1
1. GeneralRust is a compiled language (AOT - ahead of time). It needs to be compiled before generating executable code, which is fundamentally different from interpreted languages such as JavaScript.2. Variables and variabilityVariables are declared through let in Rust, but the variables declared by let are Immutable by default (_Immutable_) va ...
Posted by COOMERDP on Thu, 03 Feb 2022 15:45:35 +0100
rCore qemu risc-v experimental environment configuration
[reference] environment deployment - rcore tutorial deploy - gitbook: https://rcore-os.github.io/rCore-Tutorial-deploy/docs/pre-lab/env.html [reference] experimental environment configuration - rCore-Tutorial-Book-v3 0.1 document: https://rcore-os.github.io/rCore-Tutorial-Book-v3/chapter0/5setup-devel-env.html [reference] qemu/qemu: Official QE ...
Posted by Hodo on Fri, 28 Jan 2022 10:39:23 +0100
002 learn the linked list layout of Rust notes through the linked list
introduce
Video address: www.bilibili.com/video/av78062009/Relevant source code: github.com/anonymousGiga/Rust-link...
The most common linked list in Rust
Define a linked list with functional syntax as follows:
List a = Empty | Elem a (List a)
A linked list is either an empty type or a value followed by a linked list. This type is called re ...
Posted by Kyrst on Fri, 28 Jan 2022 09:04:37 +0100