Rust Multi-Threading

  Рет қаралды 33,893

Tsoding Daily

Tsoding Daily

Күн бұрын

Пікірлер: 42
@merthyr1831
@merthyr1831 Жыл бұрын
I've seen your complaints about rust a few times, but also seen you write it and it's pretty expressive as long as you avoid using super esoteric language features. Honestly reads a lot better than C++, especially when using classes and function pointers which are pretty common in front-end and functional/declarative programming paradigms. And the cargo system is really nice compared to Make!
@decqyd
@decqyd Жыл бұрын
whens this guy gonna make an operating system smh
@strongleongch
@strongleongch Жыл бұрын
In porth
@Tigregalis
@Tigregalis Жыл бұрын
​@@j4n1x19 how long ago?
@abdoraqi1362
@abdoraqi1362 Жыл бұрын
@@j4n1x19 could you please refer the link 😊. I couldn't find it 😅
@LuisDa20
@LuisDa20 Жыл бұрын
Hi did, it's called templeOS
@lokthar6314
@lokthar6314 Жыл бұрын
@@LuisDa20 Terry Davis, the greatest programmer of all times, created it.. This time I forgive you
@diegorocha2186
@diegorocha2186 Жыл бұрын
This was the first time I saw someone using the touch command properly lol Nice code session btw!!!!
@ndrmqaxn
@ndrmqaxn Жыл бұрын
You're so talented! I'm a non-native English speaker and searching documents to get useful things is somewhat difficult for me. I'm trying to overcome it.
@merthyr1831
@merthyr1831 Жыл бұрын
If you mean searching software documentation, that's difficult for native speakers too - don't worry! You're doing great by the way 👍
@ndrmqaxn
@ndrmqaxn Жыл бұрын
@@merthyr1831 Thank you for your warm encouragement!
@Rayer24
@Rayer24 Ай бұрын
This comment was made over a year ago, I'm sure you're much better now :)
@Mozartenhimer
@Mozartenhimer Жыл бұрын
Getting fast on the KZbin uploads. Love it!
@ac130kz
@ac130kz Жыл бұрын
rayon is a really nice library for iterator parellization
@kibels894
@kibels894 Жыл бұрын
If it compiles it works :)
@Dygear
@Dygear Жыл бұрын
Lol at the i3 status bar for this video. Great sense of humor.
@hypnogri5457
@hypnogri5457 Жыл бұрын
finally I was waiting for this Pog
@----__---
@----__--- Жыл бұрын
from what i can see add_folder_to_model signature is very weird and it has too many indirections. model doesnt need to be a dyn trait object. it can just be a "impl Model" and monomorphized by the compiler. and for parallelizing the indexing process, you probably want to have a look at std::thread::scope
@ole4707
@ole4707 Жыл бұрын
It also doesn't need to take the mutex behind an Arc, and can just take a reference to the mutex. It doesn't require the ownership.
@movization
@movization Жыл бұрын
Just in time!
@rockNbrain
@rockNbrain Ай бұрын
Is this the last vid of this rust project series ?
@antronixful
@antronixful Жыл бұрын
Every time i watch you program in rust, i imagine the two soyjacks vs the two chads saying: soy1: "nooooo you can't do that in rust, that's not secure, you are not a rustacean" soy2: "rust is supposed to be inclusive " chad1: "rust sucks and i love it" chad2: "yes."
@----__---
@----__--- Жыл бұрын
rust has different shortscomings in many ways but none of them are stuff like struct fields being private by default, which is the most sensible default, like he complains in the video.
@antronixful
@antronixful Жыл бұрын
@@----__--- i know rust is very passive aggressive, that's why i commented that ane why i don't like it that much
@angelcaru
@angelcaru 8 ай бұрын
@@----__--- That's the most sensible default???? Explain how
@----__---
@----__--- 8 ай бұрын
@@angelcaru its the most sensible for most people to assume that the state of the object is invariant to that object unless specificed otherwise. and its the most sensible to prefer making fields public to forgetting to specify priv and causing breaking changes in the api. but ultimately it doesnt matter, its literally just field visibility. and like i said in my comment a year ago, thats not a shortcoming of rust, nobody cares.
@williamanthony7224
@williamanthony7224 Жыл бұрын
I managed to get my version, on glDocs, to build a directory tree, then spawn threads to parse each xhtml file and return its hashmap through a mpsc channel. Got my M1 Mac to go from 2.6 seconds to 0.6 for indexing. I’m looking forward to watching and see how you do it
@williamanthony7224
@williamanthony7224 Жыл бұрын
Also, serde has a function for doing pretty json to files that’s good for testing
@DuskyDaily
@DuskyDaily Жыл бұрын
Amazing!
@evildougthevillainousassistant
@evildougthevillainousassistant Жыл бұрын
thanks for the tips
@WhoIsMrKemp
@WhoIsMrKemp Жыл бұрын
I want to know what he thinks of kataos...or using Rust on KataOs
@hsthast7183
@hsthast7183 Жыл бұрын
Pls do add this video to your rust search engine KZbin playlist.
@aryabp
@aryabp Жыл бұрын
Cool❤
@rodelias9378
@rodelias9378 Жыл бұрын
That was great
@yjk_ch
@yjk_ch Жыл бұрын
Haven't watched fully yet, but it makes me a bit sad when you are doing Arc::clone when you could just modify the function to accept &Arc
@simonfarre4907
@simonfarre4907 Жыл бұрын
Of course it will be cross platform- your index json files won't though since you serialize the SystemTime object. But why the hell would you want the serialized data itself cross platform? If it is serialised on Windows it will be in Windows format.
@maxsilvester1327
@maxsilvester1327 Жыл бұрын
i think it could be made cross platform by converting the SystemTime to Duration since epoch.
@pgjbz
@pgjbz Жыл бұрын
R.I.P Porth
@xxaqploboxx
@xxaqploboxx Жыл бұрын
i hate ur font but i love u xd
@x1expert1x
@x1expert1x Жыл бұрын
I love your videos bro slava ukraini
@epicpasta8100
@epicpasta8100 Жыл бұрын
First!
@GRATHRRAM
@GRATHRRAM Жыл бұрын
второй!
I compared Two PDF Libraries. C one was faster than Rust one.
1:22:23
Tsoding Daily
Рет қаралды 32 М.
The Jai situation is insane!
2:17:54
Tsoding Daily
Рет қаралды 20 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Search Engine in Rust (Ep.01)
2:03:11
Tsoding Daily
Рет қаралды 125 М.
Programming in Rust
2:28:16
Tsoding Daily
Рет қаралды 35 М.
If Jerma was Programmer
6:44
Tsoding Out Of Context
Рет қаралды 8 М.
Speeding up Rust Code
1:29:08
Tsoding Daily
Рет қаралды 26 М.
why rust libraries may never exist.
7:26
Low Level
Рет қаралды 292 М.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 190 М.
Rant: Entity systems and the Rust borrow checker ... or something.
1:01:51
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 411 М.
Impl Trait aka Look ma’, no generics! by Jon Gjengset
1:09:05
Copenhagen Rust Community
Рет қаралды 31 М.
Rust's Witchcraft
9:18
No Boilerplate
Рет қаралды 191 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН