-
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
-
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
-
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides
This file contains 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
--- 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 |
This file contains 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
#!/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 |
This file contains 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
# 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' |
This file contains 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
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 |
This file contains 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
> 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 | | |
This file contains 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
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 |