It would be nice if WebKit had classes to interact with the Javascript runtime.
Conversation
It does for many cases—what are you trying to do?
1
nothing yet, was just looking at the docs and didn't notice JS classes - maybe I missed it
1
Check out JavaScriptCore—in particular JSContext.h and JSValue.h.
1
thanks man - happen to know it it's feasible to run several million JS contexts at once?
3
that is, JS VMs that can't see one another's memory directly
1
Replying to
Very unlikely. JSVirtualMachine is the API, but it's heavier than that.
Replying to
I was hoping it could share memory for the JS VM itself but have small instances of each VM state
1
Actually, it looks like you can make one JSVirtualMachine and put many JSContexts inside it. That might be what you want?
1
Show replies

