News for hackers. Stuff that matters.
Re:Why I’m Learning Perl 6 by anonacct37 on Wednesday July 26, 2017 @02:29PM (#14858821)
Very true. Node does this too, in the sense that all node libraries are async/callback aware or have async/callback versions of those.

I much prefer the go/erlang version of this. Playing the "what color is your function" game or "will it block" is no fun.

Re:Why I’m Learning Perl 6 by dmix on Wednesday July 26, 2017 @04:14PM (#14859836)
> Playing the "what color is your function" game or "will it block" is no fun.

This was quite painful with.js Node 1-2yrs back when Promises and coroutines started picking up steam [such as https://github.com/tj/co]. It was always a shot in the dark.

Has this situation changed now? (basically is the stdlib all async friendly now?)

Re:Why I’m Learning Perl 6 by bmn__ on Thursday July 27, 2017 @05:20AM (#14863715)
Yes, insofar it's been possible for a few years to mechanically upgrade stdlib functions marked with the Async suffix into promises with a helper library such as Bluebird. Any promise based function complying with the common promise spec is automatically async friendly, that is to say the async/await keywords do what you expect and the programmer does not need to chain then-ables anymore. Node v8.0.0 adds a promisifier into core for convenience: https://nodejs.org/dist/latest-v8.x/docs/api/util.html#util_...