Yeah, bread is very popular too. Still - terrible nutritional value. Many people can live on that tho, most due to lack of choice for anything better. Amazing what odd things people can grow accustomed to.
Announcement
Collapse
No announcement yet.
Python 3.11 Performance Benchmarks Are Looking Fantastic
Collapse
X
-
The problem is that it will never be fast enough.
Personally I've never had a problem with typing Python syntax either, ... but then I've taken a typing class . Ha!
Of course if you don't like it, you can always go back to Visual Basic, or Lisp, Cobol, or whatever you think 'is the' language is best in your own mind.
- Likes 1
Comment
-
-
Originally posted by marios View Posti agree, the problem here is that it is abused. It is supposed to be used for scripts, it is not used for performance critical applications as well (portage is an example for that).
Originally posted by marios View PostNot quite. I suggest that people should avoid interpreted languages if performance might be an issue. But since effort on writing software is limited, it would be more beneficial to spend this effort on rewriting applications and libraries (and their APIs) in compiled languages than optimising interpreters.
I actually think developing everything in Python first is a good idea. Specs will never be clear enough to identify performance hotspots from the beginning and Python at least gives you a short time-to-market. Once you know your performance hotspots, by all means, rewrite those in Go/Rust/C as needed. I am still on the fence about writing everything in Go first, instead of Python; I think you'd get the same speed of development, but idk if the ecosystems as a whole can compare yet.
- Likes 4
Comment
-
Here comes the informative version- PSFL is a permissive license approved by the FSF and the OSI. It's fine
- It'a limitation of CPython, not of the language per se. PyPy can be sandboxed. PS: https://wiki.python.org/moin/SandboxedPython
- ...
- Maybe?
- Not an issue
- A matter of taste. I'm quite comfortable with Python's typing. MyPy works pretty well
- Lambdas in Python are very restricted. Defining named functions is preferred. The syntax is a bit cumbersome, but nothing terrible
- This is legit. There is Sphinx, but it's not standard
- Not an issue
- Other people see value in the match statement, which btw doesn't rely on type hints
- True, but not a big deal
- Likes 2
Comment
-
Besides changes affecting the Python language itself, Python 3.11 has been landing performance work from the "Faster Cython Project" to speed-up the reference implementation. Python 3.11 is 10~60% faster than Python 3.10 according to the official figures and a 1.22x speed-up with their standard benchmark suite.
Comment
-
That's great..i barely wait to test it when stable.
For those complaining that the performance is bad, go use other languange. The flexibility and ease of use is Python strong suit.
The things Python allows are far more worth than the performance issues. Also Python allow C code to be integrated (i don't know if it's possible,but it will be nice to add rust and other compiled languages).
The good thing for Python is that the pure python libraries rarely required modification to work on the next version (beside 2to3 ). The external code almost always needs update/recompile. So a performance improvement on pure python is always welcomed.
Comment
-
Originally posted by uid313 View Post[*]It has the "walrus operator" which nobody outside of the Python community knows, and since the language targets non-developers it's even more confusing when they muddy the syntax with unnecessary things people don't understand, need or care about.[*]To me it feels like the Python developers added the match statement just because they saw it was popular in other languages. I absolutely love the match statement in Rust and consider it a killer feature, but I don't see any value for it in Python due to it's loosely typed nature and poor support for type hinting.[*]You cannot use this language on Android or iOS.[/LIST]
Match (or C switch) was needed not for performance but for clarity of code. How it looks in C using a big if vs switch. Also it doesn't have the limitation of C switch on using only integers. The flexibility of match matches the Python Zen https://peps.python.org/pep-0020/
You can use it in Android (maybe not on base level) but you can program and run python scripts (look into the store).
- Likes 1
Comment
-
Originally posted by bug77 View PostI am still on the fence about writing everything in Go first, instead of Python; I think you'd get the same speed of development, but idk if the ecosystems as a whole can compare yet.
Fun fact, in the project I was where they went for Go by default, after I left they ended up rewriting in Python.
Originally posted by marios View Posti agree, the problem here is that it is abused. It is supposed to be used for scripts, it is not used for performance critical applications as well (portage is an example for that).
Now, I agree things like portage shouldn't be scripted. But that's what you get for being an old school unixy fan, Perl, shell scripts, and more recently Python, running for your core services. It's not Python's fault that graybeards are stupid.
- Likes 5
Comment
Comment