Coder Social home page Coder Social logo

Make blaze native-image compatible about blaze HOT 1 OPEN

fizzed avatar fizzed commented on May 29, 2024 1
Make blaze native-image compatible

from blaze.

Comments (1)

agentgt avatar agentgt commented on May 29, 2024

I just glanced through blazes code base and even if nashhorn was removed/replaced it still would not work for plain Java because Blaze uses dynamic reflection to call the methods as seen here:

https://github.com/fizzed/blaze/blob/master/blaze-core/src/main/java/com/fizzed/blaze/jdk/TargetObjectScript.java

One of the problem is that there isn't really a truffle implementation of Java. Consequently the "Script" would have to be compiled either with just the regular JDK or JDK + native-image. native-image blaze.jar calling slower JDK compiled Java is probably slower than just a pure JDK (just a guess).

The only way I can see this working blaze would have to do code generation to build a stub to call the tasks to avoid the reflection and then call the graalvm to compile the Java code to native.

from blaze.

Related Issues (16)

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.