Comments (4)
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.
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.
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.
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)
- ConsoleTest. logWithArguments() is flaky
- Add a slow service dispatch detector and callback in event listener
- Move compiler plugin checks from IR to FIR
- Cache freshness is not updated on successful network fetch
- Don’t pass a full stacktrace to SuspendCallback.failure() when it’s a JobCancellationException HOT 1
- Run Zipline in iOS not on Main Dispatcher HOT 2
- PropertyQueryException: Failed to query compileDevelopmentExecutableKotlinJsZipline property outputDir HOT 1
- DatabaseCommonTest.insertCollisionThrowsSQLiteException is flaky
- worked in serveDevelopmentZipline but crashed in serveProductionZipline
- Unsupported OS: windows HOT 1
- Crashes with es2015 target HOT 1
- Nullable type parameters’ don’t show up in API dumps
- Cache needs to be more resilient to a full disk HOT 3
- Loading solely from file system is very hard HOT 1
- Expose QuickJS `gc` function inside VM
- Thread per app HOT 1
- ZiplineApiCheck is too slow HOT 2
- Serve embedded code if the server’s returned manifest matches the SHA
- Support stale-while-revalidate in FreshnessChecker HOT 1
- Missing JNI Libraries HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zipline.