News for hackers. Stuff that matters.
Re:Why Google Stores Billions of Lines of Code in a Single R... by pjmlp on Monday February 13, 2023 @05:40AM (#34772039)
> But it is the case for C++, Java, Go, Python and more.

It certainly isn't for Java, hence why multiple classloaders exist.

For C and C++ it depends on the OS, on Windows (AIX, and similar OSes) this isn't an issue thanks to how symbol visibility works.

Two different libraries are free to have whatever versions they feel like.

Re:Why Google Stores Billions of Lines of Code in a Single R... by rfoo on Monday February 13, 2023 @05:48AM (#34772086)
Thanks. I'm not familiar with Java. I thought multiple classloaders are more like dlmopen (which doesn't help much - symbol visibility is hard) cause I saw people struggling on classpath conflict etc.
Re:Why Google Stores Billions of Lines of Code in a Single R... by pjmlp on Monday February 13, 2023 @09:47AM (#34774006)
It is basically how application servers got implemented, every EAP/WAR file gets their own classloader, and there is an hierachy that allows to override search paths.

That is how I managed back in the day to use JSF 2.0 on Websphere 6, which officially did not had support for it out of the box.