On Mon, Nov 14, 2016 at 9:55 AM, Paul Rouget <p...@mozilla.com> wrote:

> > Would you be interested in using SpiderNode as this runtime? We used in
> Positron to run Electron's Node modules and are now experimenting with
> using in Firefox to enable WebExtensions to spawn Node child processes.
> Using it would give you the Node APIs implemented on top of libuv, plus
> third-party APIs available via NPM.
>
> I'll let Till answer this. I don't know much about what we want for the
> runtime.


Our focus is on creating a unified developer experience for Servo
embedding. With the core embedding API targeting Rust, we're looking into
building a lightweight runtime that seamlessly ties into the Rust
ecosystem. In particular, I'm working on a Tokio[1]-based runtime that
allows mixing of JS and Rust modules.

Irrespective of how that experiment turns out, SpiderNode might be very
valuable for us. Clearly the NPM ecosystem contains a wealth of
functionality; tapping into that would be great. It might be possible to do
this without running the core runtime in a libuv event loop.

In general I'm very interested in seeing how our groups could collaborate.
For example, we should ensure that Paul's embedding API is strictly more
expressive than a more generic API. One way to ensure this would be to
collaborate on an adapter layer implementing your API on Paul's. I'd see it
as a bug in our API if that's not possible. (Though it doesn't necessarily
need to be trivial - this wouldn't be an everyday undertaking after all.)

And we should sync up periodically so we don't needlessly duplicate effort
- I propose we start that with a meeting at the All Hands.

[1] https://medium.com/@carllerche/announcing-tokio-df6bb4ddb34
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to