Alessandro Amici - Fast Python! Coding competitions with CPython and PyPy

preview_player
Показать описание
"Fast Python! Coding competitions with CPython and PyPy
[EuroPython 2017 - Talk - 2017-07-12 - Anfiteatro 2]
[Rimini, Italy]

In a coding competition you want to solve problems ""fast""... why would you choose a ""slow"" interpreted language like Python? Because the ""slow"" Python wins competitions more often that most people think.

We will show how coding competitions work, what are the resources and constraints that competitors need to take into account, and we will find out that, like very often in real life, the actual processing time is only a small term in the complex equation that describe a competition.

The ""faster"" PyPy may help in gaining raw speed, but that is not the real advantage it gives you in a competition.

Рекомендации по теме
Комментарии
Автор

awesome talk, I love programming competitions

vicfred
Автор

Really shallow talk. TL;DR: Use Pypy

Works only for Codejam/Kickstart. Most other competitive coding websites have poor support for pypy/cython. CPython puts too many limitations as low recursion depth, slow IO. I'm trying to use python for competitions, but for any serious problem, I have to (sadly) fall back to C++

PragyAgarwal
visit shbcf.ru