Comments (7)
Doesn't V8 have it's own GIL? What would happen if you initialize multiple VMs inside a process?
from v8-cffi.
It's explained in the docs. You can run multiple VMs, each has its own GIL.
from v8-cffi.
Oh that's really cool. I didn't know that it was possible. If you try to do the same with Python you're going to encounter some nasty issues.
from v8-cffi.
Yes, the alternative (in Python) is to spawn a child process. V8's devs could have done the same to work around the GIL, but instead they added the concept of isolate
(a VM for all practical purposes) to achieve the same with threads (I dunno why they wanted threads so badly, since with isolates
you still share nothing). I think that feature is there to support web workers.
from v8-cffi.
I thought that it's not possible since in MRI Ruby you are not allowed to use more than one V8 VM in one process.
from v8-cffi.
I guess it must be a limitation of the gem (therubyracer?), maybe it's built on top of an older V8.
from v8-cffi.
Actually ExecJS disallows it and both therubyracer and miniracer don't support it. Kudos on having that already built in.
from v8-cffi.
Related Issues (6)
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 v8-cffi.