Golfing Relay Race
My first time for that kind of challenge:
R > Julia > BrainF**k - 91 characters - Score: 30.33
The initial R code:
cat("'+'^8","\"[>\"","'+'^9","'>'","'+'^13","'>'","'+'^4","'<'^3","\"-]>.>+.>+.\"",sep="*")
It produces the following Julia code:
'+'^8*"[>"*'+'^9*'>'*'+'^13*'>'*'+'^4*'<'^3*"-]>.>+.>+."
Which produces:
++++++++[>+++++++++>++++++++++++++>++++<<<-]>.>+.>+.
which equates to:
Hi!
in BrainF**k.
NB: None of the three programs is valid in any of the two other languages.
Clojure → C → Python 2.7 → BASIC → Bash
Score: 13.40
(println"int main(){puts(\"print'PRINT\\\"echo\\\"'\");return 0;}")
Here is the breakdown:
Clojure
(println"int main(){puts(\"print'PRINT\\\"echo\\\"'\");return 0;}")
C
int main(){puts("print'PRINT\"echo\"'");return 0;}
Python 2.7
print'PRINT"echo"'
BASIC
PRINT"echo"
Bash
echo
I guess a simpler alternative would be
print'echo'
in Python 2.7, which outputs Bash code. This has a score of 5.5, but isn't as fancy as what's above.