top | item 42797095

(no title)

zanderwohl | 1 year ago

It would be a tremendous amount of work, and would take years. Meanwhile, the problems are avoidable. It's not exactly the "rust way" to just remember and avoid problems, but everything in language design is compromises.

discuss

order

IshKebab|1 year ago

"Impossibru!!"

https://github.com/sunfishcode/eyra

Oh look:

> Why use Eyra? It fixes Rust's set_var unsoundness issue. The environment-variable implementation leaks memory internally (it is optional, but enabled by default), so setenv etc. are thread-safe.

zanderwohl|1 year ago

> Why not use Eyra?

Well, that's a lot of caveats. As I said, it would take years to complete. And it looks like it's well on its way but not near complete.

dvtkrlbs|1 year ago

If I understand it correctly this still doesnt help with downstream dependencies.

kbolino|1 year ago

That's quite a trade-off

sunshowers|1 year ago

That only works on Linux though right?