Project Detroit Sources?

Eric Vergnaud eric.vergnaud at wanadoo.fr
Thu Apr 2 17:03:54 UTC 2020


The reference implementation I was referring to is V8.

Envoyé de mon iPhone

> Le 2 avr. 2020 à 23:56, Mark Raynsford <org.openjdk at io7m.com> a écrit :
> 
> On 2020-04-02T21:29:03 +0800
> Eric Vergnaud <eric.vergnaud at wanadoo.fr> wrote:
> 
>> Hi,
>> Yes totally support the concept.
>> Please make Detroit OSS rather than trash it, then the OSS community can make it an add-on to the jdk once Nashorn is dropped.
>> Whilst GraalVM is probably a great option for low footprint languages, Detroit is a much more solid approach for JavaScript i.e. runs JS on the reference implementation.
> 
> GraalJS also runs on the reference implementation, just at reduced
> performance compared to running it on a Graal VM:
> 
>  "As GraalVM JavaScript is a Java application, it is possible to
>  execute it on a stock Java VM like OpenJDK. When executed without the
>  GraalVM Compiler as optimizing compiler, performance of GraalVM
>  JavaScript will be significantly worse. While the JIT compilers
>  available on stock JVMs can execute and JIT-compile the GraalVM
>  JavaScript codebase, they cannot optimize it to its full performance
>  potential. This document describes how to run GraalVM JavaScript on
>  stock Java VMs, and shows how you can use the GraalVm Compiler as JIT
>  compiler to guarantee best possible performance."
> 
> https://github.com/graalvm/graaljs/blob/master/docs/user/RunOnJDK.md
> 
> I think GraalJS also has the advantage that it supports ES6 and newer.
> 
> --
> Mark Raynsford | http://www.io7m.com



More information about the discuss mailing list