Comments (8)
@simast Yes!
from pkg.
If this is using the same snapshotting functionality that nwjs is utilizing, then it's possible that the performance issues have been improved greatly by the v8 team. Might just be part of using ignition / turbofan?
from pkg.
@dvlsg please try passing --options ignition,turbo,turbo-from-bytecode
to your pkg command line.
from pkg.
@igorklopov That's interesting, could you elaborate more? Does that mean with ignition and turbofan enabled (which is enabled by default from v8 5.9) - there won't be any performance drawbacks and the compiled code will be optimised during runtime?
from pkg.
Hi there,
So I added --options ignition,turbo,turbo-from-bytecode
to the build I just did and got the following error:
buffer.js:12
super(arg1, arg2, arg3);
^
ReferenceError: this is not defined
at FastBuffer (buffer.js:12:5)
at createUnsafeBuffer (buffer.js:38:10)
at allocate (buffer.js:190:12)
at Function.Buffer.allocUnsafe (buffer.js:153:10)
at Function.Buffer.concat (buffer.js:322:23)
at Socket.<anonymous> ([eval]:5:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:189:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at Pipe.onread (net.js:551:20)
> Error! Error: Was not able to compile for '{"nodeRange":"node7","platform":"linux","arch":"x64","output":"/Users/steven.lambe/iot/index-linux","forceBuild":false,"fabricator":{"nodeRange":"node7","platform":"macos","arch":"x64","forceBuild":false,"binaryPath":"/Users/steven.lambe/.pkg-cache/v1.9/fetched-v7.6.0-macos-x64"},"binaryPath":"/Users/steven.lambe/.pkg-cache/v1.9/fetched-v7.6.0-linux-x64","slash":"/"}'
at Socket.<anonymous> (/usr/local/lib/node_modules/pkg/lib-es5/producer.js:46:25)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at onwriteError (_stream_writable.js:341:10)
at onwrite (_stream_writable.js:359:5)
at fireErrorCallbacks (net.js:480:13)
at Socket._destroy (net.js:521:3)
at WriteWrap.afterWrite [as oncomplete] (net.js:815:10)
Once I removed turbo-from-bytecode though it seems to work. Am I missing something?
Building on Mac, targeting Mac, Linux, and Windows x64 with Node 7.
from pkg.
Add Pros of pkg (and comparison to nexe) from #42 to README?
@markelog: NB: enclosejs.com is dead as of 3 May 2017
from pkg.
It just proves that flagged features are unstable. I will look into it later. However we should probably wait for node.js 8 with stable Ignition/TurboFan https://www.youtube.com/watch?v=YTAFT2blJDo
from pkg.
Closing this as stale 🙏 Thank you anyway! If someone from the community would like to contribute back and mention pros/cons versus current solutions in 2021, I can take a look.
from pkg.
Related Issues (20)
- Cannot build base binary for FreeBSD
- Latest arm64 macOS binary does not work when built on Ubuntu HOT 2
- there is something evil bug when we start a exe which is created by pkg
- Failed to compile Gluon applications correctly
- Issue #1962 should not be closed
- Not working with selenium-webdriver HOT 2
- Error! No available node version satisfies 'node20' HOT 4
- Deprecated subdependencies (babel, npmcli, ts-evaluator, and w3c-hr-time)
- fs.promises.access doesn't work in /snapshot HOT 2
- Error! Not more than one entry file/directory is expected HOT 1
- pkg can't use execFile correctly HOT 1
- notice pkg has a serious bug when we use child_process exec exec,execFile spawn HOT 1
- cpSync with recurse:true results in ENOENT
- at Pkg.usageError (/Users/usernameee/volta/tools/image/npm/10.2.4/lib/base-command.js:113:26)
- Failed to launch chrome browser from selenium webdriver in exe file HOT 1
- does it supprot termux
- SyntaxError: Invalid or unexpected token HOT 1
- Error: The specified module could not be found (External DLLs)
- [BUG] can't run child_process.fork with string code HOT 1
- Not able to create binaries for axios node package
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 pkg.