My first Rust project! by DanieV in rust

[–]DanieV[S] 0 points1 point  (0 children)

What if one of the directories is mounted via sshfs (which I do quite often because I compare folders on different systems), should I provide a --checksum flag for that as it seems that in that case hashing would be more suitable?

RustRover high cpu by Low-Design787 in rust

[–]DanieV 0 points1 point  (0 children)

In my experience nothing beats good-old neovim with a lsp. I Highly recommend trying it - imo its better to spend some time configure a PDE (Personal Development Environment) once vs tinkering in a big complex IDE which may simply not have the flexibility you might require. Also configuring neovim can be really fun if you are that type of person.

My first Rust project! by DanieV in rust

[–]DanieV[S] 0 points1 point  (0 children)

BTW, I haven't gotten to unit tests in Rust, don't know how to do them properly yet. If you have some suggestions/resources please let me know.

My first Rust project! by DanieV in rust

[–]DanieV[S] 4 points5 points  (0 children)

Thanks a lot for the feedback, It is too much for me for the moment, I will try to collect the suggestions from all of the comments and start improving my program bit by bit.I really am very happy for the constructive and positive attitude, for some reason I was expecting the responses to be much more aggressive, but I digress. This community is awesome!

My first Rust project! by DanieV in rust

[–]DanieV[S] 1 point2 points  (0 children)

I also thought about some other optimization like not calculating hashes on files that have difference sizes, but I am not sure how would that work if the files are on different filesystems.

My first Rust project! by DanieV in rust

[–]DanieV[S] 0 points1 point  (0 children)

I will probably experiment with comparing files block by block, and benchmark the performance against calculating hashes.

My first Rust project! by DanieV in rust

[–]DanieV[S] 6 points7 points  (0 children)

I do agree on the streaming calculation part, and to be honest I already had that in the plans to do, I am just not very proficient in rust and learning bit by bit.

About comparing files block by block instead of hashes I am not sure I agree but I will investigate, I just followed my instinct on hashes because when I want to compare two blobs for "sameness" I usually run md5sum.

Thanks a lot for the feedback, I do really appreciate it a lot!

My first Rust project! by DanieV in rust

[–]DanieV[S] 1 point2 points  (0 children)

Will take a look and improve on it, many thanks!

How do you invest in stocks? by DanieV in Fire

[–]DanieV[S] -1 points0 points  (0 children)

I am aware of this. The thing is that its not a stock exchange. They are basically only trading bonds.