News for hackers. Stuff that matters.
Re:Faster JavaScript Calls by BenoitEssiambre on Monday February 15, 2021 @02:02PM (#26145925)
I once proposed to also speed up and simplify asynchronous async/await function calls by removing the extra caching layer and state machine underlying all such calls that come from using promises:

https://es.discourse.group/t/callback-based-simplified-async...

Re:Faster JavaScript Calls by cxcxcxcx on Monday February 15, 2021 @03:02PM (#26146609)
Have you considered that generators are basically state machines?
Re:Faster JavaScript Calls by BenoitEssiambre on Monday February 15, 2021 @05:52PM (#26148679)
Yes, but I meant not an additional state machine and caching layer. Promise based async/await also have the generators.