Skip to content

Lucen

Lucen is a source-to-source compiler that automatically parallelizes ordinary Python loops using comment pragmas. It parallelizes only the loops it can prove are both safe and worthwhile, and guarantees that a parallel run is bit-identical to the same file executed as plain sequential Python.

import lucen
lucen.activate()
# LUCEN START
for i in range(len(records)):
    scores[i] = score(records[i])
# LUCEN END

The quickstart is the README. Everything else is on this site.

Guides

Reference

Project