News for hackers. Stuff that matters.
Re:Pythran: Crossing the Python Frontier [pdf] by accurrent on Tuesday April 24, 2018 @04:46AM (#16910959)
Re:Pythran: Crossing the Python Frontier [pdf] by emmelaich on Tuesday April 24, 2018 @05:00AM (#16911026)
> "Pythran is an ahead of time compiler for a subset of the Python language, with a focus on scientific computing."

and

> a claimless python to c++ converter

Re:Pythran: Crossing the Python Frontier [pdf] by serge-ss-paille on Tuesday April 24, 2018 @08:29AM (#16911947)
(main dev writting) Don't focus too much on the claimless :-) There still are far more wide spread tools that solve the same kind of issues (numba, cython, julia)...

The idea of the change was that it's more important to convey the problem it solves rather than how it's done ;-)

Re:Pythran: Crossing the Python Frontier [pdf] by UncleEntity on Tuesday April 24, 2018 @12:18PM (#16913944)
Nice project, I've wanted to do something similar using my libjit python bindings but never seem to work up the gumption.

Simple and Effective Type Check Removal through Lazy Basic Block Versioning[0] could be adapted to make it unnecessary to compile more than one version of the function at a (probably) minor cost of performance. It's geared more towards jitted code but something like it where it compiles different blocks where the types matter and falls back to interpreted code if users pass in some random types not expected just might work -- or the python interpreter throws an exception if the types don't make sense.

[0]http://drops.dagstuhl.de/opus/volltexte/2015/5219/pdf/9.pdf