[HN Gopher] Fibers, Oh My (2020)
       ___________________________________________________________________
        
       Fibers, Oh My (2020)
        
       Author : mv9
       Score  : 26 points
       Date   : 2023-06-19 09:45 UTC (13 hours ago)
        
 (HTM) web link (graphitemaster.github.io)
 (TXT) w3m dump (graphitemaster.github.io)
        
       | Blackthorn wrote:
       | > What if our fibers invoke operating system primitives that
       | block, or interfaces which indirectly do?
       | 
       | The best fiber interfaces, like virtual threads in Java,
       | intercept these blocking primitives and perform the yield there
       | implicitly. This means that user code just doesn't need to worry
       | about this at all and can block as they normally would.
        
         | fzzzy wrote:
         | Same with go.
        
           | [deleted]
        
         | paulddraper wrote:
         | And Node.ks
        
       | Culonavirus wrote:
       | Meh, their engine scalability was/is a disaster on PC. Especially
       | as far as CPUs are concerned. IdTech 7 is where it's at. 500fps+
       | of goodness... give it what you have, it will take all of your
       | cores, every single one, and run even faster.
        
       | syngrog66 wrote:
       | I worked on a fiber-based backend once. had fun also with mmaps
       | and signals. lots of low-level Linux optimizations and edge case
       | 9's pursuit.
        
       | dang wrote:
       | Discussed at the time:
       | 
       |  _Fibers, Oh My_ - https://news.ycombinator.com/item?id=24679740
       | - Oct 2020 (69 comments)
       | 
       | (Reposts are fine after a year or so; links to past threads are
       | just to satisfy extra-curious readers)
        
       | slouc wrote:
       | Parts of this, especially the first few chapters, sound very
       | similar to what I wrote earlier that year (and have then kept
       | updating for another year):
       | 
       | https://github.com/slouc/concurrency-in-scala-with-ce
       | 
       | I also later distilled it into this one:
       | 
       | https://slouc.com/Fibers/
       | 
       | Would be fun to believe that something I wrote inspired parts of
       | this one, but in reality it's probably just a case of great minds
       | thinking (and sounding) alike :)
       | 
       | Anyway, I'm glad to have found this great text. I agree with the
       | author's statement that "there's a distinctive lack of good
       | information online", because I felt the same way writing mine.
       | Thanks hn and whoever (re)posted this.
        
       ___________________________________________________________________
       (page generated 2023-06-19 23:01 UTC)