Skip to content
View nateberkopec's full-sized avatar

Sponsoring

@matz

Organizations

@puma
Block or Report

Block or report nateberkopec

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nateberkopec/README.md

Hi, I make websites and services faster and more scalable.

Pinned

  1. gilded_rose gilded_rose Public

    90 minutes of putting Nate in a interview to do Gilded Rose and you get...

    Ruby 7

  2. A Guide to GC.stat A Guide to GC.stat
    1
    Most Ruby programmers don't have any idea how garbage collection works in their runtime - what triggers it, how often it runs, and what is garbage collected and what isn't. That's not entirely a bad thing - garbage collection in dynamic languages like Ruby is usually pretty complex, and Ruby programmers are better off just focusing on writing code that matters for their users. 
    2
    
                  
    3
    But, occasionally, you get bitten by GC - either it's running too often or not enough, or your process is using tons of memory but you don't know why. Or maybe you're just curious about how GC works! 
    4
    
                  
    5
    One way we can learn a bit about garbage collection in CRuby (that is, the standard Ruby runtime, written in C) is to look at the built-in `GC` module. If you haven't [read the docs](https://ruby-doc.org/core-2.4.0/GC.html) of this module, check it out. There's a lot of interesting methods in there. But for right now, we're just going to look at one: `GC.stat`. 
  3. wikieduinfra wikieduinfra Public

    Wiki Edu infrastructure

    HCL 2 2

  4. puma/puma puma/puma Public

    A Ruby/Rack web server built for parallelism

    Ruby 7.6k 1.4k