Skip to content

Instantly share code, notes, and snippets.

View chrisseaton's full-sized avatar

Chris Seaton chrisseaton

View GitHub Profile
a = 14
puts binding.variables.get_eval_local("a")
a = 14
b = binding.variables.get_eval_local('a')
puts b.nil?
def foo
a = 14
b = binding.variables.get_eval_local('a')
puts b.nil?
end
AST:
RootNode 0
BlockNode 0
NewlineNode 0
DefnNode:foo 0
ArgumentNode:foo 0
ArgsPreOneArgNode 0
ArrayNode 0
ArgumentNode:a 0
NewlineNode 1
$ mvn -Ptruffle
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jruby:jruby-tests:jar:9000.dev
[WARNING] 'dependencies.dependency.systemPath' for org.jruby:requireTest:jar should not point at files within the project directory, ${project.basedir}/requireTest-1.0.jar will be unresolvable by dependent projects @ line 93, column 19
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
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