News for hackers. Stuff that matters.
Re:Wrapping up Java 9 new Features by wodencafe on Thursday May 04, 2017 @11:41AM (#14265665)
Why didn't they just use OSGi, a stable, mature (16+ years old) technology for modularity, instead of re-inventing the wheel with JPMS?
Re:Wrapping up Java 9 new Features by pjmlp on Thursday May 04, 2017 @12:35PM (#14266262)
Because OSGi is a pile of needless complexity for selling consulting support, the less I have to touch it the better.
Re:Wrapping up Java 9 new Features by wodencafe on Thursday May 04, 2017 @07:54PM (#14269975)
Ok, but do you think JPMS is a better alternative?
Re:Wrapping up Java 9 new Features by fauigerzigerk on Thursday May 04, 2017 @01:35PM (#14266889)
Aren't you an IT consultant though? ;-)
Re:Wrapping up Java 9 new Features by pjmlp on Thursday May 04, 2017 @04:06PM (#14268278)
Yes, but getting to do JEE and stuff like Websphere is already enough, I don't need to fight with OSGi as well. :)

Having written a few Eclipse plugins was already enough.

Re:Wrapping up Java 9 new Features by wodencafe on Friday May 12, 2017 @09:58AM (#14323972)
Don't let Eclipse give you a bad impression of OSGi.

There are now some very cool things that make starting a new OSGi project a lot easier:

* Declarative Services, for simplifying Component definitions (No more editing XML)

* bnd / bndtools for building your OSGified jar (No more manually editing the Manifest)

Re:Wrapping up Java 9 new Features by batter on Thursday May 04, 2017 @11:51AM (#14265777)
i have used OSGI in projects and find it useful to see bundles states, Camel routes/endpoints, lot's of other useful stuff. But i have never seen it working properly in PROD enterprise application. Sadly my eclipse is just confirming that from time to time with errors :(
Re:Wrapping up Java 9 new Features by jcadam on Thursday May 04, 2017 @12:05PM (#14265918)
I know. OSGi needs to die. I'll quit a job before I subject myself to that level of pain and despair ever again.
Re:Wrapping up Java 9 new Features by agumonkey on Thursday May 04, 2017 @12:26PM (#14266156)
Sorry for the easy jab, but is there anything from Eclipse that is good ?

ps: user and ex plugin developer asking

Re:Wrapping up Java 9 new Features by pjmlp on Thursday May 04, 2017 @12:38PM (#14266288)
CDT used to be quite good, and there are some features like makefiles and debugging capabilities that are missing from CLion.

And actually it does use less resources than either InteliJ or Android Studio, while having faster builds.

Re:Wrapping up Java 9 new Features by agumonkey on Thursday May 04, 2017 @03:23PM (#14267877)
Oh right I forgot CDT. The key to Eclipse's success.
Re:Wrapping up Java 9 new Features by Groxx on Thursday May 04, 2017 @03:19PM (#14267830)
Android Studio's minimum-resource-usage-for-sane-performance is enormous. It does some things nicer than Eclipse, but there are definitely times I miss Eclipse's lean-ness, which is not a thing I would have expected myself to ever feel prior to AS.
Re:Wrapping up Java 9 new Features by lmm on Thursday May 04, 2017 @12:39PM (#14266295)
The IDE is good. Eclipselink is fine.
Re:Wrapping up Java 9 new Features by agumonkey on Thursday May 04, 2017 @01:08PM (#14266603)
I felt it was hog, slow, and the interal API is a maze. Also the virtual fs layer ...
Re:Wrapping up Java 9 new Features by lmm on Thursday May 04, 2017 @02:48PM (#14267574)
It's big and slow, agreed, but it is very powerful. I don't know the details of the virtual FS layer but I can sympathise because that's very difficult to get right in a cross-platform way.
Re:Wrapping up Java 9 new Features by agumonkey on Thursday May 04, 2017 @04:08PM (#14268291)
I don't think it's powerful. As fanatic as it seems, emacs is more powerful for real work. It's more human and more theoretical than Eclipse, which is a "usine a gaz" more than anything. It doesn't bring performance, nor ease of use, or stability. I don't get it.
Re:Wrapping up Java 9 new Features by lmm on Friday May 05, 2017 @06:35AM (#14272417)
The graphical views are useful, and the wide range of plugins comes in very handy. I could never get on with the emacs interface - it just wasn't discoverable enough - YMMV I guess.
Re:Wrapping up Java 9 new Features by agumonkey on Friday May 05, 2017 @09:29AM (#14273256)
Discoverability in emacs is a tiny bootstrap problem. I have to admit that for years I didn't know how to ask emacs, but when you do (C-h m, C-h k), there's no more discoverability problem.
Re:Wrapping up Java 9 new Features by leastangle on Thursday May 04, 2017 @02:43PM (#14267528)
Jetty? OpenHAB?
Re:Wrapping up Java 9 new Features by agumonkey on Thursday May 04, 2017 @03:24PM (#14267883)
Did Jetty start as an Eclipse project or was it swallowed recently ? I thought it was apache incubated.
Re:Wrapping up Java 9 new Features by AdieuToLogic on Thursday May 04, 2017 @07:02PM (#14269645)

  But i have never seen it working properly in
  PROD enterprise application.
FWIW, I have programmed for and deployed OSGi-based enterprise solutions. Karaf[0] was the container using Felix[1] most of the time (Equinox[2] being the other for a brief period). These are/were production systems, so I am curious by what you experienced as "never seen it working properly in PROD ..."

0 - https://karaf.apache.org/

1 - https://felix.apache.org/

2 - https://www.eclipse.org/equinox/

Re:Wrapping up Java 9 new Features by geodel on Thursday May 04, 2017 @01:02PM (#14266539)
> OSGi, a stable, mature (16+ years old) technology

And hardly used in industry beyond eclipse project.

Re:Wrapping up Java 9 new Features by amyjess on Thursday May 04, 2017 @01:18PM (#14266721)
I used to work for a robotics company that made heavy use of OSGi.

We also wrapped OSGi in a services framework we created (and by that, I mean my boss wrote it, and then I added some features and bugfixes later), which we open-sourced.

What's really cool is that the Flow stuff from the article resembles a publish/subscribe library that we wrote and also open-sourced (under the name JFlux, even), which in turn was built on some interfaces that bear a resemblance to the Java 8 functional interfaces, except written for Java 6.

Re:Wrapping up Java 9 new Features by leastangle on Thursday May 04, 2017 @02:37PM (#14267483)
I don't think that this is true: OpenHAB, Nexus 3, a lot of the enterprise application servers... One can probably compile a pretty long list of things "running in production" using OSGi.
Re:Wrapping up Java 9 new Features by moomin on Thursday May 04, 2017 @01:10PM (#14266636)
TBH, that's not the right question. I'd argue the right question was why didn't they make Jigsaw Maven-compatible?