Earlier quoted context omitted.
I have been using Python since 25 years, and never needed that one.
In 25 years you’ve never once created a list with more than one type of object in it?
Codon: A high-performance Python-like compiler using LLVM
101–110 of 184 posts
Re: Codon: A high-performance Python-like compiler using LLVM
#102Earlier quoted context omitted.
In 25 years you’ve never once created a list with more than one type of object in it?
I have also been using python a long time and i honestly can’t remember a time i used mixed type list.
Re: Codon: A high-performance Python-like compiler using LLVM
#103Just out of curiosity: Why is it possible to compile Common Lisp Code (or Scheme, or Clojure) to high-performance native or jit-compiled code, but not Python? It is said that "Python is too dynamic", but is not everything in Lisp dynamic, too? And none of these languages is less powerful than Lisp, lack Unicode support, or whatever, so this can't be the reason.
Here is some old 2014 post:
http://jakevdp.github.io/blog/2014/05/09/why-python-is-slow/
As other commenters pointed out, some of these Python features, which are unused 99,99% time, could be sacrified for additional speedup by breaking backwards compatibility.
Re: Codon: A high-performance Python-like compiler using LLVM
#104Re: Codon: A high-performance Python-like compiler using LLVM
#105Re: Codon: A high-performance Python-like compiler using LLVM
#106Earlier quoted context omitted.
I have also been using python a long time and i honestly can’t remember a time i used mixed type list.
In my code this comes up often, e.g. when I use tuples instead of namedtuple or a dataclass.
Re: Codon: A high-performance Python-like compiler using LLVM
#107Unfortunately stuff like this never makes it to the upstream. And i am afraid to ask why. We had pypy for years, but never got merged with python. That is why there are still minor incompatibilities between pypy and "The Python", so it's not that useful as it might have been if it got merged with cpython at some point.
Re: Codon: A high-performance Python-like compiler using LLVM
#108Who would create a language that only has ASCII strings in this day and age?
> Codon currently uses ASCII strings unlike Python's unicode strings.
Note the word "currently." Implementing this while also tracking the constantly evolving Python language through its various versions is a lot of work. They apparently prioritizing other things over this particular aspect.
Re: Codon: A high-performance Python-like compiler using LLVM
#109Just out of curiosity: Why is it possible to compile Common Lisp Code (or Scheme, or Clojure) to high-performance native or jit-compiled code, but not Python? It is said that "Python is too dynamic", but is not everything in Lisp dynamic, too? And none of these languages is less powerful than Lisp, lack Unicode support, or whatever, so this can't be the reason.
Python does have lesser-used dynamic capabilities that probably don't exist in Common Lisp. Those capabilities make it difficult to optimize arbitrary valid Python code, but most people who need a Python compiler would be happy to make adjustments.
Re: Codon: A high-performance Python-like compiler using LLVM
#110Why not contribution to PyPy and Why not MyPyC
MyPyC requires type annotations to work. This does not.