3 ms·
Love it, async code is a major pita in most languages.
by codr7 10mo ago
Love it, async code is a major pita in most languages.
- giancarlostoro 10mo agoWhen Microsoft added Tasks / Async Await, that was when I finally stopped writing single threaded code as often as I did, since the mental overhead drastically went away. Python 3 as well.
- codr7 10mo agoIsn't this exactly the mess Zig is trying to get out of here? Every other example I've seen encodes the execution model in the source code.
- themafia 10mo agoIt's one of the things JavaScript has an easier time of than other languages due to the event driven single threaded nature of the runtime itself. They're not as powerful but they are quite useful and exceedingly ergonomic.