View zsh-to-fish.rb
require 'yaml'
r = {}
File.open('dot.zsh-history') do |f|
r = f.each_line.inject([]) do |a, l|
a << { "cmd" => l[15..-1].to_s.scrub.strip, "when" => l[1..11].to_i }
end
end
File.open('fish_history', 'w'){|f| f.write r.to_yaml(options = { line_width: -1 })}
View selling-stuffs.md
View gist:dc15a0a28fb25aa77533eb274a2bcbf0
% docker run --rm -t hsbt/all-ruby /all-ruby/all-ruby -e 'p RUBY_DESCRIPTION'
ruby-0.49 -e:1: syntax error
#<Process::Status: pid 6 exit 1>
ruby-0.50 -e:1: syntax error
#<Process::Status: pid 7 exit 1>
ruby-0.51 -e:1: undefined method `p' for "main"(Object)
#<Process::Status: pid 8 exit 1>
ruby-0.54 -e:1:in method `p': undefined method `p' for "main"(Object)
#<Process::Status: pid 9 exit 1>
ruby-0.55 -e:1: undefined method `p' for "main"(Object)
View gist:731ab0328ca127b31eefef773fbcb77a
compiling ../ruby/enc/ascii.c
compiling ../ruby/enc/us_ascii.c
error: unable to open output file 'enc/ascii.o': 'No such file or directory'
1 error generated.
make: *** [enc/ascii.o] Error 1
make: *** Waiting for unfinished jobs....
error: unable to open output file 'enc/us_ascii.o': 'No such file or directory'
1 error generated.
make: *** [enc/us_ascii.o] Error 1
View foo.md

Ruby 3 で本当にやりたいこと - Matz

  • 全てを捨てない、互換性は維持、進歩は続ける

  • マルチコア、データ、コードスケーラビリティ

  • 際粒度で低コスト(erlang ぽいやつ)がある

  • ベンチマークを作ってもらっている(ただし進捗はよくわからない)

  • 型は冗長性が高いから書きたくない

  • lint みたいな別ツールというのも妥協点として考えている

  • 型によるパフォーマンス向上は考えない

View gist:4ec146ebdec32028dc871ea9f479c72d
% g push staging
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (8/8), 1.51 KiB | 0 bytes/s, done.
Total 8 (delta 5), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
View ruby-build.20170324090136.6636.log
/var/folders/rk/sr8p03fj4wq3f7l30gvg0r380000gn/T/ruby-build.20170324090136.6636 ~
~/.anyenv/envs/rbenv/cache /var/folders/rk/sr8p03fj4wq3f7l30gvg0r380000gn/T/ruby-build.20170324090136.6636 ~
From https://github.com/ruby/ruby
d3cd2e618c..96069e9573 trunk -> trunk
/var/folders/rk/sr8p03fj4wq3f7l30gvg0r380000gn/T/ruby-build.20170324090136.6636 ~
Cloning into 'ruby-trunk'...
warning: --depth is ignored in local clones; use file:// instead.
done.
/var/folders/rk/sr8p03fj4wq3f7l30gvg0r380000gn/T/ruby-build.20170324090136.6636/ruby-trunk /var/folders/rk/sr8p03fj4wq3f7l30gvg0r380000gn/T/ruby-build.20170324090136.6636 ~
checking for ruby... /Users/usr0600238/.anyenv/envs/rbenv/shims/ruby
View gist:ea0866d1c0aca15c858cbc06d269c082
diff --git ext/readline/readline.c ext/readline/readline.c
index e5a00a6e5d..253798f9e6 100644
--- ext/readline/readline.c
+++ ext/readline/readline.c
@@ -2077,7 +2077,7 @@ Init_readline(void)
rl_attempted_completion_function = readline_attempted_completion_function;
#if defined(HAVE_RL_PRE_INPUT_HOOK)
- rl_pre_input_hook = (Function *)readline_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
View gist:52d15934c143866fcba45a502a2603c3
distcleaning json
rm: cannot remove '../../.ext/x86_64-darwin16/': Is a directory
make[1]: [clean] Error 1 (ignored)
distcleaning json/generator
distcleaning json/parser
distcleaning mathn/complex
distcleaning mathn/rational
distcleaning nkf
distcleaning objspace
distcleaning openssl
View gist:6f13ff42d3e1c14a88b261faff54447e
>> Gem::Requirement.new('2.5.0').satisfied_by?(Gem::Version.new('2.5.0dev'))
=> false
>> Gem::Requirement.new('2.5.0dev').satisfied_by?(Gem::Version.new('2.5.0dev'))
=> true