Hello Mansour
>> "May this project of C Python compiler give you some lessons learned for your future development of Ring2C"
Thanks for sharing, But We don't need to look at other projects to know how to develop (Ring2C)
(1) We already developed Ring Compiler/VM - While Ring2C will be Just a Translator or Compiler (The challenge is smaller not bigger)
(2) Each programming language comes with different
implementation that match it's design & unique features
According to their website : "Nuitka is already slightly faster than CPython, but there is work to be
done to include as many C optimizations as possible. We currently get a
312% speedup in pystone, which is a good start."
Being 3 times faster than CPython is not enough to match the effort required for such a project, but it's a good start and I hope that they can improve this in the future.
Remember in Ring, we have (REAL THREADS) - Using it we can get this increase in performance
Also we can improve the Ring VM performance to reach our limits in the current implementation before starting another project like (Ring2C)
When we think about (Ring2C) we think about the complete performance of the C language that could be from 1 to 100 times faster (according to the problem)
Also I am not saying that (Ring2C will bring us the complete performance of C - OR half of this performance - I still don't know how the results will be) - I am just saying this must be the goal, and it's a challenge because writing in Ring means the code is already high-level and this comes with a cost related to the performance.
There is a reason CPython still uses Compiler/VM and doesn't go in this direction (See other languages like Nim :
https://nim-lang.org/ )
If you want to get the BEST PERFORMANCE ---> You must sacrifice some of the other things like (Safety, Flexibility, Usability, Dynamic Features, etc.)
Greetings,
Mahmoud