Skip to content
View callsite_data.csv
number of types number of calls
1 23309344
2 10341277
3 439291
4 378137
5 120699
6 100403
7 288376
8 222454
9 37247
View pic_logging.diff
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index d54c511..ebe92dc 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2060,6 +2060,8 @@ int ruby_native_thread_p(void);
#define RUBY_EVENT_THREAD_BEGIN 0x0400
#define RUBY_EVENT_THREAD_END 0x0800
#define RUBY_EVENT_FIBER_SWITCH 0x1000
+#define RUBY_EVENT_INLINE_CACHE_HIT 0x2000
+#define RUBY_EVENT_INLINE_CACHE_MISS 0x4000
View mt.rb
#!/usr/bin/env ruby --disable-gems
# Tab completion for minitest tests.
#
# INSTALLATION:
#
# 1. Put this file in a directory in your $PATH. Make sure it's executable
# 2. Run this:
#
# $ complete -o bashdefault -f -C /path/to/this/file.rb ruby
View fallout.rb
##
# Program to help you hack terminals in Fallout
#
# Usage:
#
# Run the program once with a list of words in the terminal. The program will
# output a list, and the first word in the list is the word you should pick
# because it will eliminate the most possibilities.
#
# If that word is incorrect, then re-run the program with two lists, first the
View bench.rb
require 'active_record'
class Topic < ActiveRecord::Base
end
20.times do |i|
Process.waitpid fork {
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'
ActiveRecord::Base.connection.instance_eval do
View o.diff
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb
index af307b5..4037e316 100644
--- a/activerecord/lib/active_record/connection_adapters/column.rb
+++ b/activerecord/lib/active_record/connection_adapters/column.rb
@@ -31,7 +31,7 @@ module ActiveRecord
# It will be mapped to one of the standard Rails SQL types in the <tt>type</tt> attribute.
# +null+ determines if this column allows +NULL+ values.
def initialize(name, default, cast_type, sql_type = nil, null = true)
- @name = name
+ @name = name.freeze
View omg.diff
diff --git a/Gemfile b/Gemfile
index 97406be..96dc4fc 100644
--- a/Gemfile
+++ b/Gemfile
@@ -11,7 +11,7 @@ gem 'concurrent-ruby', '~> 1.0.0.pre3', github: 'ruby-concurrency/concurrent-rub
# Active Job depends on the URI::GID::MissingModelIDError, which isn't released yet.
gem 'globalid', github: 'rails/globalid', branch: 'master'
-gem 'rack', github: 'rack/rack', branch: 'master'
+gem 'rack', path: '/Users/aaron/git/rack'
View bm.rb
require 'benchmark'
require 'csv'
GEM_REPO = 'many_gems'
ENV['GEM_HOME'] = GEM_REPO
ENV['GEM_PATH'] = GEM_REPO
N = 15
MEDIAN = N / 2
Gem.clear_paths # clear all of rubygems cache
View blah.diff
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index d68fa16..fe4f7a6 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -259,5 +259,13 @@ module ActionController
lambda { |env| new.dispatch(name, ActionDispatch::Request.new(env)) }
end
end
+
+ def self.dispatch(name, req)
View lisp.jl
type Null
end
nil = Null()
cons = function(x, y)
(m) -> m(x, y)
end
car = function(z)
Something went wrong with that request. Please try again.