You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Laszlo Kishalmi <la...@gmail.com> on 2018/07/13 23:35:10 UTC

JigSaw-ing NetBeans?

Well this question is to Jaroslav Tulach mostly.

 From Java 9 there are three modularization system in Java. OSGI, 
NetBeans and Java's JigSaw.

My question is could NetBeans be ported on JigSaw? What would we gain 
form that movement (if any), and what would be the pain points.

I'd even would like to see a deep analysis on this topic on Jarda's blog.


Thank you in advance!

Laszlo Kishalmi


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: JigSaw-ing NetBeans?

Posted by Tim Boudreau <ni...@gmail.com>.
On Sun, Jul 22, 2018 at 7:18 PM Emilian Bold
<em...@protonmail.ch.invalid> wrote:

> In the 1st idea if everything is static you don't need lookup listeners
> perhaps, you don't need module.install, etc. Probably doesn't gain you much
> except realise NetBeans would work without our specific module system.


Create a maven project that depends on every NetBeans module. Then use my
maven-merge-dependencies maven plugin (on Github, part of Giulius) to try
it ( unlike the assembly plugin, it will concatenate META-INF/services
files and merge properties files under META-INF).

Probably the result would violate lots of assumptions, but with some
work....

I recall from performance work over a decade ago that the biggest win was
putting everything on the boot class path.

Any such jar will do better if the classes are ordered in load-order.

-Tim


>
> The 2nd ides is about compiling at runtime. If an user never touches a
> feature it remains source code on disk. The stuff that gets used gets
> compiled at first module load by the module system. Many modules are simple
> and just need javac and the dependencies JARs in the classpath, it might
> work. Also not a big feature but it might make things interesting. What if
> fixing a small bug is just applying a .patch to the IDEs own source code
> which will get recompiled on restart? Odd, right?
>
> --emi
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On 21 July 2018 10:59 AM, Geertjan Wielenga
> <ge...@googlemail.com.INVALID> wrote:
>
> > Cool thought experiments. It would be interesting to explore -- although
> I
> >
> > wonder how much real performance gains there'd be with the first
> approach,
> >
> > i.e., one of the best features of NetBeans is its modularity, if we were
> to
> >
> > explore dropping that, or creating some kind of distribution without
> that,
> >
> > would we gain anything -- and if that would be performance, would that be
> >
> > significant enough to warrant all the work involved? The second approach
> is
> >
> > basically what we have right now in Apache NetBeans Git, i.e., the
> 9.0-vc3
> >
> > tag can be cloned by anyone and then built from scratch.
> >
> > Gj
> >
> > On Sat, Jul 21, 2018 at 9:10 AM, Emilian Bold <
> >
> > emilian.bold@protonmail.ch.invalid> wrote:
> >
> > > I've been wondering the other way: what if we rip out all the module
> > >
> > > system and have a single fat JAR for NetBeans? How much can we
> optimise if
> > >
> > > we know there will be no runtime module enable/disable, no layer
> changes,
> > >
> > > no global services showing up, etc?
> > >
> > > How many plugins do users really install? What if they generally
> install 0
> > >
> > > modules?
> > >
> > > On the other side of the spectrum: could we perhaps distribute most
> > >
> > > modules are source code and compile on the fly? What if we have a small
> > >
> > > binary bootstrap and the obvious dependency on javac and just make the
> > >
> > > whole release a big source tar? Would certainly make 'convenience
> binaries'
> > >
> > > a thing of the past.
> > >
> > > --emi
> > >
> > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > >
> > > On 14 July 2018 2:35 AM, Laszlo Kishalmi laszlo.kishalmi@gmail.com
> > >
> > > wrote:
> > >
> > > > Well this question is to Jaroslav Tulach mostly.
> > > >
> > > > From Java 9 there are three modularization system in Java. OSGI,
> > > >
> > > > NetBeans and Java's JigSaw.
> > > >
> > > > My question is could NetBeans be ported on JigSaw? What would we gain
> > > >
> > > > form that movement (if any), and what would be the pain points.
> > > >
> > > > I'd even would like to see a deep analysis on this topic on Jarda's
> blog.
> > > >
> > > > Thank you in advance!
> > > >
> > > > Laszlo Kishalmi
> > >
> > > > To unsubscribe, e-mail:
> dev-unsubscribe@netbeans.incubator.apache.org
> > > >
> > > > For additional commands, e-mail:
> dev-help@netbeans.incubator.apache.org
> > > >
> > > > For further information about the NetBeans mailing lists, visit:
> > > >
> > > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >
> > > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > >
> > > For additional commands, e-mail:
> dev-help@netbeans.incubator.apache.org
> > >
> > > For further information about the NetBeans mailing lists, visit:
> > >
> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
> --
http://timboudreau.com

Re: JigSaw-ing NetBeans?

Posted by Emilian Bold <em...@protonmail.ch.INVALID>.
In the 1st idea if everything is static you don't need lookup listeners perhaps, you don't need module.install, etc. Probably doesn't gain you much except realise NetBeans would work without our specific module system.

The 2nd ides is about compiling at runtime. If an user never touches a feature it remains source code on disk. The stuff that gets used gets compiled at first module load by the module system. Many modules are simple and just need javac and the dependencies JARs in the classpath, it might work. Also not a big feature but it might make things interesting. What if fixing a small bug is just applying a .patch to the IDEs own source code which will get recompiled on restart? Odd, right?

--emi

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On 21 July 2018 10:59 AM, Geertjan Wielenga <ge...@googlemail.com.INVALID> wrote:

> Cool thought experiments. It would be interesting to explore -- although I
> 
> wonder how much real performance gains there'd be with the first approach,
> 
> i.e., one of the best features of NetBeans is its modularity, if we were to
> 
> explore dropping that, or creating some kind of distribution without that,
> 
> would we gain anything -- and if that would be performance, would that be
> 
> significant enough to warrant all the work involved? The second approach is
> 
> basically what we have right now in Apache NetBeans Git, i.e., the 9.0-vc3
> 
> tag can be cloned by anyone and then built from scratch.
> 
> Gj
> 
> On Sat, Jul 21, 2018 at 9:10 AM, Emilian Bold <
> 
> emilian.bold@protonmail.ch.invalid> wrote:
> 
> > I've been wondering the other way: what if we rip out all the module
> > 
> > system and have a single fat JAR for NetBeans? How much can we optimise if
> > 
> > we know there will be no runtime module enable/disable, no layer changes,
> > 
> > no global services showing up, etc?
> > 
> > How many plugins do users really install? What if they generally install 0
> > 
> > modules?
> > 
> > On the other side of the spectrum: could we perhaps distribute most
> > 
> > modules are source code and compile on the fly? What if we have a small
> > 
> > binary bootstrap and the obvious dependency on javac and just make the
> > 
> > whole release a big source tar? Would certainly make 'convenience binaries'
> > 
> > a thing of the past.
> > 
> > --emi
> > 
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > 
> > On 14 July 2018 2:35 AM, Laszlo Kishalmi laszlo.kishalmi@gmail.com
> > 
> > wrote:
> > 
> > > Well this question is to Jaroslav Tulach mostly.
> > > 
> > > From Java 9 there are three modularization system in Java. OSGI,
> > > 
> > > NetBeans and Java's JigSaw.
> > > 
> > > My question is could NetBeans be ported on JigSaw? What would we gain
> > > 
> > > form that movement (if any), and what would be the pain points.
> > > 
> > > I'd even would like to see a deep analysis on this topic on Jarda's blog.
> > > 
> > > Thank you in advance!
> > > 
> > > Laszlo Kishalmi
> > 
> > > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > > 
> > > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> > > 
> > > For further information about the NetBeans mailing lists, visit:
> > > 
> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > 
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > 
> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> > 
> > For further information about the NetBeans mailing lists, visit:
> > 
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: JigSaw-ing NetBeans?

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Cool thought experiments. It would be interesting to explore -- although I
wonder how much real performance gains there'd be with the first approach,
i.e., one of the best features of NetBeans is its modularity, if we were to
explore dropping that, or creating some kind of distribution without that,
would we gain anything -- and if that would be performance, would that be
significant enough to warrant all the work involved? The second approach is
basically what we have right now in Apache NetBeans Git, i.e., the 9.0-vc3
tag can be cloned by anyone and then built from scratch.

Gj

On Sat, Jul 21, 2018 at 9:10 AM, Emilian Bold <
emilian.bold@protonmail.ch.invalid> wrote:

> I've been wondering the other way: what if we rip out all the module
> system and have a single fat JAR for NetBeans? How much can we optimise if
> we know there will be no runtime module enable/disable, no layer changes,
> no global services showing up, etc?
>
> How many plugins do users really install? What if they generally install 0
> modules?
>
> On the other side of the spectrum: could we perhaps distribute most
> modules are source code and compile on the fly? What if we have a small
> binary bootstrap and the obvious dependency on javac and just make the
> whole release a big source tar? Would certainly make 'convenience binaries'
> a thing of the past.
>
> --emi
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On 14 July 2018 2:35 AM, Laszlo Kishalmi <la...@gmail.com>
> wrote:
>
> > Well this question is to Jaroslav Tulach mostly.
> >
> > From Java 9 there are three modularization system in Java. OSGI,
> >
> > NetBeans and Java's JigSaw.
> >
> > My question is could NetBeans be ported on JigSaw? What would we gain
> >
> > form that movement (if any), and what would be the pain points.
> >
> > I'd even would like to see a deep analysis on this topic on Jarda's blog.
> >
> > Thank you in advance!
> >
> > Laszlo Kishalmi
> >
> >
> > ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> --------------------------------------
> >
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> >
> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> >
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: JigSaw-ing NetBeans?

Posted by Emilian Bold <em...@protonmail.ch.INVALID>.
I've been wondering the other way: what if we rip out all the module system and have a single fat JAR for NetBeans? How much can we optimise if we know there will be no runtime module enable/disable, no layer changes, no global services showing up, etc?

How many plugins do users really install? What if they generally install 0 modules?

On the other side of the spectrum: could we perhaps distribute most modules are source code and compile on the fly? What if we have a small binary bootstrap and the obvious dependency on javac and just make the whole release a big source tar? Would certainly make 'convenience binaries' a thing of the past.

--emi

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On 14 July 2018 2:35 AM, Laszlo Kishalmi <la...@gmail.com> wrote:

> Well this question is to Jaroslav Tulach mostly.
> 
> From Java 9 there are three modularization system in Java. OSGI,
> 
> NetBeans and Java's JigSaw.
> 
> My question is could NetBeans be ported on JigSaw? What would we gain
> 
> form that movement (if any), and what would be the pain points.
> 
> I'd even would like to see a deep analysis on this topic on Jarda's blog.
> 
> Thank you in advance!
> 
> Laszlo Kishalmi
> 
> 
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> 
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> 
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: JigSaw-ing NetBeans?

Posted by Jan Lahoda <la...@gmail.com>.
On Sat, Jul 14, 2018 at 12:22 PM, Sven Reimers <sv...@gmail.com>
wrote:

> Hi,
> I think Jan had an early prototype for using jigsaw modules as modules in
> NetNeans (similiar to the OSGI support) so we could skip creating wrapper
> modules...
>

Yes, here:
https://cwiki.apache.org/confluence/display/NETBEANS/JDK+Modules+Support+in+NetBeans+Module+System

And here:
https://github.com/apache/incubator-netbeans/pull/291

It allows to specify dependencies on system modules.

If we wanted support for Jigsaw modules running inside the NetBeans (module
system) container, that might be doable, but OSGi may be working on that as
well, and we are able to run OSGi modules. So we may be able to get that
feature through OSGi without too much work on our end.

I guess I wonder what people imagine/expect when we talk about "Jigsaw"
support:
-ability to develop Jigsaw applications in the IDE
-ability to depend on (system) Jigsaw modules from NetBeans modules
-ability to include and depend on Jigsaw modules inside the "container"
-having NetBeans modules be also Jigsaw modules (which is tricky, as NB
modules are using split packages, which are not supported by Jigsaw; this
is not a corner case, even openide.util.lookup and openide.util both export
APIs in the org.openide.util package)
-something else?

Jan


> I think this would be a good way forward.
>
> Maybe once NetBeans runs only on 9+ Java we can start about using Jigsaw
> infrastructure instead of home grown PrixyClassloader etc.
>
> Since Jigsaw modules do not declare lifecycle, versioning etc. they can
> never be and were never intended to be a replacement for OSGI, JBoss
> Modules  or NetBeans Modules.
>
> Just my 2€c
>
> -Sven
>
> Geertjan Wielenga <ge...@googlemail.com.invalid> schrieb am
> Sa., 14. Juli 2018, 11:41:
>
> > Exactly. Jigsaw was never created for dynamic systems such as NetBeans.
> > Plus, changing to use Jigsaw just for the sake of it is questionable.
> >
> > Gj
> >
> >
> > On Saturday, July 14, 2018, Neil C Smith <ne...@apache.org> wrote:
> >
> > > On Sat, 14 Jul 2018 at 08:48, Geertjan Wielenga
> > > <ge...@googlemail.com.invalid> wrote:
> > > >
> > > > Then something has changed because I have heard Mark Reinhold say
> > > multiple
> > > > times that Jigsaw is not intended to be like OSGi etc because runtime
> > > > updates are not intended to be supported.
> > >
> > > That, and versioning, and split packages IIRC - real feeling of
> > > deja-vu with this topic - might be worth looking back through the dev@
> > > archives?
> > >
> > > Best wishes,
> > >
> > > Neil
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > > For additional commands, e-mail: dev-help@netbeans.incubator.
> apache.org
> > >
> > > For further information about the NetBeans mailing lists, visit:
> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >
> > >
> > >
> > >
> >
>

Re: JigSaw-ing NetBeans?

Posted by Sven Reimers <sv...@gmail.com>.
Hi,
I think Jan had an early prototype for using jigsaw modules as modules in
NetNeans (similiar to the OSGI support) so we could skip creating wrapper
modules...

I think this would be a good way forward.

Maybe once NetBeans runs only on 9+ Java we can start about using Jigsaw
infrastructure instead of home grown PrixyClassloader etc.

Since Jigsaw modules do not declare lifecycle, versioning etc. they can
never be and were never intended to be a replacement for OSGI, JBoss
Modules  or NetBeans Modules.

Just my 2€c

-Sven

Geertjan Wielenga <ge...@googlemail.com.invalid> schrieb am
Sa., 14. Juli 2018, 11:41:

> Exactly. Jigsaw was never created for dynamic systems such as NetBeans.
> Plus, changing to use Jigsaw just for the sake of it is questionable.
>
> Gj
>
>
> On Saturday, July 14, 2018, Neil C Smith <ne...@apache.org> wrote:
>
> > On Sat, 14 Jul 2018 at 08:48, Geertjan Wielenga
> > <ge...@googlemail.com.invalid> wrote:
> > >
> > > Then something has changed because I have heard Mark Reinhold say
> > multiple
> > > times that Jigsaw is not intended to be like OSGi etc because runtime
> > > updates are not intended to be supported.
> >
> > That, and versioning, and split packages IIRC - real feeling of
> > deja-vu with this topic - might be worth looking back through the dev@
> > archives?
> >
> > Best wishes,
> >
> > Neil
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> >
>

Re: JigSaw-ing NetBeans?

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Exactly. Jigsaw was never created for dynamic systems such as NetBeans.
Plus, changing to use Jigsaw just for the sake of it is questionable.

Gj


On Saturday, July 14, 2018, Neil C Smith <ne...@apache.org> wrote:

> On Sat, 14 Jul 2018 at 08:48, Geertjan Wielenga
> <ge...@googlemail.com.invalid> wrote:
> >
> > Then something has changed because I have heard Mark Reinhold say
> multiple
> > times that Jigsaw is not intended to be like OSGi etc because runtime
> > updates are not intended to be supported.
>
> That, and versioning, and split packages IIRC - real feeling of
> deja-vu with this topic - might be worth looking back through the dev@
> archives?
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: JigSaw-ing NetBeans?

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 14 Jul 2018 at 08:48, Geertjan Wielenga
<ge...@googlemail.com.invalid> wrote:
>
> Then something has changed because I have heard Mark Reinhold say multiple
> times that Jigsaw is not intended to be like OSGi etc because runtime
> updates are not intended to be supported.

That, and versioning, and split packages IIRC - real feeling of
deja-vu with this topic - might be worth looking back through the dev@
archives?

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: JigSaw-ing NetBeans?

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Then something has changed because I have heard Mark Reinhold say multiple
times that Jigsaw is not intended to be like OSGi etc because runtime
updates are not intended to be supported.

Gj



On Sat, 14 Jul 2018 at 09:32, Miguel Cardoso Martins <
miguelcardosomartins@gmail.com> wrote:

> Hi
>
> The Java module system does permit adding/removing (root) modules, and thus
> modifying the module graph at runtime.
> This is done through the layer API of the JPMS.
> A layer would needed to be created (by netbeans under the hood) for each
> module (and possible dependencies) at the time it is requested to be added
> to netbeans.
>
> I for once think that moving longterm to the new java module system would
> be great to modernise netbeans
>
> Regards
> M
>
>
> Am Sa., 14. Juli 2018 um 08:40 Uhr schrieb Geertjan Wielenga
> <ge...@googlemail.com.invalid>:
>
> > Jigsaw does not permit updates at runtime. So if we were to use Jigsaw,
> > that would be the end of being able to install plugins into Apache
> NetBeans
> > while it is running.
> >
> > Gj
> >
> > On Saturday, July 14, 2018, Laszlo Kishalmi <la...@gmail.com>
> > wrote:
> >
> > > Well this question is to Jaroslav Tulach mostly.
> > >
> > > From Java 9 there are three modularization system in Java. OSGI,
> NetBeans
> > > and Java's JigSaw.
> > >
> > > My question is could NetBeans be ported on JigSaw? What would we gain
> > form
> > > that movement (if any), and what would be the pain points.
> > >
> > > I'd even would like to see a deep analysis on this topic on Jarda's
> blog.
> > >
> > >
> > > Thank you in advance!
> > >
> > > Laszlo Kishalmi
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > > For additional commands, e-mail:
> dev-help@netbeans.incubator.apache.org
> > >
> > > For further information about the NetBeans mailing lists, visit:
> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >
> > >
> > >
> > >
> >
>

Re: JigSaw-ing NetBeans?

Posted by Miguel Cardoso Martins <mi...@gmail.com>.
Hi

The Java module system does permit adding/removing (root) modules, and thus
modifying the module graph at runtime.
This is done through the layer API of the JPMS.
A layer would needed to be created (by netbeans under the hood) for each
module (and possible dependencies) at the time it is requested to be added
to netbeans.

I for once think that moving longterm to the new java module system would
be great to modernise netbeans

Regards
M


Am Sa., 14. Juli 2018 um 08:40 Uhr schrieb Geertjan Wielenga
<ge...@googlemail.com.invalid>:

> Jigsaw does not permit updates at runtime. So if we were to use Jigsaw,
> that would be the end of being able to install plugins into Apache NetBeans
> while it is running.
>
> Gj
>
> On Saturday, July 14, 2018, Laszlo Kishalmi <la...@gmail.com>
> wrote:
>
> > Well this question is to Jaroslav Tulach mostly.
> >
> > From Java 9 there are three modularization system in Java. OSGI, NetBeans
> > and Java's JigSaw.
> >
> > My question is could NetBeans be ported on JigSaw? What would we gain
> form
> > that movement (if any), and what would be the pain points.
> >
> > I'd even would like to see a deep analysis on this topic on Jarda's blog.
> >
> >
> > Thank you in advance!
> >
> > Laszlo Kishalmi
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> >
>

Re: JigSaw-ing NetBeans?

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Jigsaw does not permit updates at runtime. So if we were to use Jigsaw,
that would be the end of being able to install plugins into Apache NetBeans
while it is running.

Gj

On Saturday, July 14, 2018, Laszlo Kishalmi <la...@gmail.com>
wrote:

> Well this question is to Jaroslav Tulach mostly.
>
> From Java 9 there are three modularization system in Java. OSGI, NetBeans
> and Java's JigSaw.
>
> My question is could NetBeans be ported on JigSaw? What would we gain form
> that movement (if any), and what would be the pain points.
>
> I'd even would like to see a deep analysis on this topic on Jarda's blog.
>
>
> Thank you in advance!
>
> Laszlo Kishalmi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: JigSaw-ing NetBeans?

Posted by Eirik Bakke <eb...@ultorg.com>.
Ah, thanks for the explanation! -- Eirik

On 7/14/18, 1:27 PM, "Jan Lahoda" <la...@gmail.com> wrote:

>On Sat, Jul 14, 2018 at 1:00 PM, Eirik Bakke <eb...@ultorg.com> wrote:
>
>> One of the great things about the NetBeans module system is that adding
>>a
>> dependency on module X does _not_ permit you to use classes from X's own
>> dependencies (transitive dependencies).
>>
>
>In Jigsaw, module X can for each of its dependencies decide if it should
>be
>transitive or not. If it says "requires foo", that users of "X" won't be
>able to use stuff from "foo" without explicit dependency on "foo", if it
>says "requires transitive foo;" then users of "X" will be able to use
>stuff
>"foo" without explicitly depending on "foo".
>
>Jan
>
>
>>
>> Is this also the case with Jigsaw?
>>
>> -- Eirik
>>
>> On 7/14/18, 1:35 AM, "Laszlo Kishalmi"
>><laszlo.kishalmi@gmail.com<mailto:
>> laszlo.kishalmi@gmail.com>> wrote:
>>
>> Well this question is to Jaroslav Tulach mostly.
>>
>> From Java 9 there are three modularization system in Java. OSGI,
>> NetBeans and Java's JigSaw.
>>
>> My question is could NetBeans be ported on JigSaw? What would we gain
>> form that movement (if any), and what would be the pain points.
>>
>> I'd even would like to see a deep analysis on this topic on Jarda's
>>blog.
>>
>>
>> Thank you in advance!
>>
>> Laszlo Kishalmi
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>> <ma...@netbeans.incubator.apache.org>
>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>> <ma...@netbeans.incubator.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: JigSaw-ing NetBeans?

Posted by Jan Lahoda <la...@gmail.com>.
On Sat, Jul 14, 2018 at 1:00 PM, Eirik Bakke <eb...@ultorg.com> wrote:

> One of the great things about the NetBeans module system is that adding a
> dependency on module X does _not_ permit you to use classes from X's own
> dependencies (transitive dependencies).
>

In Jigsaw, module X can for each of its dependencies decide if it should be
transitive or not. If it says "requires foo", that users of "X" won't be
able to use stuff from "foo" without explicit dependency on "foo", if it
says "requires transitive foo;" then users of "X" will be able to use stuff
"foo" without explicitly depending on "foo".

Jan


>
> Is this also the case with Jigsaw?
>
> -- Eirik
>
> On 7/14/18, 1:35 AM, "Laszlo Kishalmi" <laszlo.kishalmi@gmail.com<mailto:
> laszlo.kishalmi@gmail.com>> wrote:
>
> Well this question is to Jaroslav Tulach mostly.
>
> From Java 9 there are three modularization system in Java. OSGI,
> NetBeans and Java's JigSaw.
>
> My question is could NetBeans be ported on JigSaw? What would we gain
> form that movement (if any), and what would be the pain points.
>
> I'd even would like to see a deep analysis on this topic on Jarda's blog.
>
>
> Thank you in advance!
>
> Laszlo Kishalmi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> <ma...@netbeans.incubator.apache.org>
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> <ma...@netbeans.incubator.apache.org>
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
>

Re: JigSaw-ing NetBeans?

Posted by Eirik Bakke <eb...@ultorg.com>.
One of the great things about the NetBeans module system is that adding a dependency on module X does _not_ permit you to use classes from X's own dependencies (transitive dependencies).

Is this also the case with Jigsaw?

-- Eirik

On 7/14/18, 1:35 AM, "Laszlo Kishalmi" <la...@gmail.com>> wrote:

Well this question is to Jaroslav Tulach mostly.

From Java 9 there are three modularization system in Java. OSGI,
NetBeans and Java's JigSaw.

My question is could NetBeans be ported on JigSaw? What would we gain
form that movement (if any), and what would be the pain points.

I'd even would like to see a deep analysis on this topic on Jarda's blog.


Thank you in advance!

Laszlo Kishalmi


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org<ma...@netbeans.incubator.apache.org>
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org<ma...@netbeans.incubator.apache.org>

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists