4 ms·
Ace is probably the fastest code editor, especially for large files. Features are far from monaco but you have to load only 200kb for ace vs 2.5mb for monaco
by js4ever 8y ago
Ace is probably the fastest code editor, especially for large files. Features are far from monaco but you have to load only 200kb for ace vs 2.5mb for monaco
- guachesuedehack 8y agoI believe ace has more features ?
- PurpleRamen 8y agoMaybe it would make more sense to integrate those Editors then directly into the browser. Make it customizable and just create an API that can be used by some WebExtension, and deliver one out of the box. But at the end, a well adapted fast loading editor which is well integrated into the rest of the ecosystem might be some kind of next level for the Webstack-Platform.
- egeozcan 8y agoThis would be too much added complexity for such a limited use case. Browsers are already approaching the complexity of an operating system and starting to bundle applications in them sounds like a weird thing to do when even operating systems are moving away from bundling.
- espadrine 8y agoMore than that, the benefits would not be felt. A PWA erases the cost of downloading the JS library, so that startup of the app would be the same as relying on having the same library bundled with the browser. As far as latency goes, browsers won't beat what is already possible in HTML/CSS; or else, they can optimize the engine to match the performance and everyone benefits. That's why browsers' devtool editors are unsurprisingly in HTML/CSS (I believe Chrome/Firefox uses CodeMirror rather than Ace, but it works similarly). Finally, functionality varies from one app to the other. One may want tabs to autocomplete; another may want them to input actual tabs; another, a number of spaces. Some may need multiple cursors, and some may need the editor's algorithms to not be too slow when the data to edit is compiled text (say, a single-line 100k minified JS file can crush the performance of your text editor if its string data structure is not ready). There are no outstanding benefits to having a library be bundled in the browser.