Performance: Erg vs CPython #438
Replies: 2 comments 4 replies
-
The only backend that Erg currently has is CPython. That is, it runs on the CPython interpreter. In this sense, there is no performance difference between Erg and Python. And I am currently developing a native code backend, that means, it does not depend on CPython. Using this, Erg should get the same execution performance as a regular compiled language. But note that Erg's main goal is not to speed up Python (if you expect that, perhaps you should use Mojo) but to improve the Python developer experience with a static type system, which is the same approach as TypeScript. Performance is a byproduct. The main motivation for developing a native code backend is the ease of distribution of single binaries, etc. |
Beta Was this translation helpful? Give feedback.
-
It may be possible. But Erg is focused on interoperability with Python, and I don't think Mojo is a drop-in replacement for Python at this time. Also, in my personal opinion, I don't think the current Mojo (Modular Inc.) approach ― a closed source language developed by one company ― will be successful. At least until the entire source code of Mojo is open, I have no intention of using it seriously. But using MLIR does not seem like a bad option. |
Beta Was this translation helpful? Give feedback.
-
Is there any Performance comparison between Erg and CPython with same algorithm and similar paradigm?
Beta Was this translation helpful? Give feedback.
All reactions