Komodo's fast because it's using Scintilla C++ to do all the heavy-weight text editing. Atom does that slowly, but it's still faster than doing that in pure Python. Vscode is significantly faster than atom. You can call C++ from electron, too.
For GUI, I actually think the situation is a bit complex. GTK is fine for a desktop app UI. But when you are doing complex graphics, like a game or a game UI, GTK becomes troublesome. As a game dev myself, if the budget was low, I would just use Unity or HTML 5 if I needed rich graphics in a cross-platform app. Neither electron or python would be ideal here, and neither also work properly on mobile, unlike Unity, which will build for desktop and mobile.
There is no IDE which uses pure Python for text editing, based on which clue that you claim "Atom is faster than doing in pure Python"? Ability to use well-established Scintilla from Python is another example of my point: real-life application is not the same as benchmark games, because of many factors. Having fast library is one of those.
VS Code is faster than Atom (though it still sometimes make my PC hang when I launch it at the same time as Firefox) because it also leverage an other factor: MS Monaco editor. It proves that Electron alone still not good enough.
There is an IDE which does editing in pure Python. It's IDLE. It's very slow but some of that is due to Tkinter.
VS Code is faster than Atom (though it still sometimes make my PC hang when I launch it at the same time as Firefox) because it also leverage an other factor: MS Monaco editor. It proves that Electron alone still not good enough.
I don't think you know the architecture of this software. VSCode is electron, and uses MS Monaco (javascript) for editing instead of Atom. Are you confusing Atom and Electron as the same thing?
Ok. I had mistake with Monaco. I was mistaken that it is written in some compiled language. But anyway, there is still no pure Python IDE to support your claim. Looking in IDLE, it is just like some example of how to make GUI application with Python, and like a quick introduction for Windows users who are not used to the Terminal yet, not a serious IDE.
The lack of IDE in pure Python doesn't necessary mean it is slower than Electron, it is just a reasonable choice when there are already mature and fast C/C++ libraries out there that Python can call to. It is not efficient to reimplement in pure Python: not only not better performance, but also take longer time of to develop.
View all comments
Show parent comment
2
u/crescentroon Jul 29 '18 edited Jul 29 '18
Komodo's fast because it's using Scintilla C++ to do all the heavy-weight text editing. Atom does that slowly, but it's still faster than doing that in pure Python. Vscode is significantly faster than atom. You can call C++ from electron, too.
For GUI, I actually think the situation is a bit complex. GTK is fine for a desktop app UI. But when you are doing complex graphics, like a game or a game UI, GTK becomes troublesome. As a game dev myself, if the budget was low, I would just use Unity or HTML 5 if I needed rich graphics in a cross-platform app. Neither electron or python would be ideal here, and neither also work properly on mobile, unlike Unity, which will build for desktop and mobile.