Announcement

Collapse
No announcement yet.

Nuitka 0.6 Released For Compiling Python Code To C

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

  • Nuitka 0.6 Released For Compiling Python Code To C

    Phoronix: Nuitka 0.6 Released For Compiling Python Code To C

    Nuitka version 0.6 was quietly released last week as the Python 2/3 compiler that converts the Python code into optimized C code...

    http://www.phoronix.com/scan.php?pag...eased-Python-C

  • #2
    Is Nuitka actually used in any noteworthy projects?
    In my experience Cython is superior for speeding up critcal parts of a python code, and it allows straightforward interfacing with external C/C++ libraries (although I'd recommend pybind11 if the main goal is interfacing a modern C++ code).

    (and then there's numba too, if all one need is to speed up some some functions which operate on numpy arrays)
    Last edited by thebear; 10-01-2018, 02:44 PM.

    Comment


    • #3
      One of the main speedup of using cython is because you can specify things like you don't need bound checks or negative table indices.
      Is that available too in nuitka ?

      Comment


      • #4
        Obligatory rewrite it in Rust comment

        Comment


        • #5
          Originally posted by thebear View Post
          Is Nuitka actually used in any noteworthy projects?
          In my experience Cython is superior for speeding up critcal parts of a python code, and it allows straightforward interfacing with external C/C++ libraries (although I'd recommend pybind11 if the main goal is interfacing a modern C++ code).

          (and then there's numba too, if all one need is to speed up some some functions which operate on numpy arrays)
          I think this tool objective is different.
          It converts Python code into C so you could use it as any C code in any C project.

          Think of it as MATLAB Compiler.

          Comment


          • #6
            Too bad Ubuntu 18.10 have Python 3.6 not 3.7, so can't use the new data classes.

            I kinda like Python, but at the same time it is rather weird.
            Like the decorators for getter/setter is weird, and static class variables vs instance variables. If you don't code in Python for a while, then you're confused when you're back because its so weird.

            Comment


            • #7
              Awsome, I've just compiled with Nuitka two of my python programs that use Gtk3 (one of them is very complex) getting full working programs.
              These are the linked libraries to the two programs:
              linux-vdso.so.1 (0x00007ffcc67d4000)
              libpython3.5m.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0 (0x00007ff5117ac000)
              libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff51140d000)
              libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff5111e3000)
              libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff510fc9000)
              libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff510dac000)
              libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff510ba8000)
              libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007ff5109a5000)
              libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff5106a1000)
              /lib64/ld-linux-x86-64.so.2 (0x00007ff51299f000)

              Everything else is embedded into the programs.
              Last edited by frank007; 10-02-2018, 05:19 AM.

              Comment

              Working...
              X