Rube Goldberg Hello World

69

15

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)

NOTE: Languages that outputs their input can't be used. That would be an extra language with absolutely no additionnal byte.

The answer

Please provide an answer that clearly states what languages you used and show us the code of each step (ie: in each language).

The winner

Of course, like usual, the lowest score wins.

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

SteeveDroz

Posted 2016-06-22T14:17:08.300

Reputation: 2 399

1Closely related – FryAmTheEggman – 2016-06-22T14:21:18.997

3code golf rube goldburg... It would have been better a popcorn but those always get shut down. – Bald Bantha – 2016-06-22T14:28:39.843

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 – Luis Mendo – 2016-06-22T14:31:48.017

@LuisMendo I figured you'd count the source code passed to the first language. If your languages use different encodings the main difficulty will be to output the correct encoding for the next language, won't it? – Martin Ender – 2016-06-22T14:32:10.700

@MartinEnder Yes, I think counting for the first language makes sense. As for the other thing, I think it suffices to assume that the subsequent languages get characters (regardless of their encoding) – Luis Mendo – 2016-06-22T14:37:45.407

Another similar question, which requires input and is only for one language. – FryAmTheEggman – 2016-06-22T14:38:52.423

2How 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? – Adám – 2016-06-22T14:39:15.807

Quine iterations (the program prints its source code) shouldn't be allowed. That would be a cheat. – user48538 – 2016-06-22T15:08:43.347

Regarding characters: yes, you count the number of bytes in the initial source code for the initial language. – SteeveDroz – 2016-06-23T05:25:02.873

As there's some discussion on one of the answers, could you clarify whether "Languages that outputs their input can't be used." means "Programs which simply output their source code can't be used."? (I was assuming you were referring to things like PHP or /// which will print most characters in the source directly to STDOUT unless you include certain special characters, but it might be good to clarify that part.) – Martin Ender – 2016-06-24T11:05:42.787

Surely there are languages that output their source + one byte, so that you could write your code by repeatedly using that language? – BlackCap – 2016-06-24T14:07:51.370

@BlackCap only different languages count. – Martin Ender – 2016-06-24T16:43:05.783

@MartinEnder Yes, but you don't get negative points for using it twice, so you could have a language read it's own code and add a + or something to a comment. If you find two languages that adds a different character you could write your program by repeatedly using those two languages with no score penalty. http://pastebin.com/dXQd89YQ

– BlackCap – 2016-06-24T18:47:12.407

I don't think using the same language more than once should be allowed. If program A prints program B in many languages, and program B prints program A in even one language, I can alternate A and B over and over again, incrementing the language count without affecting the byte count. – Dennis – 2016-06-25T01:57:45.897

"another code," "codes" http://english.stackexchange.com/q/20455/97308

– jpmc26 – 2016-06-25T05:08:32.043

To be clear, using the same language is allowed but won't help you as it is only counted once… So you add extra bytes when you use the language again, but can't increase the denominator. – SteeveDroz – 2016-06-25T06:36:39.123

2One of the answers is counting Python 1, 2 and 3 as three separate languages. Is that allowed? (I don't think it should be.) – Dennis – 2016-06-26T18:53:34.283

Hmm, I don't think it should be either, Python is Python. – SteeveDroz – 2016-06-27T05:30:49.217

Is using language "Rube Goldberg" a cheat? – user75200 – 2017-11-04T18:34:29.873

I don't know that language, but the answer is yes iff it has been created after Jun 22 '16 at 14:17. (No languages created after the challenge has been submited) – SteeveDroz – 2017-11-13T08:54:46.477

Answers

46

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)

Dennis

Posted 2016-06-22T14:17:08.300

Reputation: 196 637

4If 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. – Dennis – 2016-06-25T01:54:19.647

3You use 9-11 Unix Shells... – Mega Man – 2016-06-25T06:23:31.073

3It is allowed to use languages more than once, but the second time you use it, it doesn't count as an additonnal language. – SteeveDroz – 2016-06-25T06:33:19.493

@SteeveDroz OK, my premise that it would improve the byte count seems to be off, but here's what I had in mind: The GolfScript program {"Rube Goldberg";'print('@@`'_~'+`')'}.~ prints print("{\"Rube Goldberg\";'print('@@`'_~'+`')'}_~"), which in turn prints the GolfScript program in Falcon, Groovy, JavaScript, Julia, etc. That means I can use GolfScript -> Falcon -> GolfScript -> Groovy... without ever changing the programs. – Dennis – 2016-06-26T04:42:21.390

2I love the rules abuse in this one... XD – Isiah Meadows – 2016-06-26T14:20:27.200

2You could use BATCH--another free echo. – Conor O'Brien – 2016-06-26T19:29:01.363

@CᴏɴᴏʀO'Bʀɪᴇɴ That would require a @ before echo (or @echo off) to eliminate the extra output, unless one of the other shells works in spite of it. – Dennis – 2016-06-26T20:58:07.267

True. Why not after foo? – Conor O'Brien – 2016-06-26T20:59:21.470

Because it would cause the next program (ash) to print an error message. The question seems to consider STDERR output, so I don't think it's allowed. – Dennis – 2016-06-26T21:14:27.283

@Dennis I don't see the problem at first sight, can you explain where the flaw is? – SteeveDroz – 2016-06-27T05:33:56.560

@SteeveDroz I'm not sure I follow. Do you mean with Batch or with the GolfScript snippet? – Dennis – 2016-06-27T05:57:03.417

Nevermind, I read it wrong… The answer is yes, you can use GolfScript every other step, but it only counts once. Let's be clear: GolfScript produces Falcon, then Falcon produces GolfScript, then GolfScript produces Groovy, etc. – SteeveDroz – 2016-06-27T06:05:42.973

@SteeveDroz Yes, that's the general idea. The GolfScript program I posted would print Rube Goldberg in Foo, so I could eventually each the desired output. – Dennis – 2016-06-27T06:10:37.433

Gnuplot works for print. GDB batch mode works for echo. And yash. – jimmy23013 – 2016-06-28T01:51:09.457

@jimmy23013 I somehow missed your comment earlier. I'll add those soon. Thanks! – Dennis – 2016-07-04T23:31:34.517

What did you do from CJam to Python? It seems you generate a lot more code there. – justhalf – 2016-08-29T03:15:27.597

@justhalf Lots and lots of calls to repr (backtick in CJam). – Dennis – 2016-08-29T03:26:15.497

55

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.

Lynn

Posted 2016-06-22T14:17:08.300

Reputation: 55 648

lol how gs2 -> Jelly only removes one byte... – Rɪᴋᴇʀ – 2016-06-23T02:02:57.280

1

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.

– overactor – 2016-06-23T07:31:42.023

5@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 – Lynn – 2016-06-23T14:03:32.800

Well, no sense in trying now :P (except for the fun of it) – Bald Bantha – 2016-06-23T23:07:29.917

I wrote all answers in the Jelly code page. gs2 and Foo just use byte I/O, so the “encoding” I use to represent high-ASCII bytes in this answer doesn’t really matter, I believe. – Lynn – 2016-06-24T00:51:55.530

@overactor No, do it in Golunar!

– Erik the Outgolfer – 2016-06-24T09:23:38.807

2

Since you have both /// and Lines, I guess you could also consider adding https://esolangs.org/wiki/Itflabtijtslwi (just add another / to the end, if that doesn't mess up any other languages).

– Martin Ender – 2016-06-24T11:20:22.363

Where does the string Rube Goldberg come from? This is confusing. – Virtual Anomaly – 2016-06-24T14:57:48.460

1@lightswitchr It uses M's built-in string compression which decodes that jumble of characters to give the Jelly code. – Martin Ender – 2016-06-24T16:42:07.220

You could add V to this fairly easy. To denote a string literal in V, just prepend any of these characters to what you want to print: iIaARC I don't know these other languages very well, so I can't guarantee it would improve your score. – James – 2016-06-25T00:42:03.460

33

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!

Leaky Nun

Posted 2016-06-22T14:17:08.300

Reputation: 45 011

26

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

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

Bálint

Posted 2016-06-22T14:17:08.300

Reputation: 1 847

2Did you just include BF to make the byte-count long? – Leaky Nun – 2016-06-22T15:02:29.687

1@LeakyNun No, I already made a short version, now this goes for the most langauges as possible – Bálint – 2016-06-22T15:03:09.470

1I don't know which to prefer, BF or Java. – gcampbell – 2016-06-22T19:15:58.750

1Couldn't you make the python one a little bit shorter by using string repetition? For example, instead of ----------- couldn't you do "+"-"*11+"? – DanTheMan – 2016-06-23T05:29:17.257

21

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

KH42

Posted 2016-06-22T14:17:08.300

Reputation: 311

5+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! – Kevin Cruijssen – 2016-06-24T07:05:55.473

Wrong Case. The output should be Rude Goldberg, not RUBE GOLDBERG. – Erik the Outgolfer – 2016-06-24T09:26:06.100

1Actually, the Python solution will throw IndentationError and not run. – Erik the Outgolfer – 2016-06-24T10:46:21.280

4Every COBOL program I see looks like commands for a alien spaceship... – Mega Man – 2016-06-25T06:26:16.637

enjoy the association bonus :D – Rohan Jhunjhunwala – 2016-08-12T23:19:07.777

@RohanJhunjhunwala Is that something like Congrats on 200 rep? – Erik the Outgolfer – 2016-09-12T10:48:51.823

@EriktheGolfer in a way yes. I just noticed because I upvoted when he was at 191 – Rohan Jhunjhunwala – 2016-09-12T10:49:59.743

@RohanJhunjhunwala It seems the user hasn't done anything since then, since he has 301 rep (201 + 100). – Erik the Outgolfer – 2016-09-12T10:53:45.833

17

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

Luis Mendo

Posted 2016-06-22T14:17:08.300

Reputation: 87 464

You can add Pyth in 1 byte, I think. – FryAmTheEggman – 2016-06-22T14:56:53.290

@FryAmTheEggman Thanks! But I have no idea of Pyth or how that code works, so I wont' add it. Maybe use it yourself? :-) – Luis Mendo – 2016-06-22T15:35:34.187

Golfscript -> Pyth. Then, your original source code will convert g' to g. So your score will be 7 instead of 22/3. – Erik the Outgolfer – 2016-06-28T15:23:46.123

But it would then be 21/4, wouldn't it? – SuperJedi224 – 2016-07-05T11:47:54.433

5

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:

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

SuperJedi224

Posted 2016-06-22T14:17:08.300

Reputation: 11 342

5

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

Conor O'Brien

Posted 2016-06-22T14:17:08.300

Reputation: 36 228

32 / 2 = 16, not 32. Also, can't you do push the string written backwards instead of wrapping it (><>)? – Erik the Outgolfer – 2016-06-26T16:59:43.213

@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. – Conor O'Brien – 2016-06-26T18:49:53.023

I was confused with "push that string backwards". – Erik the Outgolfer – 2016-06-26T19:07:39.913

1My child appreciates your usage. +1 – Addison Crump – 2016-06-26T19:25:09.507

It is worth noting that Vitsy is 1D syntax, but its data handling is 4D. – Addison Crump – 2016-06-26T19:30:37.740

@VTCAKAVSMoACE Technically 2D with method (love that instruction). And 4D is close enough :P – Conor O'Brien – 2016-06-26T19:31:25.007

@CᴏɴᴏʀO'Bʀɪᴇɴ But that jumps to separate lines - count that as 2D, and Java is a 2D language. – Addison Crump – 2016-06-26T19:31:56.437

@VTCAKAVSMoACE .... ehhhh okay – Conor O'Brien – 2016-06-26T19:32:19.443

4

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

Neil

Posted 2016-06-22T14:17:08.300

Reputation: 95 035

You can add PHP into it: <?="print 'alert`@echo echo Rube Goldberg`'";. If I'm not wrong, it will be 11.25 points. – Ismael Miguel – 2016-06-22T17:10:58.777

@IsmaelMiguel Don't know PHP, but I think that print 'alert\@echo echo Rube Goldberg`'` works in PHP as well. – Erik the Outgolfer – 2016-06-24T09:27:04.310

@EʀɪᴋᴛʜᴇGᴏʟғᴇʀ You're right. I had this idea that PHP required parenthesys to run the print. – Ismael Miguel – 2016-06-24T10:30:58.547

@IsmaelMiguel I mean, you can omit the <?php part to act as a quine I think. – Erik the Outgolfer – 2016-06-24T10:33:14.557

@EʀɪᴋᴛʜᴇGᴏʟғᴇʀ I don't think that that is allowed. It would be just a simple plain-text file being fed into PHP. – Ismael Miguel – 2016-06-24T10:54:26.103

4

/// -> 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

AdmBorkBork

Posted 2016-06-22T14:17:08.300

Reputation: 41 581

3

Javascript -> PHP -> Foo 14 points

Javascript:

alert`echo'"Rube Goldberg"'`

PHP:

echo'"Rube Goldberg"'

Foo:

"Rube Goldberg"

Bálint

Posted 2016-06-22T14:17:08.300

Reputation: 1 847

3

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.

Adám

Posted 2016-06-22T14:17:08.300

Reputation: 37 779

2

/// -> 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.

XiKuuKy

Posted 2016-06-22T14:17:08.300

Reputation: 369

1

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.

user48538

Posted 2016-06-22T14:17:08.300

Reputation: 1 478

1

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.

tomsmeding

Posted 2016-06-22T14:17:08.300

Reputation: 2 034

72/3 = 24, not 36 – Erik the Outgolfer – 2016-06-24T09:31:00.907

I think there are "template strings" in JS, thus you can do console.log\echo '"Rube Goldberg"ar!;ooooooo|'``? – Erik the Outgolfer – 2016-06-24T10:43:10.203

@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) – tomsmeding – 2016-06-24T13:17:06.910

It's not worth it to make such approximations; use 22.(6)7 instead, it's smaller by 0.(0)3. – Erik the Outgolfer – 2016-06-24T14:04:07.887

@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. – Isiah Meadows – 2016-06-26T14:23:01.453

@IsiahMeadows You mean console.log(['echo \'"Rube Goldberg"ar!;ooooooo|\'']) – Erik the Outgolfer – 2016-06-26T14:27:47.170

@EʀɪᴋᴛʜᴇGᴏʟғᴇʀ They're the same thing in this case. – Isiah Meadows – 2016-06-26T18:31:42.663

1

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

Erik the Outgolfer

Posted 2016-06-22T14:17:08.300

Reputation: 38 134

0

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

Mega Man

Posted 2016-06-22T14:17:08.300

Reputation: 1 379

0

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

seshoumara

Posted 2016-06-22T14:17:08.300

Reputation: 2 878