Skip to content

Instantly share code, notes, and snippets.

@SikhNerd
Created July 15, 2013 23:36
Show Gist options
  • Save SikhNerd/6004483 to your computer and use it in GitHub Desktop.
Save SikhNerd/6004483 to your computer and use it in GitHub Desktop.
Trying to run mame's quine-relay
# cat output.log
#####################
## Ruby -> Scala ##
#####################
ruby QR.rb > QR.scala
#######################
## Scala -> Scheme ##
#######################
scalac QR.scala
scala QR > QR.scm
#######################
## Scheme -> Shell ##
#######################
gosh QR.scm > QR.bash
##########################
## Shell -> Smalltalk ##
##########################
bash QR.bash > QR.st
########################
## Smalltalk -> Tcl ##
########################
gst QR.st > QR.tcl
#######################
## Tcl -> Unlambda ##
#######################
tclsh QR.tcl > QR.unl
########################
## Unlambda -> Vala ##
########################
ruby unlambda.rb QR.unl > QR.vala
#######################
## Vala -> Verilog ##
#######################
valac QR.vala
/root/quine-relay/QR.vala.c: In function ‘_vala_main’:
/root/quine-relay/QR.vala.c:116:17: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
/root/quine-relay/QR.vala.c: In function ‘main’:
/root/quine-relay/QR.vala.c:391:2: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
./QR > QR.v
#############################
## Verilog -> Whitespace ##
#############################
iverilog -o QR QR.v
./QR -vcd-none > QR.ws
#########################
## Whitespace -> Ada ##
#########################
ruby whitespace.rb QR.ws > QR.adb
######################
## Ada -> ALGOL68 ##
######################
gnatmake QR.adb
gcc-4.6 -c QR.adb
QR.adb:1:28: warning: file name does not match unit name, should be "qr.adb"
gnatbind -x QR.ali
gnatlink QR.ali
./QR > QR.a68
######################
## ALGOL68 -> Awk ##
######################
a68g QR.a68 > QR.awk
##################
## Awk -> Boo ##
##################
awk -f QR.awk > QR.boo
########################
## Boo -> Brainfuck ##
########################
booi QR.boo > QR.bf
######################
## Brainfuck -> C ##
######################
beef QR.bf > QR.c
################
## C -> C++ ##
################
gcc -o QR QR.c
QR.c: In function ‘main’:
QR.c:2:4548: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
./QR > QR.cpp
#################
## C++ -> C# ##
#################
g++ -o QR QR.cpp
QR.cpp:2:4288: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
./QR > QR.cs
#####################
## C# -> Clojure ##
#####################
mcs QR.cs
mono QR.exe > QR.clj
########################
## Clojure -> Cobol ##
########################
clojure QR.clj > QR.cob
#############################
## Cobol -> CoffeeScript ##
#############################
cobc -x QR.cob
In file included from /tmp/cob8268_0.c:20:0:
/tmp/cob8268_0.c.h:35:3788: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
./QR > QR.coffee
##################################
## CoffeeScript -> CommonLisp ##
##################################
coffee QR.coffee > QR.lisp
###########################
## CommonLisp -> Forth ##
###########################
clisp QR.lisp > QR.fs
##########################
## Forth -> FORTRAN77 ##
##########################
gforth QR.fs > QR.f
##############################
## FORTRAN77 -> Fortran90 ##
##############################
gfortran -o QR QR.f
./QR > QR.f90
#######################
## Fortran90 -> Go ##
#######################
gfortran -o QR QR.f90
./QR > QR.go
####################
## Go -> Groovy ##
####################
go run QR.go > QR.groovy
#########################
## Groovy -> Haskell ##
#########################
groovy QR.groovy > QR.hs
#######################
## Haskell -> Icon ##
#######################
runghc QR.hs > QR.icn
########################
## Icon -> INTERCAL ##
########################
icont -s QR.icn
./QR > QR.i
##########################
## INTERCAL -> Jasmin ##
##########################
mv QR.c QR.c.bak
ick -b QR.i
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
mv QR.c.bak QR.c
./QR > QR.j
######################
## Jasmin -> Java ##
######################
jasmin QR.j
QR.j:2: Warning - Syntax error.
^
QR.j:2: Error - Couldn't repair and continue parse.
^
QR.j: Found 2 errors
java QR > QR.java
Exception in thread "main" java.lang.NoClassDefFoundError: scala/Function0
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
at java.lang.Class.getMethod0(Class.java:2694)
at java.lang.Class.getMethod(Class.java:1622)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: scala.Function0
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 6 more
make: *** [QR.java] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment