Re: Use Graal.js (parser) for NetBeans 11

2019-01-12 Thread Jaroslav Tulach
Hello Emilian, Matthias & everyone.

Dne sobota 12. ledna 2019 9:38:53 CET, Emilian Bold napsal(a):
> I see the parser source is here
> https://github.com/graalvm/graaljs/tree/master/graal-js/src/com.oracle.js.pa
> rser but it's not compiled as an independent JAR available in Maven
> Central. Could the GraalVM project do this?
> 
> The whole org.graalvm.js:js seems pretty big and has many
> dependencies. We just need the parser.

Let's consider this in the context of 371465581f2011 and PR-1011 and 
NETBEANS-1009.

#1 - Nashorn isn't the future of JavaScript engines on JDK. We will need 
another engine anyway in the future.

#2 - Emilian commented in PR-1011 that using Graal.js from bootclasspath isn't 
appropriate

#3 - We need parts of Graal.js anyway for the editing support

#4 - OracleLabs (my employer) supports wider use of Graal.js

When I look at the parser issue from a broader perspective, I propose to:

* modify PR-1011 to bundle whole Graal.js and necessary libraries

that will solve #1, #2, #4. Then we need another PR to modify the JavaScript 
editing infrastructure to use the new version of the Graal.js parser. I was 
hoping Svatopluk Dědic could take care of that, but as he is busy with other 
tasks, help from community would be more than welcomed. Anyone interested in 
supporting EcmaScript7 features (syntax of which the newest version of 
Graal.js handles) in NetBeans?

I'll work on modifying the PR-1011 to include Graal.js as a library on Monday, 
next week.
-jt





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

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





Re: Use Graal.js parser for NetBeans 11 was: Where is `Oracle JS Parser Implementation` built from?

2019-01-12 Thread Emilian Bold
I see the parser source is here
https://github.com/graalvm/graaljs/tree/master/graal-js/src/com.oracle.js.parser
but it's not compiled as an independent JAR available in Maven
Central. Could the GraalVM project do this?

The whole org.graalvm.js:js seems pretty big and has many
dependencies. We just need the parser.

--emi

http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!

On Sat, Jan 12, 2019 at 9:05 AM Emilian Bold  wrote:
>
> Wow, it's an issue I reported myself :-)
>
> --emi
>
> http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!
>
> On Sat, Jan 12, 2019 at 9:00 AM Jaroslav Tulach
>  wrote:
> >
> > Dne pátek 11. ledna 2019 22:14:41 CET, Emilian Bold napsal(a):
> >
> > > This means that we could actually include it in Apache NetBeans,
> >
> > > correct? No need for the run-time plugin.
> >
> >
> >
> > Newer version of lib.nashorn parser is available as org.graalvm.js in Maven 
> > repository. It is licensed under friendly UPL license. It is "just" 
> > necessary to modify the code to use the new version.
> >
> >
> >
> > I've put that not to https://issues.apache.org/jira/browse/NETBEANS-2
> >
> >
> >
> > We have just one problem: find somebody who does the work...
> >
> > -jt
> >
> >
> >
> >

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

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