News for hackers. Stuff that matters.
Re:Go mod’s lesser known features by lstamour on Friday April 01, 2022 @03:10AM (#30875900)
It could be worse, it could be Java. I might be wrong here, but as I understand it: Java’s use of the terms module and package which these days vary depending on context. Once upon a time, you put modules of code in a namespaced package, but then these packages were distributed and run as modules, and suddenly both package and module ceased to have clear meanings - context is required.

Then again, maybe we should make up new terms instead of re-using existing ones. Like Ruby “Gems” or Homebrew’s “Casks”. It’s not intrinsically descriptive, but it is unique and unambiguous. I suppose again it could be worse, we could be talking about “libraries” and “frameworks” while describing “modules” and “packages”.

Re:Go mod’s lesser known features by pjmlp on Friday April 01, 2022 @08:41AM (#30877563)
Those packages were distributed and run as JAR, WAR or EAR files.

I never remember having seen them referenced as modules.

Re:Go mod’s lesser known features by lstamour on Friday April 01, 2022 @10:05AM (#30878185)
OSGi modules? It’s true there are other names, but if you Google “Java 9 packages modules” you’ll get some very weird results. For example: https://softwareengineering.stackexchange.com/questions/3112...
Re:Go mod’s lesser known features by pjmlp on Friday April 01, 2022 @10:31AM (#30878415)
OSGi modules are related to Eclipse and how they modularized their components.

Yes modules in Java don't mean the same thing as in Modula-2, Ada has packages, child packages and nested packages, Object Pascal/UCSD Pascal has units, while VMS Pascal has modules, and so on.

There is plenty of literature to educate onself about the subject instead of Internet random searches.