@noah@mastodon.despise.computer titelbild
@noah@mastodon.despise.computer avatar

noah

@noah@mastodon.despise.computer

Systems Engineer at Cloudflare

Rust programmer, tokio.rs maintainer

humble packet farmer by day, network programming performance junkie by night

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

Good, uhhh.. good morning

noah ,
@noah@mastodon.despise.computer avatar

@fasterthanlime wait, does it work now?

noah ,
@noah@mastodon.despise.computer avatar

@fasterthanlime unfortunately that part has no nice solution in rustland

noah ,
@noah@mastodon.despise.computer avatar

@fasterthanlime still the fact that this works at all is amazing

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

Found another snag re: dynamic linking Rust code — N copies of tokio are present, so that's N distinct thread-locals storing the "current tokio context"

...and the binary is calling the library from an executor, but the library doesn't think so.

https://github.com/tokio-rs/tokio/blob/65d0e08d39f06eba88661d3d6de665b14588f30d/tokio/src/runtime/context.rs#L77-L122

noah ,
@noah@mastodon.despise.computer avatar

@fasterthanlime honestly i kinda wonder if we should just expose a --cfg flag for "just make this work across SO boundaries"

even if it slightly changes some semantics or has a perf cost when enabled, that's fine - it's behind a --cfg flag

noah ,
@noah@mastodon.despise.computer avatar

@fasterthanlime i have put zero thought into how this might work thus far

if you can make this work though that would be amazing

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine