Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As far as I can tell, Layrry does not allow two versions of the same library to be in scope at the same time.


I don't know what you mean by "in scope" but modules do allow multiple versions to exist in the same process in different layers. That's what module's entire layer mechanism is about (internally, it uses class-loader isolation), and Layrry configures module layers (that's where it gets its name). It's in one of the first examples: https://github.com/moditect/layrry

So modules absolutely do support that by design, but again, for that to work well you need to really know what that duplicated library does (same goes for Rust or any language), and it's not a recommended practice in general because it can fail in really horrible ways if you're unaware of some implicit assumptions in the library.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: