Mapping Python to LLVM
21–30 of 34 posts
Re: Mapping Python to LLVM
#22I recall that Google had a project to compile Python to LLVM (Unladen Swallow @ https://code.google.com/archive/p/unladen-swallow/ ), but work stopped on it a long time ago. If I recall it really wasn't that much faster than CPython given the overhead, but it's been a long time; if it was faster I assume it wouldn't have been abandoned.
Re: Mapping Python to LLVM
#23A major type-incompatibility not mentioned in the linked blog post is this, from[1], * Strings: Codon currently uses ASCII strings unlike Python's unicode strings. Judas priest, after all the effin' grief we went through to learn how to handle Unicode strings in Python 3, and to finally begin to realize their value, you take this step backward? Forget the i64 limits, the lack of native Unicode strings is a flat deal-…
Breaking compatibility from the current spec/functionality of python should be a definite no-no for any implementation. That being said, I can still appreciate that they didn't try to write their own busted unicode implementation since many other ones have contributed to security issues.
Re: Mapping Python to LLVM
#24Have to assign variables to a bit of memory on the stack because SSA??
Re: Mapping Python to LLVM
#25> Please reach out to... to inquire about about a production-use license.
Having "contact us" pricing with several incompatibilities makes this pretty hard to consider in a commercial environment. I wish they had a public pricing structure.
From their faq: https://docs.exaloop.io/codon/general/faq.
Re: Mapping Python to LLVM
#26> How can I use Codon for production or commercial use? > Please reach out to... to inquire about about a production-use license. Having "contact us" pricing with several incompatibilities makes this pretty hard to consider in a commercial environment. I wish they had a public pricing structure. From their faq: https://docs.exaloop.io/codon/general/faq .
Re: Mapping Python to LLVM
#27Re: Mapping Python to LLVM
#28A major type-incompatibility not mentioned in the linked blog post is this, from[1], * Strings: Codon currently uses ASCII strings unlike Python's unicode strings. Judas priest, after all the effin' grief we went through to learn how to handle Unicode strings in Python 3, and to finally begin to realize their value, you take this step backward? Forget the i64 limits, the lack of native Unicode strings is a flat deal-…
Breaking compatibility from the current spec/functionality of python should be a definite no-no for any implementation. That being said, I can still appreciate that they didn't try to write their own busted unicode implementation since many other ones have contributed to security issues.
Re: Mapping Python to LLVM
#29How much does this differ from PyPy's RPython in terms of how the language is restricted?
Re: Mapping Python to LLVM
#30I recall that Google had a project to compile Python to LLVM (Unladen Swallow @ https://code.google.com/archive/p/unladen-swallow/ ), but work stopped on it a long time ago. If I recall it really wasn't that much faster than CPython given the overhead, but it's been a long time; if it was faster I assume it wouldn't have been abandoned.
The blog post here mentions they do their own optimization passes, before handing over to LLVM. I imagine that's pretty important.