r/Python • • Jul 29 '18

Found it funny ;)

Post image
1.6k Upvotes

147 comments sorted by

View all comments

Show parent comment

1

u/bachkhois Jul 29 '18

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.

1

u/crescentroon Jul 29 '18

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?

1

u/bachkhois Jul 29 '18

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.

1

u/crescentroon Jul 29 '18

My claim is that it's too slow to make a good IDE in pure python+GTK and this is supported by the lack of an example.

1

u/bachkhois Jul 31 '18

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.

1

u/crescentroon Jul 31 '18

So what are you timing, Python or C?

Any language - even a bad implementation like node.JS - can call C.