Email or username:

Password:

Forgot your password?
Top-level
ansuz / ऐरन

@cwebber I wrote about this behaviour in the rust community back in 2016 (transitiontech.ca/random/RIIR) and I guess not much has changed since then :blobcat_thisisfine:

2 comments | Expand all CWs
bgtlover

@ansuz @cwebber luckily, this is slowly being reverted, in some ways, look at the export attributes and extern crabi rfcs, though I'm not sure about the name of the first one. Thing is, we don't want to rewrite your entire program in rust, but the reason for which it's harder to use dynamic linking in this context is that we don't want to submit to guaranteeing ABI stability, in order to allow maximum leaway for the compiler team or the compiler itself to perform optimisations. Of course, this means that, checksum wise, no two builds would ever be the same, as the compiler might have optimised some things differently. You can always make your crate cdylib and link with it from c, but you have to export the functions manually, upholding the invariants as best as you can. I mean, c++ has to declare something like that, so does swift, which managed better than rust in this regard so I dk what else we could do

@ansuz @cwebber luckily, this is slowly being reverted, in some ways, look at the export attributes and extern crabi rfcs, though I'm not sure about the name of the first one. Thing is, we don't want to rewrite your entire program in rust, but the reason for which it's harder to use dynamic linking in this context is that we don't want to submit to guaranteeing ABI stability, in order to allow maximum leaway for the compiler team or the compiler itself to perform optimisations. Of course, this means...

Arne Babenhauserheide

@ansuz Freenet actually got hit by its decade-long-inactive founder suddenly starting to rewrite something adjacently similar in Rust while gutting the essential features ("privacy is not a goal of …") and putting in crypto-contracts … hyphanet.org/freenet-renamed-t @cwebber

Go Up