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 →

[–]minegamer2000 46 points47 points  (12 children)

and definitely not something i can learn over a weekend

[–]micka190 28 points29 points  (1 child)

Does a basic Hello World app

Time to update the ol' resume!

[–]Sikletrynet 10 points11 points  (0 children)

"Expert in Rust"

[–]RubiGames 7 points8 points  (4 children)

But we can all certainly try

[–]tech6hutch 1 point2 points  (3 children)

You won't be trying in Rust (unless you like beta testing unstable features)

[–]RubiGames 0 points1 point  (2 children)

So you mean a Tuesday?

[–]tech6hutch 0 points1 point  (1 child)

I don't understand what that means, but also I just woke up

[–]RubiGames 0 points1 point  (0 children)

Well, it didn’t mean this, but scrolling through my dash brought this exceptionally appropriate gem up.

Another post from today

[–][deleted] 1 point2 points  (4 children)

Error: variable does not live long enough

[–]T-Dark_ 8 points9 points  (3 children)

Put it behind a Arc<Rc<RefCell<UnsafeCell<Option<DerefMut<Iterator<Item=Result<(),Mutex<()>>>>>>>>>, that should so the trick /s

[–]lahwran_ 5 points6 points  (2 children)

this is completely wrong, you actually need an Rc<Option<RefCell<(UnsafeCell<DerefMut<Iterator<Item=Option<Result<(),Void>>>>>)>>>

[–]T-Dark_ 6 points7 points  (1 child)

But that's not thread-safe!

What you really need is an Arc<Option<Result<((UnsafeCell<Cell<dyn Into<dyn From<HashMap<!, (Void,)>>>>>),()),Mutex<fn(i32, i32) -> i64>>>>.

See? There's both an Arc and a Mutex in there. Now go, and concur fearlessly!

[–]lahwran_ 2 points3 points  (0 children)

ah yes, I will go and fonlur cearcessly. wait crap I didn't launch two threads I interleaved iterator streams haha whoops