r/ProgrammingLanguages • • Aug 11 '26

Help Package Manager design for Seal programming language

Hey guys, I have been working on Seal. This language is embeddable into C/C++ apps like Lua. You can create libraries for Seal in either Seal or C. I have been creating Game Framework recently. I want to create a package manager in future for Seal to let users upload their own packages to share with others, but I don't know about one thing. Just like other languages, Seal can load both Seal scripts and .so/.dll files at runtime when you import them. Publishing Seal scripts on package registry is easy, since it is just code, but I don't really know about how to publish C or dynamic library files tho. Package publishers can inject malicious stuff (like backdoor) in that code. What are real life examples to prevent that? At first I can read every file and check manually but if this project grows, maintaining that will be difficult. I can maybe create a report system but I cannot always rely on that too. What is the efficient solution for that?

For those interested, they can check Seal here: https://github.com/huseynaghayev/seal.git

20 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/WalkerCodeRanger Azoth Language Aug 12 '26

Good reminder about the XZ exploit.

The NuGet package manager doesn't seem to have nearly as many problems with these things despite it distributing nearly binary files. I think there are two reasons:

  • The standard library is large. This eliminates the existence of packages like left pad in NPM. It also means that packages have far fewer transitive dependencies. I've recently switched from .NET to Java, and the package dependency situation in Java is insane. Of course there will be an exploit of a system like that.
  • The package server policies are tighter. By default, you can't just pull a package. You can hide a package, but that just removes it from the list of options to add. All projects that reference the existing package continue to work. You would need to contact the package org and provide evidence of patent or copyright infringement to get a package truly pulled. That is the right policy and totally removes the NPM left pad fiasco.