Giter Club home page Giter Club logo

Comments (5)

outofcoffee avatar outofcoffee commented on May 23, 2024

GraalVM module added in 0288756.

from imposter.

outofcoffee avatar outofcoffee commented on May 23, 2024

As of v1.3.0, the GraalVM implementation is now merged, but Nashorn is still the default.

from imposter.

pcornish avatar pcornish commented on May 23, 2024

Currently Graal.js doesn't have special Map or List accessor syntax: oracle/graaljs#107

This makes accessing things like params more cumbersome:

Nashorn:

request.headers.Authorization
request.params.foo

Graal.js

request.headers.get('Authorization')
request.params.get('foo')

from imposter.

outofcoffee avatar outofcoffee commented on May 23, 2024

Graal.js now supports map-like data structures as of v21.1.0

Added support for map-like data structures (issue #143) ... Java host interoperability was improved to handle java.util.Map implementations to make them look like guest language hash maps. This feature can be enabled and disabled with HostAccess.Builder.allowMapAccess(boolean).

from imposter.

outofcoffee avatar outofcoffee commented on May 23, 2024

Bumped Graal version in 899487b to support the above.

Next step is enabling native compiler support to avoid using interpreted mode, per: https://www.graalvm.org/reference-manual/js/RunOnJDK/

This will likely require packaging changes and a possible move to JDK11 to reduce the number of build targets.

from imposter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.