Python cryptography, Rust, and Gentoo
Python cryptography, Rust, and Gentoo
Posted Feb 11, 2021 20:36 UTC (Thu) by logang (subscriber, #127618)In reply to: Python cryptography, Rust, and Gentoo by marcH
Parent article: Python cryptography, Rust, and Gentoo
Absolutely right. It's a lot of work and a hard problem to deal with dependencies. Which is why we should pool the work in distributions and everyone should use and benefit from it.
>It seems straight-forward if you ignore the incredibly large attack surface involved every time you run "apt update".
That's an odd statement. I do that multiple times a week on more than a dozen machines.
>It seems straight-forward if you've never debugged CMake or (much worse) autotools.
I've done both. Not that hard.
>It seems straight-forward as long as you don't need different packages that require different versions of xyz.
If libraries are well maintained and care about not breaking their users, and support a range of their own dependencies (instead of essentially vendoring their own dependencies by insisting on a very specific version) this problem tends not to be that bad. Even in python, good well maintained libraries ensure they work on a wide range of python versions and with a range of versions of their own dependencies. But also, in general, long deep dependency trees should be avoided and pushed back against.
>It seems straight-forward as long as you don't try to naively "upgrade" the LTS version of your distro with packages from a newer version of the _same_ distro.
I've done this a lot. For the rare critical package, this is hard and should simply not be done. 9 times out of 10, it is easy.
> If it's so straight-forward, why have brand new projects like flatpak, snap etc. just been created?
No idea. But I avoid those like the plague. They don't solve any of my problems.
> Code re-use, software distribution and maintenance is hard, really hard. I'm not claiming rust or anything else cracked that nut, far from it and downloading random code from the Internet (in _any_ language_) is of course a security disaster[*] Pretending on the other hand that this problem has already been solved is either dishonest or incredibly naive and probably why the entire industry is still so bad at this. Have you never heard about "DLL Hell?". We should all keep open mind, take interest in any new approach and ignore anyone recommending to keep doing what they've have been always been doing.
Absolutely right. But the new languages don't seem to solve these problems, they just ignore them and try to vendor everything. From a security, maintenance and longevity perspective the distros have been doing far better, which is why I always go to them first and strongly resist the newer trends to vendor everything.
