-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import (use) pythonia #4236
Comments
Related to IPC channel, https://nodejs.org/api/process.html#processchannel const cp = require("node:child_process");
const assert = require("node:assert");
if (process.argv[2] === "child") {
setTimeout(() => { }, 100);
} else {
const child = cp.spawn(process.execPath, [__filename, "child"], { stdio: [null, null, null, "ipc"] });
console.log(child.channel);
} |
Is compatibility with packages that rely on V8 internals even a goal for Bun? |
there was some talk about this in here #4259 (comment) |
I think it is node’s internal, not v8, since no native module used here |
I was just saying that because of the comment in pythonia's code which says "internal V8 serialization APIs; fast but unusable in Python." |
oh, it is not complete, the whole comment is
so it basically saying, pythonia cannot use node’s ipc channel directly and there no api to pass a custom channel (without break stdio), so they have to hijack the default ipc channel’s serialization mechanism |
We are not going to implement but maybe we can add an alternative |
What version of Bun is running?
0.7.3
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
code:
What is the expected behavior?
run without problem
What do you see instead?
Additional information
related code:
https://github.com/extremeheat/JSPyBridge/blob/1e7a6a4a8193eeb8af3fab5587c2ea6da576b130/src/pythonia/IpcPipeCom.js#L22-L44
The text was updated successfully, but these errors were encountered: