View crash.txt
~/projects/tensorflow.rb $ LD_LIBRARY_PATH=~/tensorflow/lib ruby -Ilib image/classify_image.rb image/mysore_palace.jpg
Trying to classify image file: image/mysore_palace.jpg
/Users/headius/projects/tensorflow.rb/lib/tensorflow/graph.rb:197: [BUG] Segmentation fault at 0x00000000000000
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
View tf.rb
# Generated by ffi_gen. Please do not change this file by hand.
require 'ffi'
module TensorFlow
extend FFI::Library
ffi_lib "tensorflow"
def self.attach_function(name, *_)
begin; super; rescue FFI::NotFoundError => e
View gist:05e5ae524b16a5fd0b01665d9486e1b8
~/projects/jruby $ echo $JRUBY_GRAAL
-Xfixnum.cache=false -J-XX:+UnlockExperimentalVMOptions -J-XX:+EnableJVMCI -J-XX:+UseJVMCICompiler -J-Djvmci.Compiler=jruby-graal -J-Xbootclasspath/a:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-api.jar:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-hotspot.jar:/usr/lib/jvm/graalvm/lib/graal/graal.jar -Xcompile.invokedynamic
~/projects/jruby $ jruby mandelbrot.rb
1.568706
1.263336
1.2612649999999999
1.185973
1.188513
1.196141
View gist:cb5f527866dfed360f5b6c7289a8394a
$ jruby -J-XX:+UnlockExperimentalVMOptions -J-XX:+EnableJVMCI -J-XX:+UseJVMCICompiler -J-Djvmci.Compiler=jruby-graal -J-Xbootclasspath/a:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-api.jar:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-hotspot.jar -e 1
requested compile for: HotSpotMethod<String.hashCode()>
requested compile for: HotSpotMethod<String.charAt(int)>
requested compile for: HotSpotMethod<String.indexOf(int, int)>
requested compile for: HotSpotMethod<ByteVector.putUTF8(String)>
requested compile for: HotSpotMethod<String.equals(Object)>
requested compile for: HotSpotMethod<BufferedInputStream.read()>
requested compile for: HotSpotMethod<CharacterData.of(int)>
requested compile for: HotSpotMethod<ConcurrentHashMap.setTabAt(ConcurrentHashMap$Node[], int, ConcurrentHashMap$Node)>
requested compile for: HotSpotMethod<ConcurrentHashMap.tabAt(ConcurrentHashMap$Node[], int)>
View maven_ioexception_providerexception.md

I started getting the following error when trying to deploy maven artifacts:

...
[INFO] Building jar: /home/headius/projects/jnr-posix/target/jnr-posix-3.0.37-SNAPSHOT-javadoc.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ jnr-posix ---
[INFO] Installing /home/headius/projects/jnr-posix/target/jnr-posix-3.0.37-SNAPSHOT.jar to /home/headius/.m2/repository/com/github/jnr/jnr-posix/3.0.37-SNAPSHOT/jnr-posix-3.0.37-SNAPSHOT.jar
[INFO] Installing /home/headius/projects/jnr-posix/pom.xml to /home/headius/.m2/repository/com/github/jnr/jnr-posix/3.0.37-SNAPSHOT/jnr-posix-3.0.37-SNAPSHOT.pom
[INFO] Installing /home/headius/projects/jnr-posix/target/jnr-posix-3.0.37-SNAPSHOT-sources.jar to /home/headius/.m2/repository/com/github/jnr/jnr-posix/3.0.37-SNAPSHOT/jnr-posix-3.0.37-SNAPSHOT-sources.jar
View gist:2a8de5eb6adb115acb4649b698e2f6d3
~/projects/graal-core $ jruby -v mandelbrot.rb
jruby 9.1.8.0-SNAPSHOT (2.3.1) 2017-01-25 2b97d78 Java HotSpot(TM) 64-Bit Server VM 9-ea+152 on 9-ea+152 +indy +jit [linux-x86_64]
1.4988730000000001
0.875144
0.6610520000000001
0.666915
0.67083
0.658069
0.6749970000000001
0.667617
View CGIEscape.java
package org.jruby.ext.cgi.escape;
import org.jcodings.Encoding;
import org.jcodings.specific.ISO8859_1Encoding;
import org.jcodings.specific.UTF8Encoding;
import org.jruby.Ruby;
import org.jruby.RubyClass;
import org.jruby.RubyEncoding;
import org.jruby.RubyModule;
import org.jruby.RubyString;
View gist:e66ac70e2559827a940bf1419a91c847
$ cat gen_ca2.rb
require 'openssl'
require 'securerandom'
ca_key = OpenSSL::PKey::RSA.new(4096)
public_key = ca_key.public_key
subject = "/C=BE/O=Test/OU=Test/CN=test"
ca = OpenSSL::X509::Certificate.new
View gist:a137448dbc6c6b845128c6deb6d5d227
1) Error:
ClientTest#test_single_client:
ArgumentError: count must be in integer greater than zero
com/concurrent_ruby/ext/JavaSemaphoreLibrary.java:43:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:85:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:177:in `websocket_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:186:in `block in test_single_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:72:in `with_puma_server'
/Users/headius/projects/rails/actioncable/test/client_test.rb:185:in `test_single_client'
View NativeSocketChannel.diff
diff --git a/src/main/java/jnr/enxio/channels/NativeSocketChannel.java b/src/main/java/jnr/enxio/channels/NativeSocketChannel.java
index c97637d..0882ace 100644
--- a/src/main/java/jnr/enxio/channels/NativeSocketChannel.java
+++ b/src/main/java/jnr/enxio/channels/NativeSocketChannel.java
@@ -20,35 +20,36 @@ package jnr.enxio.channels;
import jnr.constants.platform.Shutdown;
import java.io.IOException;
+import java.net.Socket;
+import java.net.SocketAddress;