On Mon, Aug 30, 2021 at 7:19 PM Xingyu Liu <xingyuliu@g.harvard.edu> wrote:

Hi everyone:

 

I’m Xingyu Liu, this year’s SciPy GSoC student :) This summer, I’m very fortunate to work on improving SciPy algorithms’ performance via Pythran, under the supervision of my awesome mentors Ralf Gommers and Serge Guelton! I’m so happy to share the blog of our work: http://serge-sans-paille.github.io/pythran-stories/gsoc21-improve-performance-through-the-use-of-pythran.html


Thanks for sharing Xingyu!

This has been a really fun and productive GSoC project from my perspective. It definitely helped mature Pythran and its integration into SciPy. There are a number of open PRs left that are close to completion and that we'll get merged over the coming weeks, however overall a lot was already merged into both SciPy and Pythran as Xingyu's blog post shows.

One of the main take-aways we learned recently was that we should use Pythran to accelerate the private part of a function, but leave the public signature and input validation in Python. This is something that wasn't obvious at the start of Xingyu's project, and we'll need to make sure we do that also for already-merged PRs (for consistently, and possibly to fix some undetected corner case bugs in master) before branching off 1.8.x. Other than that I think we are still pretty happy with Pythran; it gives us fast performance that's easier to obtain than with Cython.

It has been a great experience working on this project in GSoC'21, and much thanks to the SciPy community for this opportunity and help on my project! Special thanks to my mentors, Ralf and Serge, who provided immense support for me to get through the difficulties! I have learnt a lot this summer and I’ll continue to contribute to SciPy and Pythran in the future!!! 


 It's been a pleasure working with you too, and I'm happy you're going to continue contributing Xingyu!

Cheers,
Ralf