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

This site hosts the developer reference and the generated API documentation. The user-facing guides are maintained in the repository and render on GitHub:

Reference on this site