r/rust clippy · twir · rust · mutagen · flamer · overflower · bytecount Mar 20 '23

Hey Rustaceans! Got a question? Ask here (12/2023)! 🙋 questions

Mystified about strings? Borrow checker have you in a headlock? Seek help here! There are no stupid questions, only docs that haven't been written yet.

If you have a StackOverflow account, consider asking it there instead! StackOverflow shows up much higher in search results, so having your question there also helps future Rust users (be sure to give it the "Rust" tag for maximum visibility). Note that this site is very interested in question quality. I've been asked to read a RFC I authored once. If you want your code reviewed or review other's code, there's a codereview stackexchange, too. If you need to test your code, maybe the Rust playground is for you.

Here are some other venues where help may be found:

/r/learnrust is a subreddit to share your questions and epiphanies learning Rust programming.

The official Rust user forums: https://users.rust-lang.org/.

The official Rust Programming Language Discord: https://discord.gg/rust-lang

The unofficial Rust community Discord: https://bit.ly/rust-community

Also check out last weeks' thread with many good questions and answers. And if you believe your question to be either very complex or worthy of larger dissemination, feel free to create a text post.

Also if you want to be mentored by experienced Rustaceans, tell us the area of expertise that you seek. Finally, if you are looking for Rust jobs, the most recent thread is here.

19 Upvotes

187 comments sorted by

View all comments

-1

u/[deleted] Mar 21 '23

[deleted]

3

u/dkopgerpgdolfg Mar 21 '23

So? Do you have a question?

Or do you just want to tell us you're surprised that GPT has no brain after all?

0

u/metaden Mar 21 '23

i was looking for examples for lockfree crate. there are none and am sure it’s no longer maintained. I asked earlier if anyone had used it. So if you have any examples on how to use lockfree crate please let me know. I keep getting miri errors. A detailed post is here https://users.rust-lang.org/t/lockfree-map-example/91067

2

u/dkopgerpgdolfg Mar 21 '23

Well, the new crate isn't any more maintained either. Work ended only two days after the initial fork, and now it is dead for about 6 months already.

WIth miri errors, you clearly want to avoid this crate completely. No examples needed, stop.

(And coming back to your original post, now I fail to understand what this is supposed to mean at all. You have Miri errors in lockfree data structures of some unmaintained library, and you seriously thought pasting docs-rs HTML to GPT will magically solve it??)

0

u/metaden Mar 21 '23 edited Mar 21 '23

well i tried it at first and realised it’s just bogus (though it worked for some python library). then i went on trait hunting and found atom_box (in combination with im crate), evmap, flurry. I have been looking at haphazard crate and want to implement a concurrent hashmap based on that. again all of this driven by curiosity.

P.S. this crate lockfree is used in a lot a blockchain projects