This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "irb" | |
Encoding.default_internal = "cp932" | |
Encoding.default_external = "cp932" | |
path = "/home/nari/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/lc/ja/error.rb" | |
src = IRB::MagicFile.open(path){|f| f.read} | |
p src.encoding | |
eval(src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CRuby's Parallel Marking (Draft)(Ja) | |
ソースコード: https://github.com/authorNari/ruby | |
※まだ実装中 | |
1 Abstract | |
並列スレッドの仕事分配には「Arora's Task Stealing Deque」のアルゴリズムを利用する。 | |
http://doi.acm.org/10.1145/277651.277678 | |
また、並列マークの実装の大部分はOpenJDK7のコードを参考に独自改良したものである。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
$screen_names_of_me ||= [] | |
$screen_names_of_timeline ||= [] | |
$words_of_timeline ||= [] | |
$tweet_counts ||= {} | |
$tweet_limit_of_day = 2 | |
Earthquake.init do | |
output do |item| | |
next unless item["event"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADLParser | |
ALLOCATION_SUPER_CLASS_SPEC | |
AbsSeq | |
NumberSeq | |
TruncatedSeq | |
AbstractGangTask | |
CMConcurrentMarkingTask | |
CMRemarkTask | |
CMSParRemarkTask | |
CMSRefEnqueueTaskProxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct data { | |
int flag; | |
struct data *next; | |
} data_t; | |
static data_t *top = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#define FALSE 0 | |
#define TRUE 1 | |
typedef uint32_t half_word; | |
union deque_age { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#define FALSE 0 | |
#define TRUE 1 | |
typedef uint32_t half_word; | |
union deque_age { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gc.c b/gc.c | |
index d5b8dfd..08c0aea 100644 | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -1277,7 +1277,8 @@ ruby_get_stack_grow_direction(volatile VALUE *addr) | |
} | |
#endif | |
-#define GC_WATER_MARK 512 | |
+#define GC_LEVEL_MAX 250 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= done | |
- introduce | |
[in]tro(du)ce | |
- atomically | |
a..(to)mically | |
- substantially | |
subs(tan)tially | |
- decreases | |
[de] c(rea)ses | |
- algorithm あるごうぃーずむ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Narihiro Nakamura is a research worker at Network Applied Communication Laboratory Ltd.. | |
He is a CRuby committer. And he is a Garbage Collection lover. So, he works on GC in CRuby. | |
Lazy Sweep GC is one of his works for CRuby's GC. You can use it since Ruby 1.9.3! |