코딩Coding/한글Rust강의★내가★공부하려고만듬
-
Rust Error Handling❤️코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 18. 20:08
https://stevedonovan.github.io/rust-gentle-intro/6-error-handling.html Error Handling - A Gentle Introduction to Rust Error handling in Rust can be clumsy if you can't use the question-mark operator. To achieve happiness, we need to return a Result which can accept any error. All errors implement the trait std::error::Error, and so any error can convert into a Box . Say w stevedonovan.github.io
-
rust❤️wasm] wasm-bindgen동영상 만들 예정❤️코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 18. 09:32
https://github.com/rustwasm/wasm-bindgen GitHub - rustwasm/wasm-bindgen: Facilitating high-level interactions between Wasm modules and JavaScript Facilitating high-level interactions between Wasm modules and JavaScript - GitHub - rustwasm/wasm-bindgen: Facilitating high-level interactions between Wasm modules and JavaScript github.com safari로 the option to inspect 창 보는 법 JavaScript Console창 Chro..
-
macOS) Rust programming language Path Setting코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 17. 09:30
https://youtu.be/kWRD0h_5zGI source $HOME/.cargo/env https://i5i5.tistory.com/m/378 [Linux] which 명령어가 나타내는 PATH 바꾸는 방법. How to change the path that comes with the output of which comman 궁금한 것 which 명령어가 나타내는 PATH 바꾸는 방법. (How to change the path that comes with the output of which command?) 보통 리눅스 시스템에서 which mex를 입력하면 AAA 명령어에 대한 해당 경로가.. i5i5.tistory.com Quick fix: open terminal go to preferen..
-
Porting Java's❤️ConcurrentHashMap ❤️to Rust (part 1~3)코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 16. 21:26
https://youtu.be/yQFWmGaFBjk part 1 Timestamps: 0:00 intro 10:57 Reading java's Concurrent Hash map documentation 51:17 Copying documentation and constants 1:01:09 Starting node 1:11:07 Writing BinEntry::find 1:31:47 Creating flurry hash map 1:45:17 Writing get 2:11:47 Writing put/insert 3:13:43 Transfer/resize 4:46:35 Porting >>> java shift 4:52:16 More resize 5:26:14 Questions and conclusion P..
-
Rust❤️동영상 만들 예정) todo앱 만들기 wasm최신 웹기술 들어감코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 16. 07:50
https://github.com/DioxusLabs/example-projects GitHub - DioxusLabs/example-projects: Featured Dioxus projects on how to build clean user interfaces in Rust Featured Dioxus projects on how to build clean user interfaces in Rust - GitHub - DioxusLabs/example-projects: Featured Dioxus projects on how to build clean user interfaces in Rust github.com
-
Rust❤️) rayon을 활용하여 벡터에 담은 숫자를 차례대로 출력하기 모든 답은 공식 문서에 ^^;코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 14. 07:03
use rayon::prelude::*; use std::time::Instant; fn main() { let time_1 = Instant::now(); let time_2 = Instant::now(); let async_vec_1: Vec = (0..100).into_par_iter().collect(); let async_vec_2: Vec = (0..100).into_par_iter().collect(); for i in async_vec_1.iter() { println!("1 Thread Element : {:?}", i); } let time1_ela = time_1.elapsed(); for i in async_vec_2.iter() { println!("2 Thread Element ..
-
Rust❤️ ] rayon을 활용한 벡터에 이쁘게 숫자 차례대로 담기코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 14. 06:46
use rayon::prelude::*; use std::sync::mpsc::channel; fn main() { let (sender, receiver) = channel(); (0..5) .into_par_iter() .for_each_with(sender, |s, x| s.send(x).unwrap()); let mut res: Vec = receiver.iter().collect(); res.sort(); println!("{res:?}"); } cargo run Compiling rust_polyglot v0.1.0 (/Users/globalyoung/Documents/Project/Github/rust_project/rust_polyglot) Finished dev [unoptimized +..