9 ms·
The first part is semantics, yes I understand that python is running one OS thread at a time with a GIL (for now). Just pretend I used the word "concurrent" ins
by mgraczyk 4y ago
The first part is semantics, yes I understand that python is running one OS thread at a time with a GIL (for now). Just pretend I used the word "concurrent" instead of parallel in all the places necessary to remove the semantic disagreement.
Whether threads and joining vs async/await is clearer is a matter of taste and familiarity. I find async/await much more clear because that's what I am more used to. Others will disagree, that's fine. I suspect more people will prefer async/await as time goes on but that's my opinion.
> not worrying about marking functions as async or not is a great boon to development.
I don't really see why this is a big deal. You can change the function and callers can change their callsite. There are automated lint steps for this in python and javascript that I use all the time. It's not any different to me than adding an argument or changing a function name.
- gbear605 4y agoPart of the difference with Java is that a lot of libraries haven’t changed in twenty years because they already work. Adding async/await would probably mean writing an entirely new library and scrapping the old already working code, while green threads allow the old libraries to silently become better.
- anonymoushn 4y agoWhen you add an argument you don't have to change all callsites of transitive callers.