-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decide where to put zlib
bindings
#3555
Comments
Part of the longed term goal I have been working on was to allow the C code that is used to be put in the corresponding Scala dependencies so they are packaged directly. This PR #3437 was related to the concept of having the C code to be organized with the project which has the Scala interface. We only have the explicit dependencies between the Scala portion of the project in the build which means the the C code can be used across logical projects such as the example above where someone has the GC code calling Even though we can't very well have a system without GC or perhaps libunwind it does not necessarily follow that they all have to be bundled directly together. We also could consider breaking the runtime into user and non-user facing APIs to help avoid people using internal APIs. This would be akin to the Isn't it also possible for someone to just modify the build plugin to change the dependencies so they could experiment or do research easier? |
To paraphrase Montesquieu, the best is the mortal enemy of the done well enough. My preferences would be first javalib, then "leave where it is". To my thinking, if javalib is the sole site Are they currently any known or believed users in the wild of standalone zlib glue code? |
Based on GitHub search probably not, altough better search results might be achived when checking actual source code/tasty of all SN libraries from ScalaDex |
So when the upcoming/desired re: check actual source of all SN libraries A good thought experiment. Is that precision and expenditure of limited developer time |
Just a quick heads up here, I was looking at other things in the code and noticed this line:
In general, I think it would be nice if this mapping was not hardcoded, but I think it's acceptable if zlib is part of the nativelib. |
In #3427 and #3389 we created a solution allowing to remove
zlib
bindings from main sources. The new question now lies where to put the bindings? Thenativelib
shall be just aScala Native Runtime Library
and should not contain any redundant definitions.We have a few possibilities here:
The text was updated successfully, but these errors were encountered: