News for hackers. Stuff that matters.

EricWF

What about the special access granted by many websites to the Google scraper?
Re:Coroutines are now in Clang trunk, libc++ on Friday May 26, 2017 @05:33AM (#14422913)
The changes literally landed in the past three days; The implementation is theoretically perfect, but once it's (seriously) observed by users it will decay into bugs. That's just basic quantum CS. :-)
Re:Coroutines are now in Clang trunk, libc++ on Friday May 26, 2017 @05:29AM (#14422900)
Libc++ coroutines are production ready!

But seriously, the library implementation for coroutines is just a shallow wrapper around compiler builtins.

Therefore libc++ is probably bug free, but Clang certainly isn't.

EDIT: "probably bug free" == famous last words.

Re:Coroutines are now in Clang trunk, libc++ on Friday May 26, 2017 @05:26AM (#14422889)
If you understand the internals they're anything but pythonic. Coroutines can be a zero overhead abstraction in the some cases.

For example here is a test that verifies the optimized output for a simple (and misnamed) integer generator compiled at -O2. Notice the arguments to `print` are integer literals. (https://github.com/GorNishanov/clang/blob/Experiments/test/C...)

I'm no python expert, but I suspect C++ optimizes this code better.