Slashdot Mirror


Modularity Finally Approved For Java 9 (infoworld.com)

An anonymous reader quotes InfoWorld:With a new round of voting completed this week, the Java Community Process Executive Committee passed by a 24-0 vote the Java Platform Module System public review ballot, the subject of Java Specification Request 376. In May, the same group, citing concerns over the plan being disruptive and lacking consensus, voted the measure down, 13 to 10... Red Hat, which voted no on the previous ballot but abstained from the latest one, said there were still several items in the current proposal that it wanted further work on. "However, we do not want to delay the Java 9 release," Red Hat said. Getting "real world" feedback on the modularity system will be key to determine where further changes need to occur, Red Hat said. The Eclipse Foundation, Hazelcast, and Twitter, all of which voted no previously and yes this time around, cited sufficient progress with modularity.
Java 9 is still slated for release on September 21st.

7 of 94 comments (clear)

  1. Design be committee by 110010001000 · · Score: 3, Insightful

    Definitely proves that Java is "design by committee" considering there were 24 votes. No wonder it is such a disaster.

    1. Re:Design be committee by angel'o'sphere · · Score: 4, Insightful

      The most successful and most widely used (programming) language on the planet is a disaster?
      In what world do you live?

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
  2. What is modularity, exactly? by ZackSchil · · Score: 5, Informative

    I am a professional programmer but I don't work with java, so I was confused about what, exactly, "modularity" means in this context. I clicked through a few links and found the info and figured I'd share here for anyone else in my position.

    Java, as it stands, has no real mechanism for managing program dependencies (think, dynamic link libraries). Either a JAR file embeds all of the classes it uses or it loads external classes using something called the "class path system", where there is a programmatically accessible path where java code can look for class files to link in at runtime. This system is very simple, and lacks built-in versioning or encapsulation features. It's up to developers to build in their own versioning into the file structure. As you could guess, it's generally very brittle.

    The new system replaces that with a concept of "modules". These are collections of classes with strong names, cryptographic signatures, version numbers, and members that are either public and advertised to code the imports the module, or private and for internal module use only. This is a huge step up from the idea of just going and loading class files out of some path. I'm actually astonished Java made it this far without such a feature!

    You can find more info about the new module system here: http://openjdk.java.net/projec...

    1. Re:What is modularity, exactly? by angel'o'sphere · · Score: 4, Informative

      I'm actually astonished Java made it this far without such a feature!
      There is no language / system on the planet that has such a feature. Except Java 9.

      class path system
      Which works exactly like the LD_LIBRARY_PATH for any compiled language on Unix or the equivalent on Windows.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    2. Re:What is modularity, exactly? by angel'o'sphere · · Score: 4, Insightful

      Unfortunately not.
      The parent is completely correct that using the term "module" or "modularity" in Java 9 is completely misleading.
      It has absolutely nothing to do with any meaning of "module" in any other programming language.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
  3. Re:no need for java 9 here by __aaclcg7560 · · Score: 2, Insightful

    Casey Neistat has a video that defined success as people wanting to be like you. I'm not surprise that someone keeps posting as me on Slashdot. It's not like they have anything better to do with their life.

    https://www.youtube.com/watch?v=3iQ8BGw13So

  4. Now what about support for unsigned values for da? by Travelsonic · · Score: 2

    Apparently that has been done a bit, but I personally would love to see full support, proper support, for unsigned values in data types if it hasn't been done already.

    --
    If you believe in privacy, and believe you have "nothing to hide" at the same time, you're a goddammed idiot