3 ms·
I have a vested interest in creating a SM -> Chakra adapter to swap out SpiderMonkey and be able to compare it to see how it does because Chakra is also an inte
by apaprocki 11y ago
I have a vested interest in creating a SM -> Chakra adapter to swap out SpiderMonkey and be able to compare it to see how it does because Chakra is also an interpreter and not JIT-only like V8. Such an adapter would also make playing with Servo -> Chakra possible. I haven't play with Servo, but is there a list of all the JSAPI calls that it needs to function or can you easily dump that list?
- Natanael_L 11y agohttps://news.ycombinator.com/item?id=10682291 https://news.ycombinator.com/item?id=10682291 this?
- Manishearth 11y agoYep. See also: https://github.com/servo/rust-mozjs https://github.com/servo/rust-mozjs
- Manishearth 11y agoThe comments below link to the bindings (rust-mozjs is the Rust API, but the parts of it we use are in components/script/dom/bindings). Here's a `git grep jsapi` on that folder: https://manishearth.pastebin.mozilla.org/8853940 https://manishearth.pastebin.mozilla.org/8853940. Haven't removed duplicates or formatted it, so it's probably much shorter than it looks. Please keep me posted about this!