Till Schneidereit <mailto:t...@tillschneidereit.net>
2016 November 17 at 09:22

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.
Ah, that makes sense. Do you have particular use cases in mind for this runtime?

In particular, I'm working on a Tokio[1]-based runtime that allows mixing of JS and Rust modules.
Interesting, any links to work in progress?

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.
Right, although emulating or reimplementing libuv seems like a lot of work.

We spent some time emulating Node modules for the renderer process in Positron, which was doable, since Electron apps like Tofino tend to avoid using much Node in that process. But they do use a lot of Node in the main process, and we ended up running the libuv event loop there (via SpiderNode).

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.
That'd be very helpful, although we haven't yet designed this API, so we can't give too much guidance at this stage.

(Though it doesn't necessarily need to be trivial - this wouldn't be an everyday undertaking after all.)
Indeed. It's ok if it's hard. I only want to avoid unnecessary duplication of effort.

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.
That sounds like a great plan. I'll find you there and arrange it!

-myk

_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to