Closed Bug 1594041 Opened 7 years ago Closed 6 years ago

Use a compiled Python C extension rather than cffi for Python bindings

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mdroettboom, Unassigned)

References

Details

(Whiteboard: [telemetry:glean-rs:backlog][glean-py])

The use of cffi for building the Python bindings is perfectly acceptable for the end-to-end testing MVP. However, since the type checking happens at runtime, it is perfectly possible that malformed input to the Python glean bindings could result in a segfault (or worse).

For a "releasable" version that might ship in end-user products, such as telemetry for mach, we should move to a proper fully-compiled Python/C extension, using, for example PyO3, or since we only interact with the Rust through a C FFI layer anyway, any of the plethora of tools for generating Python/C extensions, such as SWIG, Cython or even the hand-written option.

Type: defect → enhancement
Whiteboard: [telemetry:glean-rs:m?][glean-py] → [telemetry:glean-rs:backlog][glean-py]
Blocks: 1581647

The downside of this is going from supporting 4 builds (Win32, Win64, macOS, Linux) to the product of that and Python versions (3.6, 3.7, 3.8, 3.9). Marking as WONTFIX.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.