How it Works

At its core, Function is a cross-compiler for stateless Python functions. These prediction functions (a.k.a “predictors”) have the following form:

predictor.py
def predict (name: str) -> str:
    return f"Hello {name}! We hope you like Function :)"

Function compiles this function, and at runtime, airdrops a compiled implementation to the device that made the request (i.e. your users). The client reports granular telemetry data back to our platform, and Function uses this data to continuously optimize the performance of your function.

See the How it Works page for a more technical overview of the compiler.

Minumum Requirements

Function compiles and executes Python functions on the following platforms: