69
\$\begingroup\$

For this golf, you will need to use more than one language.

The task

A Rube Goldberg machine is a contraption that takes an enormous number of complicated steps in order to execute a very simple task. The goal of this golf is to output Rube Goldberg... but not directly.

The machine

Your "machine" is the source code that, once executed, will give another source code in another language that will output Rube Goldberg upon execution. Got it?

I rephrase: your initial code must give another code, that other code must output Rube Goldberg. Both codes must be written in different languages.

The bonus which is more like the only fun way to do it

There is a bonus if your code outputs a code that will output a code that will ... that will output Rube Goldberg.

NOTE: any sort of output can be used (stdout, stderr, dialog box, ...)

The points

The number of points is equal to the number of bytes used in your code, divided by the number of distinct, extra languages that you used.

NOTE: different languages use different encodings. The number of bytes is counted in the initial language with its own encoding.

Examples

  • Pyth -> J -> Javascript -> output in 30 bytes = 30/2 = 15 points (J and Javascript are the extra languages)
  • Java -> C# -> C++ -> PHP -> output in 36 bytes = 36/3 = 12 points (More bytes and more languages can win over fewer bytes and fewer languages (I know there is no way that these languages do it in 36 bytes))
  • C -> output in 10 bytes = 10/0 = Infinity points (No extra languages)
  • Python -> Perl -> Ruby -> Python -> Ruby in 44 bytes = 44/2 = 22 points (Perl and Ruby are the extra languages, the second Python is not counted as it is not an extra language, the second Ruby is not counted as it has already been used)

NOTE: Languages that output their input can't be used. That would be an extra language with absolutely no additional bytes.

The answer

Please provide an answer that clearly states which languages you used and shows us the code at each step (i.e.: in each language).

The winner

Of course, like usual, the lowest score wins.

NOTE: As usual, standard loopholes and "cheats" are not allowed.

\$\endgroup\$
20
  • 1
    \$\begingroup\$ Closely related \$\endgroup\$ Jun 22, 2016 at 14:21
  • 3
    \$\begingroup\$ code golf rube goldburg... It would have been better a popcorn but those always get shut down. \$\endgroup\$ Jun 22, 2016 at 14:28
  • \$\begingroup\$ How to define byte count when different languages may use different encodings? The same char may count for example as 1 or 2 bytes depending on the language's encoding \$\endgroup\$
    – Luis Mendo
    Jun 22, 2016 at 14:31
  • 2
    \$\begingroup\$ How closely related may the languages be? May I use Dyalog APL, NARS2000, ngn/apl, APL2, and APL+Win together? How about K, K2, K3,..., Kona? \$\endgroup\$
    – Adám
    Jun 22, 2016 at 14:39
  • 2
    \$\begingroup\$ One of the answers is counting Python 1, 2 and 3 as three separate languages. Is that allowed? (I don't think it should be.) \$\endgroup\$
    – Dennis
    Jun 26, 2016 at 18:53

21 Answers 21

55
\$\begingroup\$

Foogs2MJellyRetinaAeolbonnParActuallySprectssedUniversal LambdaLines///m4: 19/13 ≈ 1.4615 points

"“GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ¦

All answers are given in the Jelly code page. ¶ represents a newline.

Mechanism

  Language      Code
 ——————————————————————————————————————
  Foo           "“GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ¦
  gs2           “GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ¦
  M             “GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ
  Jelly         “¶:`".c Rube Goldberg#\/”
  Retina        ¶:`".c Rube Goldberg#\/
  Aeolbonn      :`".c Rube Goldberg#\/
  Par           `".c Rube Goldberg#\/
  Actually      ".c Rube Goldberg#\/
  Sprects       .c Rube Goldberg#\/
  sed           c Rube Goldberg#\/
  U.Lambda       Rube Goldberg#\/
  Lines         Rube Goldberg#\/
  ///           Rube Goldberg#/
  m4            Rube Goldberg#

EDIT: Oops, there was an error in the Pyth program. I replaced Pyth and GolfScript by Par.

EDIT 2: Added GNU m4.

EDIT 3: Added Foo and M.

\$\endgroup\$
10
  • \$\begingroup\$ lol how gs2 -> Jelly only removes one byte... \$\endgroup\$
    – Riker
    Jun 23, 2016 at 2:02
  • 1
    \$\begingroup\$ If you write a brainfuck programm that generates that gs2 programm, you could convert that brainfuck programm to unary and add one more language before that and add two languages and likely cut off some bytes off the initial code. \$\endgroup\$
    – overactor
    Jun 23, 2016 at 7:31
  • 5
    \$\begingroup\$ @overactor: The initial code would definitely be longer. Sure, it’s “just” printing a bunch of zeros, but the exact number of zeros to print is astronomical \$\endgroup\$
    – Lynn
    Jun 23, 2016 at 14:03
  • 2
    \$\begingroup\$ Since you have both /// and Lines, I guess you could also consider adding esolangs.org/wiki/Itflabtijtslwi (just add another / to the end, if that doesn't mess up any other languages). \$\endgroup\$ Jun 24, 2016 at 11:20
  • 1
    \$\begingroup\$ @lightswitchr It uses M's built-in string compression which decodes that jumble of characters to give the Jelly code. \$\endgroup\$ Jun 24, 2016 at 16:42
51
\$\begingroup\$

33 languages, 40 bytes, 1.25 points

33.Bubblegum    : (hexdump) 3f1dbbbc87ebd1594f79fdbfa01c8a8ded64e1796d24d2f23e0115677f3cd9b3cd59c217c75a5c30
32.///          : "echo "B*"Rube Goldberg"+````{`]"print(%s)"e%}E*/
31.CJam         : "echo "B*"Rube Goldberg"+````{`]"print(%s)"e%}E*
30.Python       : (524,452 bytes)
29.Falcon       : (262,301 bytes)
28.Groovy       : (131,222 bytes)
27.JavaScript   : ( 65,679 bytes)
26.Julia        : ( 32,904 bytes)
25.Lua          : ( 16,513 bytes)
24.Move         : print("print(\"print(\\\"print(\\\\\\\"print(\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\")\\\")\")")
20.Swift        : print("print(\"print(\\\"print(\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\")\\\")\")")
19.Yabasic      : print("print(\"print(\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\")\")")
18.MoonScript   : print("print(\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\"\")")
17.R            : print("\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\"\\\\\\\"\\\"\"")
16.Arcyóu       : [1] "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\"\\\\\\\"\\\"\""
15.Convex       : "\"\\\"\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\"\\\"\""
14.GolfScript   : "\"\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\"\""
13.Pyth         : "\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\""
12.Foo          : "echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg"
11.ash          : echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
10.bash         : echo echo echo echo echo echo echo echo echo echo Rube Goldberg
09.csh          : echo echo echo echo echo echo echo echo echo Rube Goldberg
08.dash         : echo echo echo echo echo echo echo echo Rube Goldberg
07.fish         : echo echo echo echo echo echo echo Rube Goldberg
06.ksh          : echo echo echo echo echo echo Rube Goldberg
05.mksh         : echo echo echo echo echo Rube Goldberg
04.pash         : echo echo echo echo Rube Goldberg
03.rc           : echo echo echo Rube Goldberg
02.tcsh         : echo echo Rube Goldberg
01.zsh          : echo Rube Goldberg
00.OUTPUT       : Rube Goldberg

Takes advantage of the fact that many different languages share the same printing syntax, resulting in exponentially longer but highly compressible source code.

Permalinks (incomplete, to be updated)

\$\endgroup\$
17
  • 4
    \$\begingroup\$ If we are in fact allowed to use the same language more than once, I can achieve a much lower byte count without losing any languages, by repeatedly undoing what the previous program did. \$\endgroup\$
    – Dennis
    Jun 25, 2016 at 1:54
  • 3
    \$\begingroup\$ You use 9-11 Unix Shells... \$\endgroup\$
    – univalence
    Jun 25, 2016 at 6:23
  • 3
    \$\begingroup\$ It is allowed to use languages more than once, but the second time you use it, it doesn't count as an additonnal language. \$\endgroup\$
    – SteeveDroz
    Jun 25, 2016 at 6:33
  • 2
    \$\begingroup\$ I love the rules abuse in this one... XD \$\endgroup\$ Jun 26, 2016 at 14:20
  • 2
    \$\begingroup\$ You could use BATCH--another free echo. \$\endgroup\$ Jun 26, 2016 at 19:29
32
\$\begingroup\$

Jolf -> Actually -> Jelly -> Pyth -> Retina -> /// -> Golfscript: 15 / 6 = 2.5 points

5.4 points thanks to Martin Ender.

0.1 points thanks to Cᴏɴᴏʀ O'Bʀɪᴇɴ.

Note: both Actually and Jelly have their own code-page, so they could be transfered byte-by-byte, just not in the Online versions.

Jolf

aq"“'ẉ'ɠ@ịQCṁỊ»

Actually

"“'ẉ'ɠ@ịQCṁỊ»

Try it online!

Jelly

“'ẉ'ɠ@ịQCṁỊ»

Try it online!

Pyth

k"'Rube Goldberg'/

Try it online!

Retina


'Rube Goldberg'/

Try it online!

///

'Rube Goldberg'/

Try it online!

Golfscript

'Rube Goldberg'

Try it online!

\$\endgroup\$
0
26
\$\begingroup\$

Python -> Batch -> Javascript -> Java -> PHP -> C++ -> Foo -> Brainfuck 31.(142857) points

Python

print'@echo alert`void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""`'

Batch

@echo alert`void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""`

JavaScript

alert`void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""`

Java

void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""

PHP

echo"void f(){cout<<\"\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\"\"}"

C++

void f(){cout<<"\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\""}

Foo

"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------."

BrainFuck

-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.
\$\endgroup\$
4
  • 2
    \$\begingroup\$ Did you just include BF to make the byte-count long? \$\endgroup\$
    – Leaky Nun
    Jun 22, 2016 at 15:02
  • 1
    \$\begingroup\$ @LeakyNun No, I already made a short version, now this goes for the most langauges as possible \$\endgroup\$
    – Bálint
    Jun 22, 2016 at 15:03
  • 1
    \$\begingroup\$ I don't know which to prefer, BF or Java. \$\endgroup\$
    – gcampbell
    Jun 22, 2016 at 19:15
  • 1
    \$\begingroup\$ Couldn't you make the python one a little bit shorter by using string repetition? For example, instead of ----------- couldn't you do "+"-"*11+"? \$\endgroup\$
    – DanTheMan
    Jun 23, 2016 at 5:29
21
\$\begingroup\$

JS -> Cobol -> Python -> IBM 360 BAL

261 bytes/4 languages = 65.25 Points

Was aiming to use difficult languages, with more obfuscation. Javascript converts the string from base64 into Cobol, which produces Python that decodes the BAL code from hex.

Javascript

console.log(atob(' 1
    LH8T88d@05R850T8LT88!Q!R Cek*k{[~&vgm88yx9m4m6y6m8wx9m6}s}6Ovm9m6kg7m4m6x{m69x{6Ovm8wOxxg8Ovm9yOym4m6sv9x{6Ovm8km69Oxs}w}snxv86m69Ox7}m69x{49xyx}wws88wsg88oww}g4Ovkm4Oxyxww}}7g8{9swyyg9wyym6Ovm8Oxwxm6fm6gyxm8sox6m6gyxm6gkm6gLP');

Cobol

IDENTIFICATION DIVISION.
 PROGRAM-ID. Rube.
 ENVIRONMENT DIVISION.
 DATA DIVISION.
 PROCEDURE DIVISION.
    Display ' print bytearray.fromhex("202f2f204558454320415353454d424c5920092020535441525420204d41494e0942414c522020322c30200920205553494e47202a2c32200920204f50454e20205052494e54200920204d5643094255462c485720092020505554095052494e5420092020434c4f5345205052494e5420092020454f4a2020485709444309434c3133325c275255424520474f4c44424552475c27202042554609445309434c31333220205052494e5409445446505220494f41524541313d4255462c444556414444523d5359534c53542c424c4b53495a453d3133322c09092a2009094445564943453d333230332c434f4e54524f4c3d5945532c5052494e544f563d5945532020092020454e44094d41494e20202f2a20202f2f2045584543204c4e4b45445420202f2f204558454320202f2a20202f26").decode()'.
    STOP RUN.

Python

 print bytearray.fromhex("202f2f204558454320415353454d424c5920092020535441525420204d41494e0942414c522020322c30200920205553494e47202a2c32200920204f50454e20205052494e54200920204d5643094255462c485720092020505554095052494e5420092020434c4f5345205052494e5420092020454f4a2020485709444309434c3133325c275255424520474f4c44424552475c27202042554609445309434c31333220205052494e5409445446505220494f41524541313d4255462c444556414444523d5359534c53542c424c4b53495a453d3133322c09092a2009094445564943453d333230332c434f4e54524f4c3d5945532c5052494e544f563d5945532020092020454e44094d41494e20202f2a20202f2f2045584543204c4e4b45445420202f2f204558454320202f2a20202f26").decode()

IBM 360 BAL

 // EXEC ASSEMBLY
      START
 MAIN   BALR  2,0
      USING *,2
      OPEN  PRINT
      MVC   BUF,HW
      PUT   PRINT
      CLOSE PRINT
      EOJ
 HW DC  CL132'RUBE GOLDBERG'
 BUF    DS  CL132
 PRINT  DTFPR IOAREA1=BUF,DEVADDR=SYSLST,BLKSIZE=132,       *
        DEVICE=3203,CONTROL=YES,PRINTOV=YES 
      END   MAIN
 /*
 // EXEC LNKEDT
 // EXEC
 /*
 /&

Output

RUBE GOLDBERG
\$\endgroup\$
8
  • 5
    \$\begingroup\$ +1 Most other answers just use different printing functions one after another, but you combined it with base64 and hex encoding. Great first answer, and welcome to PPCG! \$\endgroup\$ Jun 24, 2016 at 7:05
  • \$\begingroup\$ Wrong Case. The output should be Rude Goldberg, not RUBE GOLDBERG. \$\endgroup\$ Jun 24, 2016 at 9:26
  • 1
    \$\begingroup\$ Actually, the Python solution will throw IndentationError and not run. \$\endgroup\$ Jun 24, 2016 at 10:46
  • 4
    \$\begingroup\$ Every COBOL program I see looks like commands for a alien spaceship... \$\endgroup\$
    – univalence
    Jun 25, 2016 at 6:26
  • \$\begingroup\$ enjoy the association bonus :D \$\endgroup\$ Aug 12, 2016 at 23:19
17
\$\begingroup\$

MATL -> CJam -> 05AB1E -> Golfscript 21/2 18/2 22/3

Thanks for Martin for 3 chars off!

'"''Rube Goldberg''"`'

executed in MATL gives

"''Rube Goldberg''"`

which in CJam gives

"'Rube Goldberg'"

which in 05AB1E gives

'Rube Goldberg'

which in Golfscript gives

Rube Goldberg
\$\endgroup\$
4
  • \$\begingroup\$ You can add Pyth in 1 byte, I think. \$\endgroup\$ Jun 22, 2016 at 14:56
  • \$\begingroup\$ @FryAmTheEggman Thanks! But I have no idea of Pyth or how that code works, so I wont' add it. Maybe use it yourself? :-) \$\endgroup\$
    – Luis Mendo
    Jun 22, 2016 at 15:35
  • \$\begingroup\$ Golfscript -> Pyth. Then, your original source code will convert g' to g. So your score will be 7 instead of 22/3. \$\endgroup\$ Jun 28, 2016 at 15:23
  • \$\begingroup\$ But it would then be 21/4, wouldn't it? \$\endgroup\$ Jul 5, 2016 at 11:47
5
\$\begingroup\$

Reng -> ><> -> Vitsy, 32 / 2 = 16 points

I wanted to do only 2D languages--on a single line!

{'Z"Rube Goldberg"'ol?!;f3+0.}n~

Explanation

Reng sees:  {'Z"Rube Goldberg"'ol?!;f3+0.}n~
            <---------------------------->    code block
                                          n~  print that and stop

><> sees:   {'Z"Rube Goldberg"'ol?!;f3+0.}
            {                                 no-op?
             'Z"Rube Goldberg"'               push that string backwards
                               o              output a char
                                l?!;          terminate if none are left
                                    f3+0.     go to (0, 18) in the codebox

Vitsy sees: "grebdloG ebuR"Z
            "............."                   push that string
                           Z                  output it
\$\endgroup\$
8
  • \$\begingroup\$ 32 / 2 = 16, not 32. Also, can't you do push the string written backwards instead of wrapping it (><>)? \$\endgroup\$ Jun 26, 2016 at 16:59
  • \$\begingroup\$ @EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Vitsy requires a string backwards, so in essence the string is backwards from ><> to Vitsy. And thanks for the clarification for the score. \$\endgroup\$ Jun 26, 2016 at 18:49
  • \$\begingroup\$ I was confused with "push that string backwards". \$\endgroup\$ Jun 26, 2016 at 19:07
  • 1
    \$\begingroup\$ My child appreciates your usage. +1 \$\endgroup\$ Jun 26, 2016 at 19:25
  • \$\begingroup\$ It is worth noting that Vitsy is 1D syntax, but its data handling is 4D. \$\endgroup\$ Jun 26, 2016 at 19:30
4
\$\begingroup\$

Perl -> JavaScript (ES6) -> Batch -> sh, 39 / 3 = 13 points

Perl

print 'alert`@echo echo Rube Goldberg`'

JavaScript (ES6)

alert`@echo echo Rube Goldberg`

Batch

@echo echo Rube Goldberg

sh

echo Rube Goldberg
\$\endgroup\$
5
  • \$\begingroup\$ You can add PHP into it: <?="print 'alert`@echo echo Rube Goldberg`'";. If I'm not wrong, it will be 11.25 points. \$\endgroup\$ Jun 22, 2016 at 17:10
  • \$\begingroup\$ @IsmaelMiguel Don't know PHP, but I think that print 'alert`@echo echo Rube Goldberg`' works in PHP as well. \$\endgroup\$ Jun 24, 2016 at 9:27
  • \$\begingroup\$ @EʀɪᴋᴛʜᴇGᴏʟғᴇʀ You're right. I had this idea that PHP required parenthesys to run the print. \$\endgroup\$ Jun 24, 2016 at 10:30
  • \$\begingroup\$ @IsmaelMiguel I mean, you can omit the <?php part to act as a quine I think. \$\endgroup\$ Jun 24, 2016 at 10:33
  • \$\begingroup\$ @EʀɪᴋᴛʜᴇGᴏʟғᴇʀ I don't think that that is allowed. It would be just a simple plain-text file being fed into PHP. \$\endgroup\$ Jun 24, 2016 at 10:54
4
\$\begingroup\$

Java->Thue->Javascript->Batch->Microscript II->Brainf***, 236/5=47.2

interface J{static void main(String[]a){System.out.print("a::=~alert`echo \"+++++[>+A<-]>[>++>+++<<-]>++.>---.<++AA.+++.>>++++[>+A<-]>.[>++>+++>+++<<<-]>A.>+AA.---.>++++.--.+++.<<<<<---.>>>>>++.\"`\n::=\na".replaceAll("A","+++++++"));}}

Generated Thue program:

a::=~alert`echo "+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."`
::=
a

Generated Javascript program:

alert`echo "+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."`

Generated Batch program:

echo "+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."

Generated Microscript II program:

"+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."

Generated Brainf*** program:

+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++.
\$\endgroup\$
0
4
\$\begingroup\$

Jelly4DOS4OS2Almquist shellBourne shellBourne Again shellCOMMAND.COMC shellDebian Almquist shellDesktop Korn shellExtensible shellFriendly Interactive shellHamilton C shellIon shellInferno shellKornShellMirBSD Korn shellMKS Korn shellNDOSOpenBSD Korn shellOS/2 WindowPocket CMDPublic Domain Korn shellReactOS Command PromptRun CommandsSteve Koren shellThompson shellTake Command ConsoleTool Command Language KornShellTool Command Language shellTENEX C shellWindows Command PromptZ shell, \$\frac{15}{32}=0.46875\$

Beats all other answers. All it took was a couple centuries of looking for shells with echo.

  1. Jelly: “¡oġ»ẋ32“,oƝ+Ƈ»
  2. 4DOS: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  3. 4OS2: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  4. Almquist shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  5. Bourne shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  6. Bourne Again shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  7. COMMAND.COM: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  8. C shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  9. Debian Almquist shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  10. Desktop Korn shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  11. Extensible shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  12. Friendly Interactive shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  13. Hamilton C shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  14. Inferno shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  15. Ion shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  16. KornShell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  17. MirBSD Korn shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  18. MKS Korn shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  19. NDOS: echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  20. OpenBSD Korn shell: echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  21. OS/2: echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  22. Pocket CMD: echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  23. Public Domain Korn shell: echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  24. ReactOS Command Prompt: echo echo echo echo echo echo echo echo echo echo Rube Goldberg
  25. Run Commands: echo echo echo echo echo echo echo echo echo Rube Goldberg
  26. Steve Koren shell: echo echo echo echo echo echo echo echo Rube Goldberg
  27. Thompson shell: echo echo echo echo echo echo echo Rube Goldberg
  28. Take Command Console: echo echo echo echo echo echo Rube Goldberg
  29. Tool Command Language KornShell: echo echo echo echo echo Rube Goldberg
  30. Tool Command Language shell: echo echo echo echo Rube Goldberg
  31. TENEX C shell: echo echo echo Rube Goldberg
  32. Windows Command Prompt: echo echo Rube Goldberg
  33. Z shell: echo Rube Goldberg
  34. Output: Rube Goldberg
\$\endgroup\$
6
  • \$\begingroup\$ Go add Powershell to it!!! \$\endgroup\$
    – Wasif
    May 26, 2021 at 1:42
  • \$\begingroup\$ @Wasif I would, but sadly when echo is given space-delimited arguments (like echo Hello, World!) not surrounded in quotes, it outputs each argument on a separate line. \$\endgroup\$
    – Makonede
    May 26, 2021 at 1:44
  • 1
    \$\begingroup\$ Hmm... Sorry looks like Powershell interprets that as an array \$\endgroup\$
    – Wasif
    May 26, 2021 at 1:51
  • \$\begingroup\$ @Wasif Yeah. Either way, doesn't matter, all that matters is Powershell won't work here. \$\endgroup\$
    – Makonede
    May 26, 2021 at 1:53
  • 1
    \$\begingroup\$ this is awful. I love it \$\endgroup\$ May 16 at 2:38
3
\$\begingroup\$

Javascript -> PHP -> Foo 14 points

Javascript:

alert`echo'"Rube Goldberg"'`

PHP:

echo'"Rube Goldberg"'

Foo:

"Rube Goldberg"
\$\endgroup\$
0
3
\$\begingroup\$

/// -> PowerShell -> CJam -> Foo -> BASH, 24 bytes/4 = 6

'"echo Rube Goldberg"p'/

When executed in /// gives

'"echo Rube Goldberg"p'

which, when executed in PowerShell gives

"echo Rube Goldberg"p

which, when executed in CJam gives

"echo Rube Goldberg"

which, when executed in Foo gives

echo Rube Goldberg

which, when executed in BASH gives

Rube Goldberg
\$\endgroup\$
0
3
\$\begingroup\$

APL → J → K, 21 bytes/2 → 10.5

'''"Rube Goldberg"'''
on Dyalog APL gives
'"Rube Goldberg"'
which in J gives
"Rube Goldberg"
which in K gives
Rube Goldberg

If we allow even closer related languages we can get many more.

\$\endgroup\$
1
\$\begingroup\$

Python → Ruby → Bash, score: 35 / 2 = 17.5

print"puts'echo \"Rube Goldberg\"'"

when executed in Python, gives

puts'echo "Rube Goldberg"'

with the \"s escaped. Next, this, executed Ruby gives

echo "Rube Goldberg"

and lastly, executing this in Bash gives

Rube Goldberg

which is the expected string.

\$\endgroup\$
1
\$\begingroup\$

C → JS → Shell → ><>: 68 / 3 = 22.67

C

main(){puts("console.log(`echo '\"Rube Goldberg\"ar!;ooooooo|'`)");}

Javascript

console.log(`echo '"Rube Goldberg"ar!;ooooooo|'`)

Shell

echo '"Rube Goldberg"ar!;ooooooo|'

><>

"Rube Goldberg"ar!;ooooooo|

Result:

Rube Goldberg

as required.

\$\endgroup\$
7
  • \$\begingroup\$ 72/3 = 24, not 36 \$\endgroup\$ Jun 24, 2016 at 9:31
  • \$\begingroup\$ I think there are "template strings" in JS, thus you can do console.log`echo '"Rube Goldberg"ar!;ooooooo|'`? \$\endgroup\$ Jun 24, 2016 at 10:43
  • \$\begingroup\$ @EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Thanks, apparently can't count :p And also thanks for the template strings suggestion; forgot about that... Although the no-parens trick doesn't seem to work, because console.log then goes outputting an array (at least in Node) \$\endgroup\$
    – tomsmeding
    Jun 24, 2016 at 13:17
  • \$\begingroup\$ It's not worth it to make such approximations; use 22.(6)7 instead, it's smaller by 0.(0)3. \$\endgroup\$ Jun 24, 2016 at 14:04
  • \$\begingroup\$ @EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Sorry, but that doesn't work. Tagged template strings evaluate differently (that would evaluate to roughly console.log([`echo '"Rube Goldberg"ar!;ooooooo|'`])) as per spec. \$\endgroup\$ Jun 26, 2016 at 14:23
1
\$\begingroup\$

Sprects///itflabtijtslwi → Python 2 → Pyth, 24 / 4 = 6

Sprects

$print'"Rube Goldberg'\/

///

print'"Rube Goldberg'\/

itflabtijtslwi

print'"Rube Goldberg'/

Python 2

print'"Rube Goldberg'

Pyth

"Rube Goldberg

Output

Rube Goldberg
\$\endgroup\$
0
1
\$\begingroup\$

/// -> K -> J -> SX -> Golfscript -> Pyke -> Lua -> Moonscript -> C -> Pyth -> Python -> BrainF*** -> Bash -> Ruby -> Zsh, 554b/16= 34.625

///

"'我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")'"/

K

"'我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")'"

J

'我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")'

SX

我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")

Golfscript

"\"print \\\"print(\\\\\"print \\\\\\\"#include<stdio.h>\\\\\\\nint main(){printf(\\\\\\\"\\\\\\\\\"print \\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\"\\\\\\\\\");}\\\\\\\"\\\\\")\\\"\""

Pyke

"print \"print(\\\"print \\\\\"#include<stdio.h>\\\\\\nint main(){printf(\\\\\"\\\\\\\"print \\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\"\\\\\\\");}\\\\\"\\\")\""

Perl

print "print(\"print \\\"#include<stdio.h>\\\nint main(){printf(\\\\\"\\\\\\\"print \\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\"\\\\\");}\\\"\")"

Lua

print("print \"#include<stdio.h>\nint main(){printf(\\\"\\\\\"print \\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\"\\\");}\"")

Moonscript

print "#include<stdio.h>\nint main(){printf(\"\\\"print \\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\"\");}"

C

#include<stdio.h>
int main(){printf("\"print \\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\"");}

Pyth

"print \"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\"

Python 2

print "--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>."

BrainF***

--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\

Bash

echo -E puts \"echo Rube Goldberg\"

Ruby

puts "echo Rube Goldberg"

Zsh

echo Rube Goldberg

Obviously I could add a lot of echo's but it feels like it would copy Dennis' answer.

\$\endgroup\$
1
\$\begingroup\$

sed -> Pyth -> Python -> AWK -> Make -> Bash, 200/4 = 50

s/.*/=Z"echo"p"print(~BEGIN{print\\"r=S\\"Rube GoldbergS\\"Sntrue =;@Y"(){ Y" S\\"${r}S\\"|awk \\\\~$0=S\\"x:SSnSSt@Y" S\\"$0\\\\~;}Sntrue :SnSt@YdpZp" ${r}\\"}~)"p"/
s/S/\\\\\\\\/g;s/~/'/g;s/Y/"pZp/g

Try it online!

Not the shortest, or the most languages, but I enjoyed figuring this out. And the second to the last step in the chain is Make/Bash polyglot. If you run it as a Makefile, it generates a Bash script. If you run it as a Bash script, it generates a Makefile.

Pyth

=Z"echo"p"print('BEGIN{print\"r=\\\\\"Rube Goldberg\\\\\"\\\\ntrue =;@"pZp"(){ "pZp" \\\\\"${r}\\\\\"|awk \\'$0=\\\\\"x:\\\\\\\\n\\\\\\\\t@"pZp" \\\\\"$0\\';}\\\\ntrue :\\\\n\\\\t@"pZpdpZp" ${r}\"}')"p"

The p" at the end is only necessary since I can't find a way to make sed leave off the trailing LF and Pyth really hates blank input source lines... At least the TIO version does. I found adding a print statement follow by an open string squelched the error.

Python

print('BEGIN{print"r=\\"Rube Goldberg\\"\\ntrue =;@echo(){ echo \\"${r}\\"|awk \'$0=\\"x:\\\\n\\\\t@echo \\"$0\';}\\ntrue :\\n\\t@echo echo ${r}"}')

AWK

BEGIN{print"r=\"Rube Goldberg\"\ntrue =;@echo(){ echo \"${r}\"|awk '$0=\"x:\\n\\t@echo \"$0';}\ntrue :\n\t@echo echo ${r}"}

Make/Bash polyglot

r="Rube Goldberg"
true =;@echo(){ echo "${r}"|awk '$0="x:\n\t@echo "$0';}
true :
        @echo echo ${r}

Since that has to work as a Makefile, there are tabs in the original, which don't cut-n-paste into this page properly...

Bash (if you treat the Make/Bash step as Make)

echo Rube Goldberg

Make (if you treat the Make/Bash script as Bash)

x:
        @echo Rube Goldberg

And again, there's a tab in the original...

\$\endgroup\$
0
\$\begingroup\$

Python -> Ruby -> Bash -> JS -> /// -> m4, score: 54 / 5 = 10.8

Original  print"puts\"echo \'alert(\\\"Rube Goldberg#/\\\")'\""
Python    puts"echo 'alert(Rube Goldberg)'"
Ruby      echo 'alert("Rube Goldberg#/")'
Bash      alert("Rube Goldberg#/")
JS        Rube Goldberg#/
///       Rube Goldberg#
m4        Rube Goldberg

I've got the /// and m4 trick from the answer https://codegolf.stackexchange.com/a/83627/53416

\$\endgroup\$
0
\$\begingroup\$

dc -> Fortran -> Basic -> Vim, 59/3 = 19.(6) points

With this answer I wanted to contribute to the variety of languages already used in other answers.

dc:

[program P;write(*,*)"PRINT ""echo 'Rube Goldberg'""";end]P

Fortran:

program P;write(*,*)"PRINT ""echo 'Rube Goldberg'""";end

Basic:

PRINT "echo 'Rube Goldberg'"

Vim:

echo 'Rube Goldberg'

Final output:

Rube Goldberg
\$\endgroup\$
0
\$\begingroup\$

GolfScript -> Python -> Bash -> Ruby -> ///, 49/4 = 12.25 points

GolfScript: "print('echo puts \\\\\\'Rube Goldberg/\\\\'')"

Python: print('echo puts \\\'Rube Goldberg/\\\'')

Bash: echo puts \'Rube Goldberg/\'

Ruby: puts 'Rube Goldberg/'

///: Rube Goldberg/

Output: Rube Goldberg

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.