What's the difference with mypyc [0] ? It also compiles Python to native code. [0]: https://github.com/mypyc/mypyc
the last commit to it's repo was 2 years ago.
See https://github.com/mypyc/mypyc/blob/master/show_me_the_code....
81–90 of 184 posts
What's the difference with mypyc [0] ? It also compiles Python to native code. [0]: https://github.com/mypyc/mypyc
the last commit to it's repo was 2 years ago.
See https://github.com/mypyc/mypyc/blob/master/show_me_the_code....
power of Python is in ecosystem of libraries, not only Python syntax. Without the ecosystem of libraries, I am afraid use cases for Codon will be very very limited. Because Python developers (just like Node) got used to thinking: Need to do X? Lets see if I can pip install library that does it. Ultimately, python is like super flexible glue between ecosystem of libraries that lets anyone build and prototype high qual…
If Codon becomes similar enough to Python, it will be trivial to port Python libs to it, thus opening Codon to the vast Python ecosystem.
I want the opposite. Is there a project that compiles to python (either source or bytecode)? Sort of a graalvm for python?
WebAssembly? Try compiling something to WebAssembly and running it in python?
A quick search leads to pywasm and it is even native python. But is it usable? Any other options?
would love to see actual benchmarks
Don't have anything significant, but giving this a quick test with some of my advent of code solutions I found it to be quite a bit slower: time python day_2.py ________________________________________________________ Executed in 57.25 millis fish external usr time 25.02 millis 52.00 micros 24.97 millis sys time 25.01 millis 601.00 micros 24.41 millis time codon run -release day_2.py _________________________________…
Free for non-production use... it's a "no" for me.
Surprised this sentiment is so common. It's like, do you want open source devs to work for free forever? Even Redis had to pivot to a business license. I'm not sure what the terms are in this particular case, but in general, wanting someone to pay if they're deploying it to lots of customers seems reasonable.
By the way, Redis is still BSD licensed.
Since Codon performs static type checking ahead of time, a few of Python's dynamic features are disallowed. For example, monkey patching classes at runtime (although Codon supports a form of this at compile time) or adding objects of different types to a collection. This seems like a very different language from Python if it won't let you do: [1, 'a string']
?
Would it be possible to write performance-sensitive parts of a Python system in Codon and link that to a CPython or PyPy runtime that supports more dynamic features?
Who would create a language that only has ASCII strings in this day and age?