4 ms·
Could be awesome! But it would need a JS engine.
by Narann 6y ago
Could be awesome! But it would need a JS engine.
- MayeulC 6y agoWhy would it, though? Any language should do, as long as you can package a runtime for the environment. Be it lisp, WASM, plain old C... It's just functions to call, that change the DOM, CSS properties, load pages, perform computations, call APIs... Of course, the thing you lose is the hardware and software abstraction layer provided by chromium's javascript APIs. Those could be exported to a select number of languages, it wouldn't be hard for a single dev to create a usable runtime in their language if they are provided with C bindings to the H/SAL...
- Narann 6y agoThanks, is there a public Servo C API with function calls to change the DOM?