Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd like to see an example of nontrivial asynchronous code that isn't at least a little awkward.

continuations may well be inefficient, it depends on the runtime. `defer` does not implement real continuations, so that's largely irrelevant - there is no runtime overhead that you don't already have by writing your own callback functions.

As for ugly, do you refer to the compiled output, or the source code? gcc outputs some pretty ugly assembly code; does it matter?



I'm referring to the source code. Also though ugly in terms of "eugh this isn't going to run efficiently. Mem usage will be crappy etc"

I've written a large amount of async code now, both in js and in java. I don't ever feel it's awkward, do you have an example of this awkwardness?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: