• Sign in
  • Sign up
Elektrine
EN
Log in Register
Modes
Overview Chat Timeline Communities Gallery Lists Friends Email Vault DNS VPN
Back to Timeline !programmer_humor @communism
In reply to 2 earlier posts
@siriusmart@lemmy.world on lemmy.world Open parent
rust blasphemy
made in gimp, with <3

Context for actual rust programmers
I was having massive beef with the rust compiler yesterday, every cargo check takes 20 seconds.
And then look at the three functions below, only one of them are Send, if you know why, please let me know.
(Note: value that is not Send cannot be held across an await point, and Box<dyn Error> is not Send)
rs async fn one() { let res: Result<(), Box<dyn Error>> = do_stuff(); if let Err(err) = res { let content = err.to_string(); let _ = do_stuff(content).await; } } async fn two() { let res: Result<(), Box<dyn Error>> = do_stuff(); let content = if let Err(err) = res { Some(err.to_string()) } else { None }; drop(res); if let Some(content) = content { let _ = do_stuff(content).await; } } async fn three() { let content = { let res: Result<(), Box<dyn Error>> = do_stuff(); if let Err(err) = res { Some(err.to_string()) } else { None } }; if let Some(content) = content { let _ = do_stuff(content).await; } }


Open parent Original URL
471
1
65
@anyhow2503@lemmy.world on lemmy.world Open parent
I get that it’s supposed to be a meme, but aside from the first one these aren’t even rust stereotypes. Is this a meme specifically for people who haven’t used rust, know nothing about rust but have maybe heard that it’s a programming language?
Open parent Original URL
80
0
8
15
communism
communism in !programmer_humor
@communism@lemmy.ml · 2d
I mean Rust is definitely known for long compilation times but yeah otherwise I am not sure how any of this is Rust-specific. Maybe by “doesn’t do what you tell it to do” they mean the borrow checker and strict compile time checks…?
View on lemmy.ml
15
2
0
Sign in to interact

Comments (2)

Showing 0 of 2 cached locally.
Syncing comments from the remote thread. 2 more replies are still loading.

Loading comments...

About Community

programmer_humor
Programmer Humor
!programmer_humor@programming.dev

Welcome to Programmer Humor!


This is a place where you can post jokes, memes, humor, etc. related to programming!


For sharing awful code theres also Programming Horror.

Rules

Keep content in english
No advertisements
Posts must be related to programming or programmer topics

31059
Members
2244
Posts
Created: June 12, 2023
View All Posts
313k7r1n3

Company

  • About
  • Contact
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • VPN Policy

Email Settings

IMAP: mail.elektrine.com:993

POP3: pop3.elektrine.com:995

SMTP: mail.elektrine.com:465

SSL/TLS required

Support

  • support@elektrine.com
  • Report Security Issue

Connect

Tor Hidden Service

khav7sdajxu6om3arvglevskg2vwuy7luyjcwfwg6xnkd7qtskr2vhad.onion
© 2026 Elektrine. All rights reserved. • Server: 08:41:09 UTC