Announcement

Collapse
No announcement yet.

RustPython Is Implementing Python 3 Within Rust

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

  • RustPython Is Implementing Python 3 Within Rust

    Phoronix: RustPython Is Implementing Python 3 Within Rust

    RustPython is a new Python 3.x implementation written within the Rust programming language...

    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

  • #2
    CPython is notably not safe against arbitrary bytecode, so it would be cool if this thing was. That would set it apart from the dozen existing Python implementations out there.

    Comment


    • #3
      Originally posted by Shnatsel View Post
      CPython is notably not safe against arbitrary bytecode, so it would be cool if this thing was. That would set it apart from the dozen existing Python implementations out there.
      Another thing is that with a more rigorous memory management, this new interpreter might be able to reduce reliance on dynamic garbage collecting (the Python language will always require some form of GC, but the interpreter itself may be able to streamline it), which would theoretically allow it to provide better support for multithreading by avoiding the GIL.

      Comment


      • #4
        Originally posted by phoronix View Post
        Phoronix: RustPython Is Implementing Python 3 Within Rust

        RustPython is a new Python 3.x implementation written within the Rust programming language...

        http://www.phoronix.com/scan.php?pag...-Python-3-Rust
        "written within the Rust programming language"? wouldnt it be "written in the Rust programming language". The former made me think that the rust compiler was incorporating a python interpreter for who knows what reason(macro interpreter(?) lol, who knows).

        Comment


        • #5
          Originally posted by jacob View Post

          Another thing is that with a more rigorous memory management, this new interpreter might be able to reduce reliance on dynamic garbage collecting (the Python language will always require some form of GC, but the interpreter itself may be able to streamline it), which would theoretically allow it to provide better support for multithreading by avoiding the GIL.
          Jython, IronPython and PyPy-STM are existing implementations of Python without the GIL, so that would not be exactly new.

          Comment


          • #6
            Originally posted by Shnatsel View Post

            Jython, IronPython and PyPy-STM are existing implementations of Python without the GIL, so that would not be exactly new.
            AFAIK Jython and IronPython have limitations (don't remember exactly, closures are only partially supported or don't work the same as is CPython, or something like that). Don't know about PyPy-STM.
            Both Jython and IronPython also suffer from pretty dismal performance and can't use Python libraries implemented in C.

            *IF* this project can create an interpreter that would work as a drop-in replacement for CPython with at least similar performance and without a GIL, that would definitely be new and very useful.

            Comment


            • #7
              Originally posted by euler271 View Post

              "written within the Rust programming language"? wouldnt it be "written in the Rust programming language". The former made me think that the rust compiler was incorporating a python interpreter for who knows what reason(macro interpreter(?) lol, who knows).
              Funny, that's exactly what I assumed at first: that this was some set of Rust macros or something that allows you to write Python code right in the middle of your Rust project

              Comment


              • #8
                I wonder how this would turn out. I tried suggesting a Rusted-Ruby, but there aren't that much interest.

                Comment


                • #9
                  Originally posted by Shnatsel View Post

                  Jython, IronPython and PyPy-STM are existing implementations of Python without the GIL, so that would not be exactly new.
                  Jython: Can't run C Python libraries with C extensions and badly behind CPython releases
                  IronPython: .Net requirement has limited portability, no Python 3 support
                  PyPy-STM: Largely academic research project. Requires differently compiled PyPy and not likely to replace regular one due to single-thread performance drop

                  Comment


                  • #10
                    Originally posted by Shnatsel View Post

                    Jython, IronPython and PyPy-STM are existing implementations of Python without the GIL, so that would not be exactly new.
                    But both are stuck on Python 2.7

                    And Jython is kinda dead, with some recent bugfix commits but the last release being from 4 years ago.

                    Comment

                    Working...
                    X