you really want to look at other Python JIT methods, including ones based on LLVM:

numba: https://numba.pydata.org/

and the old unladen swallow project: http://qinsb.blogspot.com/2011/03/unladen-swallow-retrospective.html

and of course, not LLVM based, but PyPy is worth a look.

In short: a lot of very smart people have put a lot of work into these efforts -- "m not saying you don't have good ideas, but it's clearly a very hard problem.

-CHB


On Mon, Jan 4, 2021 at 10:24 AM <redradist@gmail.com> wrote:
For me it easier to do with C++, I know C, but with C++ it is more maintainable and easier to add new feature and also easier to refactor ...

I am not sure if CPython maintainers team will appropriate that I add C++ in code base ...

But I can try, I will try to find time to create small proof of concept in C++
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/B6UM6566HMUP4O3WKXCP3GMT4RDPHCJJ/
Code of Conduct: http://python.org/psf/codeofconduct/


--
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython