The Rust Programming Language - the final project in Chapter 20: building a multi-threaded web server - 20.1 building a single threaded web server

The last project: building a multi-threaded web server In this chapter, we will practice a project. By the way, we will review the contents of the previous chapters. This project will realize Yuge's return to the "Hello" web server Here is our plan: 1. Learn some TCP and HTTP knowledge 2. ListeUTF-8...

Posted by anand_ragav on Tue, 07 Dec 2021 21:29:14 +1030

Rust programming language

preface I'm really a little anxious recently. I feel bad There are some common data structures in Rust's standard library to help us develop code faster and better. This data structure is called a set. Most other data structures, such as int, can only represent one value, while a set can have mUTF-8...

Posted by phpuser_2000 on Wed, 08 Dec 2021 16:17:02 +1030

My RUST study -- [chapter 4-3] Slices

This department in the official documents is too bad. I directly describe it with my understanding. Slices type In the previous chapter, we mentioned borrowing and reference, which can bypass ownership. In this chapter, we talk about another data type without ownership, slice. Slice allows you UTF-8...

Posted by carichod on Wed, 15 Dec 2021 05:46:06 +1030

[algorithm] 2037. Make each student have the minimum number of seat movements (Java / C / C + + / Python / go / trust)

2037. Minimum number of seat movements for each student: There are n seats and n students in a room. The room is represented by a number axis. Give you an array of seats of length N, where seats[i] is the position of the ith seat. At the same time, give you an array of students with length N, UTF-8...

Posted by jamieh on Mon, 20 Dec 2021 17:40:26 +1030

A Rust raw pointer problem encountered

Yesterday, when I was doing the title, I encountered a situation that the pointer to be maintained pointed to the node in the linked list, so I used unsafe. Then I encountered a very strange phenomenon, a println in the unsafe block, which is irrelevant to the whole program! () statement can afUTF-8...

Posted by Benaravo on Thu, 23 Dec 2021 03:16:39 +1030

Basic technical description of RUST network client - trait

1, Trail in Rust People who study c + + know Traits, extraction technology, which is mainly used to obtain specific data types. In Rust, this Trait is regarded as a "feature", which is more similar to the concept of interface. Macroscopically speaking, the interface is more advanced and broaderUTF-8...

Posted by stweaker on Sat, 25 Dec 2021 16:54:04 +1030

Comparison of Let's Go Rust series

prefacefor range syntax sugar is provided in golang to help us easily traverse data or slices, as well as map and channel; In t rust, for in syntax sugar is provided to help us easily traverse Array, Vector or slice, or map. This article will introduce the mechanism behind these syntax sugars iUTF-8...

Posted by sualcavab on Tue, 11 Jan 2022 13:54:55 +1030

Principle and design idea of EVM and Wasm virtual machine

EVM and WASM(EOS virtual machine) Fundamentals EVM is a complete Ethereum virtual machine (EVM) of Ethereum Turing Instructions are translated and executed by the programEVM adopts a non mainstream 256bit integer for the sake of so-called operation speed and efficiencyFloating point numbers areUTF-8...

Posted by robdavies on Mon, 24 Jan 2022 14:20:25 +1030

QUIC implementation in Rust --- quinn

1 QUICQUIC is a multiplex and secure transmission protocol based on UDP. It can be simply understood as implementing the mechanisms in TCP in user space, such as congestion control, flow control, etc. The advantage is that the upgrade is more convenient. The TCP protocol stack is implemented inUTF-8...

Posted by portaloo on Sun, 30 Jan 2022 16:55:48 +1030

Construction of Rust cross compilation development environment

Introduce a new programming language for embedded development For the development of embedded system software and application software, the importance of programming language is less important than the overall software architecture design. However, it is still necessary to choose programming laUTF-8...

Posted by bpp198 on Tue, 01 Feb 2022 03:32:31 +1030