This file contains hidden or 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
define dump_irep | |
set $i = 0 | |
set $irep = ($arg0) | |
while ($i < $irep->ilen) | |
set $code = $irep->iseq[$i] | |
set $OPCODE = ((mrb_code)($code) & 0x7f) | |
set $ARG_A = ((((mrb_code)($code)) >> 23) & 0x1ff) | |
set $ARG_B = ((((mrb_code)($code)) >> 14) & 0x1ff) | |
set $ARG_C = ((((mrb_code)($code)) >> 7) & 0x7f) | |
set $ARG_Bx = ((((mrb_code)($code)) >> 7) & 0xffff) |
This file contains hidden or 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
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -vq -j4 --jobs-status -x etc/test_etc.rb -x benchmark -x webrick -x xmlrpc/test_cookie.rb -x cgi/test_cgi_tag_helper.rb -x drb --gc-stress | |
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -vq -j4 --jobs-status -x etc/test_etc.rb -x benchmark -x webrick -x xmlrpc/test_cookie.rb -x cgi/test_cgi_tag_helper.rb -x drb --gc-stress | |
# Running tests: | |
1465:waiting 1467:waiting 1470=test_rake_task_lib 1472:waiting | |
1465:waiting 1467:waiting 1470=test_rake_task_lib 1472=test_rake_pseudo_status | |
1465=test_rake_win32 1467:waiting 1470=test_rake_task_lib 1472=test_rake_pseudo_status | |
1465=test_rake_win32 1467:waiting 1470=test_rake_task_lib 1472=test_rake_pseudo_status | |
1465=test_rake_win32 1467:waiting 1470=test_rake_task_lib 1472=test_rake_pseudo_status |
This file contains hidden or 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
$ make benchmark OPTS='-r 2 -o '${rev}'.log --executables="./ruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext --" --pattern="bm_app_pent"' | |
b418bc9be47ac63da559cb4bbdf705d83d99cde2.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 18.3015801906586 | |
b418bc9be47ac63da559cb4bbdf705d83d99cde2.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 17.8015170097351 | |
450c2094be9ef5ddf0f5f91f1744e03dac93af31.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 17.7401349544525 | |
450c2094be9ef5ddf0f5f91f1744e03dac93af31.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 17.962229013443 | |
746aa6f74b55b1783242b4f074200105dd7d90bc.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 17.7444908618927 | |
746aa6f74b55b1783242b4f074200105dd7d90bc.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 18.1857919692993 | |
1e79a33e2178202bbc7f08996bfd7cffe30f48f9.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 17.8341698646545 | |
1e79a33e2178202bbc7f08996bfd7cffe30f48f9.log:ruby 2.0.0dev (2011-11-25) [x86_64-linux] 17.9613330364227 |
This file contains hidden or 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
# Copyright (C) 2012 Kazuki Tsujimoto, All rights reserved. | |
# | |
# You can redistribute it and/or modify it under the terms of the 2-clause BSDL. | |
class Pattern | |
attr_accessor :parent | |
attr_reader :env | |
def initialize(*children) | |
@parent = nil |
This file contains hidden or 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
#!/bin/sh | |
# Usage: | |
# update-ruby-trunk-changes-notes.sh YYYY-MM-DD | |
export LANG=en_US.UTF-8 | |
REPOSDIR=/var/working/ruby-trunk-changes-notes | |
TMPDIR=/tmp/ruby-trunk-changes | |
URL_PREFIX='https://ruby-trunk-changes.hatenablog.com/archive/' |
This file contains hidden or 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
# 1. Add following lines to .git/config. | |
# 2. Run "git fetch k-tsj". | |
# 3. Run "git log". | |
[core] | |
notesRef = refs/notes/ruby-trunk-changes # or "git log --show-notes=ruby-trunk-changes" | |
[remote "k-tsj"] | |
fetch = +refs/notes/*:refs/notes/* | |
url = git://github.com/k-tsj/ruby.git |
This file contains hidden or 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/coreaudio.gemspec b/coreaudio.gemspec | |
index 06346b1..12aee3b 100644 | |
--- a/coreaudio.gemspec | |
+++ b/coreaudio.gemspec | |
@@ -36,7 +36,7 @@ Gem::Specification.new do |s| | |
"ext/extconf.rb", | |
"lib/coreaudio.rb" | |
] | |
- s.homepage = "http://github.com/nagachika/coreaudio" | |
+ s.homepage = "https://github.com/nagachika/ruby-coreaudio" |
This file contains hidden or 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
max = 1 | |
max.times{ | |
Fiber.new{} | |
} | |
max = 1000 | |
@cnt = 0 | |
(1..100).map{|ti| | |
Thread.new{ | |
max.times{|i| |
This file contains hidden or 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
From 834fd3b4936cf26f24f8f6392730a1763fd633b6 Mon Sep 17 00:00:00 2001 | |
From: Kazuki Tsujimoto <[email protected]> | |
Date: Sun, 4 Sep 2011 12:40:56 +0900 | |
Subject: [PATCH] Renamed INSTALL.eucjp to INSTALL.utf-8 | |
--- | |
ChangeLog | 4 ++++ | |
Gauche.spec | 2 +- | |
Makefile.in | 4 ++-- | |
3 files changed, 7 insertions(+), 3 deletions(-) |
This file contains hidden or 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/proc.c b/proc.c | |
index 299a220..0a98207 100644 | |
--- a/proc.c | |
+++ b/proc.c | |
@@ -418,6 +418,7 @@ proc_new(VALUE klass, int is_lambda) | |
} | |
procval = rb_vm_make_proc(th, block, klass); | |
+ rb_rewrite_dfp_in_errinfo(th, cfp); | |