Some C libraries are too large, complex, or require too much domain-specific knowledge to implement in Roc. For example, media codecs, cryptography algorithms, or GPU acceleration libraries.
If a Zig platform includes these, all of them are going to be added to every Roc program. Is there some trick to conditionally link these? Or is there a feature planned? For example, only link a certain library if a Roc program imports a certain module.
@Richard Feldman said in a different topic that platforms are meant to be batteries-included, so I guess the proper route isn't to provide a minimal base like trantor, which can be extended with the used parts, but instead provide everything in one package, but then we need something to omit the unused parts from linking.
Last updated: Oct 15 2026 at 17:56 UTC