Giter Site home page Giter Site logo

Comments (4)

 avatar commented on August 26, 2024

It's not currently in the wrapper, and to be honest I'm not sure it's something I'd be interested in adding. There's some mention of the dangers of using that method here.

If you wanted to support it, you'd also need a way to marshal the raw bytes back and forth through the wrapper to Java - our implementation doesn't support byte/byte[].

Just curious - what do you want to do? Do you want to save re-compilation of the same code between threads?

from zipline.

livrish avatar livrish commented on August 26, 2024

This is a little off point but Its interesting that the documentation contradicts itself .
https://github.com/svaarala/duktape/blob/master/doc/bytecode.rst
There are two main motivations for using bytecode dump/load:

  • Performance
  • Obfuscation
    whereas where you pointed out "Duktape bytecode format is not intended for obfuscation"
    given that "the action of making something obscure, unclear, or unintelligible" i would argue that it is obfuscation

The reason I bring this up is that that is what we want to-do so I guess we would have to also look at signing the bytecode ? to ensure that it is safe.

from zipline.

livrish avatar livrish commented on August 26, 2024

is it faster to load from bytecode or the javascript i am also assuming that it is faster to load from bytecode than from javascript as well

from zipline.

 avatar commented on August 26, 2024

I haven't profiled it (the main goal of our wrapper isn't performance), but I would guess that loading from bytecode would be faster.

from zipline.

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.