Difference between jruby AOT classes with --java flag and without

When I compile a ruby file to a java class using jrubyc, I get different output when compiling with just jrubyc and with jrubyc --java (to generate the java file) and just javac. Why?


First Method:

$ jrubyc --java myscript.rb
$ javac -cp .:./jruby-complete.jar myscript.java

Second Method:

$ jrubyc myscript.rb

I'd expect the generated classes to be exactly the same, but they're not. What's jrubyc doing under the covers?



Say I have a 3x4x5x6 java double array a that I unroll into an ArrayList b of length 360 in the following way: for (int i = 0; i<a.length; i++){ for (int j = 0; j<a[0].length; j++){ ...

I am basically making a battleship guessing game where you have to the position of a ship by the click of your mouse. When a position of the ship is guessed correctly it deletes that ship cell from ...

Estoy tratando de instalar el marco de extracción DBPedia siguiendo el http://wiki.dbpedia.org/Documentation He descargado la versión binaria de Maven. $ mvn --version Apache Maven 3.0.4 (r1232337; ...

Tengo un problema al convertir el byte al archivo de sonido .mp3. En mi caso, lo hago usando FileOutputStream usando su método de escritura (bytes) pero solo crea un archivo de datos con extensión mp3 pero no puedo reproducirlo en ...