Skip to content

Instantly share code, notes, and snippets.

@authorNari
authorNari / gist:901085
Created April 4, 2011 03:04
OpenJDKのクラス階層
ADLParser
ALLOCATION_SUPER_CLASS_SPEC
AbsSeq
NumberSeq
TruncatedSeq
AbstractGangTask
CMConcurrentMarkingTask
CMRemarkTask
CMSParRemarkTask
CMSRefEnqueueTaskProxy
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct data {
int flag;
struct data *next;
} data_t;
static data_t *top = NULL;
@authorNari
authorNari / deque_vs_recusion.c
Created May 13, 2011 00:40
Aora's deque vs recusion.
#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 {
@authorNari
authorNari / gist:976348
Created May 17, 2011 11:59
Local stack of Aora's dequeue vs recusion.
#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 {
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
@authorNari
authorNari / gist:1273387
Created October 9, 2011 06:53
rubyconf2011 note
OK, Let's begin. Hello, Everybody.
My name is Narihiro Nakamura.
Today, I'm talking about "Parallel worlds of CRuby's GC".
I'm very happy now, because I'm meeting attendee in rubyconf.
And, one of my dreams is to talk in rubyconf.
So, I'm very happy and exciting.
Today is my first presentation in English.
My English is not good.
@authorNari
authorNari / gist:1273388
Created October 9, 2011 06:58
rubyconf2011 pronunciation
= done
- introduce
[in]tro(du)ce
- atomically
a..(to)mically
- substantially
subs(tan)tially
- decreases
[de] c(rea)ses
- algorithm あるごうぃーずむ
@authorNari
authorNari / gist:1274991
Created October 10, 2011 10:10
rubyconf ar bio
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!
@authorNari
authorNari / hc.rb
Created December 1, 2011 11:13
Hello, Chip!
puts "Hello, Chip!"
@authorNari
authorNari / hour.rb
Created December 1, 2011 14:48
A monkey patch
class Fixnum
def hour; self * 60 * 60; end
end