2022년 9월 5일 양준하
- 2021년 4분기 기준 Github 점유율 15위 언어
- C++ 암살자 포지션 (개인적으로 10년안에 C++ 넘어설 듯)
- 블록체인, 임베디드, 시스템프로그래밍, 서버, 분산처리, WASM 등에서 활발히 사용되는 고성능 언어
- 모던하고 깔끔한 언어 디자인, 훌륭한 개발툴과 패키지 매니저
- 수준높은 사용자들과 커뮤니티, 독보적인 UX를 기반으로 한 철옹성 같은 팬덤들
| // | |
| // Option1 - Explicit destruction | |
| // | |
| struct A; | |
| struct B; | |
| impl A { | |
| fn shutdown(self) { | |
| println!("Do some destruction"); | |
| } |
| use std::thread; | |
| use std::sync::mpsc::{Receiver, channel}; | |
| use std::time::Duration; | |
| struct MyJoin<T> { | |
| handle: thread::JoinHandle<T>, | |
| signal: Receiver<()> | |
| } | |
| impl<T> MyJoin<T> { |
| use async_std::sync::{channel, Receiver}; | |
| use futures::future::FutureExt; | |
| use rand::rngs::SmallRng; | |
| use rand::FromEntropy; | |
| use rand::Rng; | |
| use std::thread; | |
| use std::time; | |
| use tokio::time::delay_for; | |
| #[derive(PartialEq, Clone, Debug)] |
| use rand::Rng; | |
| use std::thread; | |
| use std::time; | |
| use std::time::Instant; | |
| use tokio::time::delay_for; | |
| const MAX: usize = 1000; | |
| async fn do_something(x: usize) -> usize { | |
| let mut rng = rand::thread_rng(); |
| path = '/home/junha/Projects/foundry/' | |
| import os | |
| def FindFile(path, format): | |
| result = [] | |
| for f in os.listdir(path): | |
| x = path + f | |
| if os.path.isdir(x): |