Ukko,
@Ukko@akko.disqordia.space avatar

future cannot be sent between threads safely fuck you I am rewriting all of this into Python

subtype,
@subtype@insufferable.tools avatar

@Ukko can’t have thread problems if everything is behind a global interpreter lock :brain10:

Ukko,
@Ukko@akko.disqordia.space avatar

@subtype Python is dropping the GIL pretty soon IIRC

subtype,
@subtype@insufferable.tools avatar

@Ukko if you want to ignore Sync and Send errors in Rust (I assume that was OP about?) you can just

unsafe impl Send for Foo {};

🙃

Ukko,
@Ukko@akko.disqordia.space avatar

@subtype nah i am not touching others structs

Ukko,
@Ukko@akko.disqordia.space avatar

@subtype I am having a skill issue so I will just Python

subtype,
@subtype@insufferable.tools avatar

@Ukko Oh ok, looks like someone fucked up if the future isn't sync. Or maybe it became so because you put a non-sync type into it?

Ukko,
@Ukko@akko.disqordia.space avatar

@subtype Yes

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Hentai
  • doujinshi
  • announcements
  • general
  • All magazines