News for hackers. Stuff that matters.
Re:Write libraries instead of services, where possible by zja on Thursday November 23, 2023 @01:42PM (#38396008)
You have the same problem with services and libraries when you’re introducing a breaking change. With services you can make non-breaking changes like security patches on the server side, without needing to coordinate with a customer.
Re:Write libraries instead of services, where possible by LtWorf on Thursday November 23, 2023 @04:52PM (#38397973)
And with libraries you can't make breaking changes?

The fact that I don't need to recompile everything whenever libcurl or libssl has a security fix proves otherwise.

Re:Write libraries instead of services, where possible by fl0ki on Thursday November 23, 2023 @08:13PM (#38399725)
That's not a great example given OpenSSL versions are famously backwards-incompatible. Older versions get ABI-compatible security patches because people put in the time to backport all of them to every version still supported, in many cases by distro package maintainers. It's exactly the situation libraries should generally avoid, because there are maintainance costs for older versions of the library as well as migration costs for all of its users.

https://wiki.openssl.org/index.php/Versioning

Re:Write libraries instead of services, where possible by LtWorf on Sunday November 26, 2023 @09:47AM (#38421956)
Well given that i upgrade but not downgrade… what's your point?
Re:Write libraries instead of services, where possible by fl0ki on Thursday November 30, 2023 @10:12AM (#38474431)
The point is that someone is paying the cost of maintaining the library's ABI surface area even if it's not you. In a thread specifically for developers considering how to offer an interface to their software, I think it's only fair to recognize the costs of those different approaches. In that regard, OpenSSL is an extremely bad example, or an extremely good example of what not to do.