Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by thomastjeffery on Thursday March 23, 2017 @12:36PM
(#13941350)
> when you consider the time investment to develop the infrastructure of a text editor today vs just using Electron, the time investment
...is exactly the same. No matter what gui toolkit you use, you still need to develop the infrastructure. Electron doesn't know how to handle keyboard and mouse events, it doesn't have a text buffer implemented, has no understanding of different text encodings, how to parse different languages, and draw different colored text accordingly, or format it, etc.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by fao_ on Thursday March 23, 2017 @12:12PM
(#13941086)
> developers wanting to add new features to text editors don't want to touch C++98 / ANSI C code from two decades ago.
As I understand it, sublime has tight enough integration with python, such that python can do literally everything you would ever need
They all support plugins and extensions, they are all super efficient in CPU usage, etc.
The thing is they aren't new, and because they are all C/C++ codebases developers wanting to add new features to text editors don't want to touch C++98 / ANSI C code from two decades ago.
Then you want to start talking about a C++17 / Go / Rust / etc text editor, but that is starting from scratch, and when you consider the time investment to develop the infrastructure of a text editor today vs just using Electron, the time investment makes less sense for hobbyist devs doing this stuff in their free time.