News for hackers. Stuff that matters.
Re:Making Python fast – Adventures with mypyc by atoav on Tuesday September 27, 2022 @11:18AM (#32996458)
Anybody using Python and Rust should also check out maturin and pyo3. I run some (non public) Python modules created in Rust and both the performance and the testability is stellar.
Re:Making Python fast – Adventures with mypyc by meadsteve on Tuesday September 27, 2022 @01:18PM (#32998260)
Yeah these are great approaches too. I'd actually considered a rewrite of the core in rust before I went with mypyc. But it was nice not to have to do a rewrite.
Re:Making Python fast – Adventures with mypyc by atoav on Tuesday September 27, 2022 @01:23PM (#32998315)
Totally understandable. More options are better anyways.
Re:Making Python fast – Adventures with mypyc by jblindsay on Tuesday September 27, 2022 @11:43AM (#32996840)
I have the exact same experience. Both Maturin and PyO3 have been a game changer for the work that I have been doing lately. It works so seamlessly.
Re:Making Python fast – Adventures with mypyc by kodablah on Tuesday September 27, 2022 @02:27PM (#32999158)
We built the logic backing the Temporal Python SDK[0] in Rust and leverage PyO3 (and PyO3 Asyncio). Unfortunately Maturin didn't let us do some of the advanced things we needed to do for wheel creation (at the time, unsure now), so we use setuptools-rust with Poetry.

0 - https://github.com/temporalio/sdk-python

Re:Making Python fast – Adventures with mypyc by atoav on Tuesday September 27, 2022 @04:05PM (#33000435)
I had no issues with the standard maturin way of building wheels – but my requirements were not special at all. I also did this maybe 5 months ago, so maybe it has indeed gotten better, I cannot tell.