harry 's Library tagged → View Popular
12 Nov 07
赖洪礼的 blog » How the Ruby heap is implemented
-
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:
(Video) How to create a Domain Specific Language ?
-
Peter gave a presentation on metaprogramming.
You can find the slides of the presentation
on the brug rubyforge site
or watch the video of the presentation here.
Sinatra
-
- It didn‘t create any page to show you that default page (just a cool
thing to see, that‘s all) - There was nothing generated other than a log file
- Sinatra is a really cool name for a
web-framework that‘s a DSL
- It didn‘t create any page to show you that default page (just a cool
Win an iPod Nano For Learning Something New
-
For the next month, I'll be running a contest here for programmers to promote learning something new.
I've had this spare iPod Nano that I've yet to use (and likely never will), I've been
covering how to save your
job with Chad Fowler's My Job Went To India, and I'm passionate about learning new things. It
seems the best way to combine all three is a contest to help me spread that passion.
1 - 4 of 4
Showing 20▼ items per page
Selected Tags
Sponsored Links
Ads by Google
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo