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!
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.
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
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
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.
@@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.
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.
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!
whens this guy gonna make an operating system smh
In porth
@@j4n1x19 how long ago?
@@j4n1x19 could you please refer the link 😊. I couldn't find it 😅
Hi did, it's called templeOS
@@LuisDa20 Terry Davis, the greatest programmer of all times, created it.. This time I forgive you
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.
If you mean searching software documentation, that's difficult for native speakers too - don't worry! You're doing great by the way 👍
@@merthyr1831 Thank you for your warm encouragement!
This was the first time I saw someone using the touch command properly lol Nice code session btw!!!!
Getting fast on the UA-cam uploads. Love it!
finally I was waiting for this Pog
rayon is a really nice library for iterator parellization
If it compiles it works :)
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
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.
Lol at the i3 status bar for this video. Great sense of humor.
Just in time!
Amazing!
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
Also, serde has a function for doing pretty json to files that’s good for testing
thanks for the tips
That was great
Pls do add this video to your rust search engine UA-cam playlist.
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.
@@----__--- i know rust is very passive aggressive, that's why i commented that ane why i don't like it that much
@@----__--- That's the most sensible default???? Explain how
@@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.
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
Cool❤
I want to know what he thinks of kataos...or using Rust on KataOs
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.
i think it could be made cross platform by converting the SystemTime to Duration since epoch.
R.I.P Porth
i hate ur font but i love u xd
I love your videos bro slava ukraini
First!
второй!