Skip to content

Instantly share code, notes, and snippets.

View chrisseaton's full-sized avatar

Chris Seaton chrisseaton

View GitHub Profile
class ValidValue
def initialize(value)
@value = value
end
attr_reader :value
end
class HighValue
end
# In truffle/bench with this file saved as mandelbrot-kernel-loop.rb
# JAVACMD=../../../graalvm-jdk1.8.0/bin/java ../../bin/jruby -X+T harness.rb -s 30 mandelbrot-kernel-loop.rb
# Copyright © 2004-2013 Brent Fulgham
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
set terminal pdf
set output 'experiments/bsp-wasted-work/main.pdf'
set xtics ('1' 1, '2' 2, '3' 3, '4' 4, '5' 5, '6' 6, '7' 7, '8' 8, '9' 9, '10' 10, '11' 11, '12' 12, '13' 13, '14' 14, '15' 15, '16' 16)
set ytics ('1' 0, '10' 1, '20' 2, '30' 3, '40' 4, '50' 5, '60' 6, '70' 7, '80' 8, '90' 9, '100' 10, '110' 11, '120' 12, '130' 13, '140' 14, '150' 15, '160' 16, '170' 17, '180' 18, '190' 19, '200' 20)
set xrange [-0.5:15.5]
set yrange [-0.5:20.5]
set cbrange [0:1]
set xlabel 'Threads'
set ylabel 'Job Size per Thread'
set key off

Keybase proof

I hereby claim:

  • I am chrisseaton on github.
  • I am chrisseaton (https://keybase.io/chrisseaton) on keybase.
  • I have a public key whose fingerprint is 4C52 6EA9 6538 7CB5 074F 9545 03E7 692D 173A B64C

To claim this, I am signing this object:

http://lafo.ssw.uni-linz.ac.at/graalvm/jruby-dist-9000+graal-macosx-x86_64.dev-bin.tar.gz - #configure
Unknown ruby string (do not know how to handle): jruby-9000+graal.
jruby-dist-9000+graal-macosx-x86_64.dev-bin - #download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 92.4M 100 92.4M 0 0 459k 0 0:03:26 0:03:26 --:--:-- 442k
No checksum for downloaded archive, recording checksum in user configuration.
jruby-dist-9000+graal-macosx-x86_64.dev-bin - #validate archive
The downloaded package for http://lafo.ssw.uni-linz.ac.at/graalvm/jruby-dist-9000+graal-macosx-x86_64.dev-bin.tar.gz,
Does not contains single 'bin/ruby' or 'jruby-dist-9000+graal-macosx-x86_64.dev-bin',
$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
$ irb
irb(main):001:0> x = 12.5
=> 12.5
irb(main):002:0> y = 12.5
=> 12.5
irb(main):003:0> z = x
=> 12.5
irb(main):004:0> x.object_id
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000104beeaef, pid=19070, tid=21251
#
# JRE version: OpenJDK Runtime Environment (8.0-b128) (build 1.8.0-internal-b128)
# Java VM: OpenJDK 64-Bit Server VM (25.0-b63-internal-graal-0.3 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x3eeaef]
#
chrisseaton@Chriss-MacBook-Pro:~/Documents/oracle/jruby [master!] $ bin/jruby -e 'puts 14'
chrisseaton@Chriss-MacBook-Pro:~/Documents/oracle/jruby [master!] $
ruby spec/mspec/bin/mspec tag -t bin/jruby -T -X+T -V --del fails --pass --config spec/truffle/truffle.mspec spec/ruby/language/class_spec.rb
SyntaxError: /Users/chrisseaton/Documents/oracle/jruby/maven/pom.rb:56: syntax error, unexpected end-of-file
end
^
eval at org/jruby/RubyKernel.java:1101
eval_pom at file:/Users/chrisseaton/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/ruby-maven-3.1.1.0.8/ext/ruby/tesla-polyglot-ruby-0.1.1.jar!/maven/tools/dsl.rb:51
parse at parser.rb:74