Showing posts with label Nuitka. Show all posts
Showing posts with label Nuitka. Show all posts

Sunday, December 9, 2012

mypy, Python variant with goal of dynamic and static typing and compilation to native code

mypy - A New Python Variant with Dynamic and Static Typing

Mypy is a research project by a Finnish Ph.D. student, Jukka Lehtosalo, http://www.cl.cam.ac.uk/~jal82/index.html, at Cambridge Computer Laboratory, http://www.cl.cam.ac.uk/ , supported by various organizations, to make a variant of Python with dynamic and static typing, and the ability to compile to native code, so that no VM is needed to run programs.

It is in an early stage of development.

http://www.mypy-lang.org/about.html

mypy-lang.blogspot.co.uk

This page explains the motivation for mypy:

http://www.cl.cam.ac.uk/~jal82/interests.html

I had blogged about Nuitka, another roughly similar Python project, earlier.

- Vasudev Ram

Saturday, September 22, 2012

Nuitka, faster replacement for Python?

By Vasudev Ram


Seen via this tweet by @Phaseit. He describes it as "Python, with the speed of C++".

Nuitka

Excerpt from the Nuitka overview page above:

[ Right now Nuitka is a good replacement for the Python interpreter and compiles every construct that CPython 2.6 and 2.7 offer. It translates the Python into a C++ program that then uses "libpython" to execute in the same way as CPython does, in a very compatible way.

It is somewhat faster than CPython already, but currently it doesn't make all the optimizations possible, but a 258% factor on pystone is a good start (number is from version 0.3.11). ]

Looks interesting, must keep an eye on its progress.

Two other projects to make Python faster are Unladen Swallow that was started by Google (don't know the status as of now), and PyPy (PyPy Wikipedia page). PyPy has been funded (over time) by the European Union, Google and the Python Software Foundation.

UPDATE: Checked the Wikipedia link for Unladen Swallow above, it seems like the project is stopped. No activity since 2009 or so.

- Vasudev Ram - Dancing Bison Enterprises