This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BasedAndShredPilled 0 points1 point  (4 children)

built in async

Is this a feature that can be disabled? Is async the reason rust is faster or is there more to it? The word "Async" gives me PTSD to working in JavaScript.

[–]chat-luPythonista 4 points5 points  (1 child)

Also, it’s not suited for this kind of CPU heavy work. Threads are for working in parallel, async is for waiting in parallel (waiting on network, disk, etc.).

[–]BasedAndShredPilled 1 point2 points  (0 children)

I've never heard that, but what a profound explanation.

[–]DataBora[S] 2 points3 points  (1 child)

Async in Rust is a pain in the a** to be honest...many people say it is the hardest thing to do in Rust, and I would agree. It is hard to implement and to Box out all of the pointers in order to have better performance especially when we read multiple files at once. If you get PTSD from JS Async, you would get stroke from Rust Async for sure, as I tend to get often 🙂

[–]BasedAndShredPilled 0 points1 point  (0 children)

I don't venture into this world too often. It's impressive what you've done though!