News for hackers. Stuff that matters.
Re:Django 4.1 by ramraj07 on Wednesday August 03, 2022 @07:16AM (#32330176)
Might be unpopular but still good to stick to it. I tend to associate excessive enthusiasm for pythons async await framework as a sign of immaturity and potential for doing things without understanding them fully. I’d never trust async code from anyone except the best python engineers. Most of them out there can’t even debug linear code, adding async to the mix only makes it worse. At least you can trust the time stamps.
Re:Django 4.1 by coldtea on Wednesday August 03, 2022 @10:28AM (#32332163)
>I tend to associate excessive enthusiasm for pythons async await framework as a sign of immaturity and potential for doing things without understanding them fully.

Couldn't it be the inverse? I.e. your inexeperience with async code in other languages, and not understanding it fully, translating into "new thing aversion"?

Re:Django 4.1 by hansonkd13 on Wednesday August 03, 2022 @10:51AM (#32332564)
I think my experience in async in other languages has shown how rough async in Python is.

Unless async is the default python, it will always be an after thought and introduce needless complexity when working on large projects that require a lot of external libs.

Re:Django 4.1 by BozeWolf on Wednesday August 03, 2022 @07:56AM (#32330508)
Or when accidentally some blocking database driver is used, even when django's ORM is async, a query with mongodb's driver is not async. Or just the filesystem... This harms performance badly, especially if the idea was to run only a few threads.

Other than that, it has benefits too! :-)

Re:Django 4.1 by mrmikardo on Wednesday August 03, 2022 @08:24AM (#32330753)
And indeed, there's an important caveat in the Django 4.1 docs;

Note that, at this stage, the underlying database operations remain synchronous, with contributions ongoing to push asynchronous support down into the SQL compiler, and integrate asynchronous database drivers....

https://docs.djangoproject.com/en/4.1/releases/4.1/#asynchro...