3 ms·
What is the reason for making a JavaScript runtime based on browser APIs that cannot also be a browser? Or in other words, wouldn't it have been easier and bet
by devit 6y ago
What is the reason for making a JavaScript runtime based on browser APIs that cannot also be a browser?
Or in other words, wouldn't it have been easier and better to make an optionally headless version of the Servo browser with additional native APIs and some enhancements like being able to run JavaScript directly in addition to HTML?
The choice made means that Deno can't be used, at least directly, to make desktop applications, and also doesn't have all the features that browsers have for free, like multiprocess and multiple sandboxes, network traffic inspector, local storage, GPU compute, etc.
- mahmoudimus 6y agoThis is a very interesting idea - basically the new JVM is a headless browser. Fascinating to think Of the possibilities.
- timw4mail 6y agoThe Javascript engine is a lot smaller code surface area than an entire browser rendering engine.