This link has been bookmarked by 19 people . It was first bookmarked on 28 Oct 2007, by harry.
-
31 Oct 09
-
04 May 09
Rodrigo de OliveiraComo funciona o gerenciamento de memória do Ruby
-
20 Feb 08
-
23 Nov 07
-
18 Nov 07
-
12 Nov 07
-
All those types are actually child type of a single parent type: RBasic.
Since Ruby is written in C, the implementation doesn’t appear to be object oriented at first sight, even though it actually is (though in a very messy way, in my opinion). But let’s take a look how that’s implemented. This is how RClass and RFloat are defined:
-
- Mark all objects that are accessible from the current point of the Ruby program (mark phase).
- Iterate through all objects and free those that are not marked (sweep phase).
Ruby uses a simple mark-and-sweep algorithm. It works as follows:
-
-
29 Oct 07
-
28 Oct 07
-
27 Oct 07
-
26 Oct 07
-
25 Oct 07
-
23 Oct 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.