3 ms·
Google needs to get off its ass and open source Fibers (not to be confused with Google Fiber). Fibers sparked plenty of joy in me back when I was at Google. It'
by m0zg 5y ago
Google needs to get off its ass and open source Fibers (not to be confused with Google Fiber). Fibers sparked plenty of joy in me back when I was at Google. It's just a more dignified way of doing things with threads, IMO. Here's the talk which, unfortunately, does not show the higher level APIs I'm talking about: https://www.youtube.com/watch?v=KXuZi9aeGTw https://www.youtube.com/watch?v=KXuZi9aeGTw. If this were released today everyone would slap their foreheads and say "of course that's how it should be done".
Google folks have already removed the obstacle in that direction by adding userspace switching to the kernel in recent kernel releases. Just go all the way now, and release the kraken.
Last update I've seen on this is this article from June of this year: https://www.phoronix.com/scan.php?page=news_item&px=Google-Fibers-Toward-Open https://www.phoronix.com/scan.php?page=news_item&px=Google-F...
Imagine how excruciating it must have been to all the Google people on the C++ Standard committee to work on this stuff that comes nowhere close to what they've been using internally for years, and not be able to talk about it in any kind of detail.
- dilyevsky 5y agoFibers were seriously awesome, nice that userland preemption has been finally accepted upstream too. These days i just gave up on c++ and use Go
- m0zg 5y agoYeah, I also don't advise my clients to start new C++ projects and steer them towards either Go or Rust (most pick the former, since it's easy to learn). If I were to start a product today, I'd likely be using Rust myself, purely due to the fact that once I need to hire people the Rust compiler won't let them do stupid stuff with shared state. What Go and Rust taught me more than other languages is that there is value in _not_ providing certain capabilities, such as inheritance or (in Rust) the ability to unsafely modify shared state.