Skip to content

Instantly share code, notes, and snippets.

View eregon's full-sized avatar

Benoit Daloze eregon

View GitHub Profile
@eregon
eregon / truffle-material.md
Last active March 16, 2020 10:07 — forked from smarr/truffle-material.md
Truffle: Languages and Material
--- full.txt 2020-03-05 17:04:32.230794000 +0900
+++ short.txt 2020-03-05 17:04:38.445322000 +0900
@@ -1,179 +1,3 @@
-1.8.5-p52
-1.8.5-p113
-1.8.5-p114
-1.8.5-p115
-1.8.5-p231
-1.8.6
-1.8.6-p36
#!/usr/bin/env ruby
require "open-uri"
require "json"
unless ARGV[0] =~ %r{\Ahttps://bugs.ruby-lang.org/issues/(\d+)\z}
puts "Usage: #$0 https://bugs.ruby-lang.org/issues/XXXX"
exit 1
end
@eregon
eregon / Gemfile
Created July 25, 2018 15:23
truffleruby tests
# frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
# ruby '2.6'
# Full-stack web application framework.
gem 'rails', github: 'rails/rails'
@eregon
eregon / perf1.rb
Created July 6, 2012 19:21 — forked from enebo/perf1.rb
Perfer.session "Array#sort" do |s|
s.bench "Array#sort" do |b|
b.description "Yeah sorting"
b.bench_code do |n|
ary = Array.new(n) { rand(n) }
b.measure do # mmh, should not be b here ideally
ary.sort
end
end
@eregon
eregon / _results.rb
Created August 26, 2011 09:02 — forked from blambeau/gist:1172939
Sloppy and tidy in Viiite
> viiite report --regroup=bench,ruby --hierarchy
+---------+-------------------------------------------------------------------+
| :bench | :measure |
+---------+-------------------------------------------------------------------+
| :sloppy | +-------------------+----------+----------+----------+----------+ |
| | | :ruby | :user | :system | :total | :real | |
| | +-------------------+----------+----------+----------+----------+ |
| | | jruby 1.6.3 | 1.570500 | 0.000000 | 1.570500 | 1.570500 | |
| | | jruby 1.7.0.dev | 1.623200 | 0.000000 | 1.623200 | 1.623200 | |
| | | ree 2011.03 | 2.155000 | 0.000000 | 2.155000 | 2.157875 | |
@eregon
eregon / gist:310469
Created February 21, 2010 19:07 — forked from wayneeseguin/gist:296055
Rails 3 rvm gemsets
This example shows how to setup an environment running Rails 3 beta under 1.9.1 with a 'rails3' gem set.
((This is a fork of wayne, please see his gist if you want recent syntax for rvm.
Mainly, gems is replaced by gemset))
∴ rvm update --head
# ((Open a new shell))
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.1