How we rusted. Implementation and training history

Everyone said switch to rust! Start using the most-most language, which is the most favorite language on stackoverflow and all that.





I sighed heavily and looked around. Well, again twenty-five. Okay, let's figure out how to properly cover everything with rust.





I have been programming professionally for 17 years. Back in the old days, I started learning programming with x86 Assembly. This brutal approach to learning a computer gave me a deep understanding of how the processor works and what other programming languages ​​do. Learning new languages ​​has never been a problem for me. I just taught them. C, C ++, sharps, GO, thousands of different scripts and frameworks. What is really there, one more language, you can learn.





Yeah. But not with this rusty wreck. I sat for two weeks on the official manual, staring at VSCode and couldn't get more out of myself than fn main () {}. Well, what the hell?





, . , . … . . - - .





. . -. rust , – . , , todo-list -. .





– rust. . , , – , , . . - ? . C# . JSON, POST API. , Node.js, , JSON, (postgres). , . , . : « ! !» Elasticsearch. , : « !» Doker , , docker-compose .





. 250. 50 . , . 32 24 . 16 - Elasticsearch, .





--. . - . , , - rust?





0:

, , . ++ MSDN. .





- ? . .





The Rust Programming Language – , . , , , . (600 )





The Rust Reference – , , . rust enum? . - , . (300 )





Rust Compiler Error Index – rust . . . . . (400 )





Rustonomicon – - rust «». , . rust . (200 )





- . , . , . , .





1: , ?

rust , , .





, - rust? , rust LLVM . ? - , . rust - . - « » , .





rust 5%? . . , rust , , .





:





.net core 3: – 6 .





rust: – 240 .





! – ! .





, (Windows 7).





? .net core ! ? .





, .





? 89 !





! , .net! ! !





, rust. , , …





The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem.









, … 569 .





. - . , . , .





- . -, . . ?





2: ,

. 38 (600 ) :





. « ». , . , , ?





.





. «» «» , .





, , rust , , . , . , « ᾋﯓﻼ҉ᴪᾠﭥ», .





, , !





!





.





№4 Understanding Ownership. . rust, . , rust .





. , . ? . , .





, , . . ?





The result of proper memory management.
.

– .





. , , , . . , , .





? , , , .





rust : – , , . , , , .





. -! .





, . . .





:





let s1 = String::from("hello");







let s2 = s1;







println!("{}, world!", s1);







, . rust . ? , .





, .





Ownership . , .





3:

№4 №3.





, «». .





№3 . , , . 4.





, . 5 ( ), 6 (Enum ), , , 8 (). .





№4. .





№9 ( ).





rust – Null. “Null is a mistake” . 1965 , Null .





Rust Null , . – , , rust.





№7 , , . №10, , .





№4. .





10 13 17. rust - , , .





. 15 16. №4 . ? , , .





. , .





, – . №1 №2. ( ). . rust.





, , - - , . , . , . :





  1. . ( ).





  2. The Rust Reference.





, todo-list.





4:

.





, .





– . , , , . – rust . - « , 1% » 1% . .





№4 « ». , rust , . . , , .





crates.io.





rust . . .





, 2 postgres. , 10- , . rust . Float , - Decimal. Decimal , . , posgresql , Decimal Postgres Decimal.





4 .





, rust – . , rust , - . . Decimal, , , – « Decimal. Decimal. . !»





, , .





, , . tokio, actix rocket.rs. ( , ) .





5: ?

. 100- C# 564 rust. 200 1.2 RAM rust. ( - ).





, , . , , , yaml , . Elasticsearch. -. , – Elastic csv. Excel. Elastic cli, csv , postgres.





web . ( ). 12- TOML , rust . -. , . . .





. postgres rust . raspberry Pi .





Rust . . , . , C#, 100 , 250 .





. , , - 20 . Rust . .





Last:

Rust . . agile rust 20 . Rust . rust , , , , . , , .





rust ? ! .





, - node.js 2 ? ! !





Add rust to existing C and C ++ projects? Think again. Rust makes you think differently. And all of the great memory management features rust has in C and C ++ as well. Of course, they need to be installed separately and configured as expected, but if the project is already many years old, it may not be worth it. Let it ride.





So go ahead and rust. It's fun here.





PS Hobby - disassembly. Taking apart overloaded server applications. I'm taking down the docker. Reducing my AWS bills.








All Articles