r/programming • • Feb 24 '13

Ruby 2.0.0

http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
600 Upvotes

193 comments sorted by

View all comments

7

u/postmodern Feb 24 '13 edited Feb 24 '13

They also replaced mark/sweep with optimized GC using bitmap marking to make it copy-on-write friendly!

0

u/galtthedestroyer Feb 24 '13

What's a gc?

16

u/[deleted] Feb 24 '13

Garbage collector. To ELI5 it goes and finds all of the memory you aren't using and releases it back to the operating system.

1

u/icewatersteam Feb 24 '13

I'm not a ruby expert but in this instance I think gc refers to garbage collector.

Garbage collectors are a part of the runtime that looks for memory used up by the program that is no longer used and then frees up that memory to be used by something else.

0

u/[deleted] Feb 24 '13

[deleted]

3

u/icewatersteam Feb 24 '13

I didn't think my comment implied that but you're correct. Garbage collectors are not a exclusive ruby feature. They are used in many different runtimes (CLR, JVM etc.)

3

u/philly_fan_in_chi Feb 24 '13

If you know what a GC is, it definitely did not imply it. But for someone who didn't, they could get confused. Just looking out for the lowest common denominator.

4

u/icewatersteam Feb 24 '13

True, it sometimes hard to get back back to that beginner mind when explains something. Thanks for pointing it out.

1

u/eek04 Feb 25 '13

If you want to edit your original comment, I think just replacing "the runtime" with "a language runtime" will make it impossible to understand as Ruby specific.

-1

u/OhPleaseDontBe Feb 24 '13

I don't understand why this gets downvoted.

6

u/sootzoo Feb 24 '13

i didn't downvote, but this is /r/programming and the OPs answer is a very trivial Google search away.

3

u/galtthedestroyer Feb 25 '13

At the time I figured a 2 letter acronym would be hard to search for. When I got the answers I had to laugh. No one where I'm from abbreviates garbage collector.

It was definitely a brain fart on my part. Still the people who gave super through answers are awesome.

2

u/x86_64Ubuntu Feb 25 '13

One of the reasons a trivial question shouldn't be downvoted is because it can enhance discussion about the subject at hand.