Announcement

Collapse
No announcement yet.

Python 3.12 Released With Linux Perf Integration, Performance Improvements

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • raystriker
    replied
    Originally posted by timofonic View Post

    What would you suggest? Perl? Haskell? Lua?
    No-GIL python is coming.

    Leave a comment:


  • timofonic
    replied
    Originally posted by uid313 View Post
    It's always nice that Python gets faster but for the most part, Python is plenty fast for me, and if you need higher performance there are always other languages.

    Python got plenty of other problems though.
    • Static fields on methods are declared as such without any explicit static keyword, it's all implicit using self.foo so if I take a break from Python, its trickier to understand it as it works in a rather non-intuitive and unorthodox way.
    • It got a vanity "Python Software Foundation License" instead of a normal license like Apache License or MIT License.
    • It sucks for embedding into other software because there is no way to limit what it can do. Any script will have full access to anything and everything.
    • You cannot do top-level await, you have to put it inside an async function and declare a asynchronous executor.
    • The standard library is shitty:
      • The JSON module cannot deserialize into a class.
      • No asynchronous HTTP client. urllib is shit.
      • The standard library is inconsistently and poorly documented, and as for type hinting it is in a sad state.
    • Type hinting is great but in Python it is confusing and shitty. It has gotten slightly better, but it's always been shitty and is still shitty.

    What would you suggest? Perl? Haskell? Lua?

    Leave a comment:


  • uid313
    replied
    It's always nice that Python gets faster but for the most part, Python is plenty fast for me, and if you need higher performance there are always other languages.

    Python got plenty of other problems though.
    • Static fields on methods are declared as such without any explicit static keyword, it's all implicit using self.foo so if I take a break from Python, its trickier to understand it as it works in a rather non-intuitive and unorthodox way.
    • It got a vanity "Python Software Foundation License" instead of a normal license like Apache License or MIT License.
    • It sucks for embedding into other software because there is no way to limit what it can do. Any script will have full access to anything and everything.
    • You cannot do top-level await, you have to put it inside an async function and declare a asynchronous executor.
    • The standard library is shitty:
      • The JSON module cannot deserialize into a class.
      • No asynchronous HTTP client. urllib is shit.
      • The standard library is inconsistently and poorly documented, and as for type hinting it is in a sad state.
    • Type hinting is great but in Python it is confusing and shitty. It has gotten slightly better, but it's always been shitty and is still shitty.


    Leave a comment:


  • stormcrow
    replied
    Python... the source of much hair pulling while trying to figure out the concept of inheritance... and the many frustratingly inaccurate explanations of inheritance using automobile types found in so many books and tutorials. But hey, at least I can read Python well enough at this point I can definitively say "That's not malware, it's just glue code for $online_service!". At that point $online_service being malware or spyware is usually a political or regulatory argument that I can ignore not being the compliance officer. Most automated malware scanners can't properly evaluate Python code, necessitating having someone around to be able to read Python and make the determination whether something is immediately malicious or not.

    chromer : I know Michael is working on a benchmarking article, but it's really trivial to do them yourself. Python interpreter performance is going to vary depending on host CPU features, compiler options, and language features utilized, threaded v. unthreaded. Pybench is available near universally plus there's more task specific testing programs out there.

    Leave a comment:


  • chromer
    replied
    Waiting for benchmarks...

    Leave a comment:


  • timofonic
    replied
    So official Python is getting faster? Will unofficial Python implementations become useless someday?

    Linux perf seems getting lots of interest lately too.

    Leave a comment:


  • Python 3.12 Released With Linux Perf Integration, Performance Improvements

    Phoronix: Python 3.12 Released With Linux Perf Integration, Performance Improvements

    Python 3.12 is out today as the latest major feature release for this extremely popular programming language. Python 3.12 continues the trend of recent releases of enhancing the performance while continuing to introduce exciting new functionality...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
Working...
X