Rube Goldberg Hello World


68

Per questo golf, dovrai usare più di una lingua.

L'obiettivo

Una macchina Rube Goldberg è un aggeggio che compie un numero enorme di passaggi complicati per eseguire un compito molto semplice. L'obiettivo di questo golf è quello di produrre Rube Goldberg... ma non direttamente.

La macchina

La tua "macchina" è il codice sorgente che, una volta eseguito, fornirà un altro codice sorgente in un'altra lingua che verrà emesso al Rube Goldbergmomento dell'esecuzione. Fatto?

Lo riformulo: il tuo codice iniziale deve fornire un altro codice, che deve generare un altro codice Rube Goldberg. Entrambi i codici devono essere scritti in diverse lingue.

Il bonus che è più come l'unico modo divertente per farlo

C'è un bonus se il tuo codice genera un codice che produrrà un codice che ... produrrà Rube Goldberg.

NOTA: è possibile utilizzare qualsiasi tipo di output (stdout, stderr, finestra di dialogo, ...)

I punti

Il numero di punti è uguale al numero di byte utilizzati nel codice, diviso per il numero dei distinti , in più lingue che si è utilizzato.

NOTA: lingue diverse utilizzano codifiche diverse. Il numero di byte viene conteggiato nella lingua iniziale con la propria codifica.

Esempi

  • Pyth -> J -> Javascript -> outputin 30 byte = 30/2 = 15 punti (J e Javascript sono le lingue extra)
  • Java -> C# -> C++ -> PHP -> outputin 36 byte = 36/3 = 12 punti (Più byte e più lingue possono vincere su meno byte e meno lingue (so che non è possibile che queste lingue lo facciano in 36 byte))
  • C -> outputin 10 byte = 10/0 = Punti infinito (Nessuna lingua extra)
  • Python -> Perl -> Ruby -> Python -> Rubyin 44 byte = 44/2 = 22 punti (Perl e Ruby sono le lingue extra, il secondo Python non viene conteggiato in quanto non è una lingua extra, il secondo Ruby non viene conteggiato come è già stato)

NOTA: non è possibile utilizzare le lingue che generano i loro input. Sarebbe un linguaggio extra senza nessun byte aggiuntivo.

La risposta

Fornisci una risposta che indichi chiaramente quali lingue hai usato e mostraci il codice di ogni passaggio (ovvero: in ciascuna lingua).

Il vincitore

Naturalmente, come al solito, vince il punteggio più basso.

NOTA: come al solito, le scappatoie standard e i "cheat" non sono ammessi.



3
codice golf rube goldburg ... Sarebbe stato meglio un popcorn ma quelli vengono sempre chiusi.
Bald Bantha,

Come definire il conteggio dei byte quando lingue diverse possono usare codifiche diverse? Lo stesso carattere può contare, ad esempio, come 1 o 2 byte a seconda della codifica della lingua
Luis Mendo,

2
Quanto possono essere strettamente correlate le lingue? Posso usare Dyalog APL, NARS2000, ngn / apl, APL2 e APL + Win insieme? Che ne dici di K, K2, K3, ..., Kona?
Adám,

2
Una delle risposte sta contando Python 1, 2 e 3 come tre lingue separate. È permesso? (Non credo che dovrebbe essere.)
Dennis il

Risposte:


46

33 lingue, 40 byte, 1,25 punti

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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\")\\\")\")")
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

Sfrutta il fatto che molti linguaggi diversi condividono la stessa sintassi di stampa, ottenendo un codice sorgente esponenzialmente più lungo ma altamente comprimibile.

Permalink (incompleti, da aggiornare)


4
Se in effetti ci viene permesso di utilizzare la stessa lingua più di una volta, posso ottenere un conteggio dei byte molto più basso senza perdere alcuna lingua, annullando ripetutamente ciò che il programma precedente ha fatto.
Dennis,

3
Usi 9-11 Unix Shells ...
Mega Man il

3
È consentito utilizzare le lingue più di una volta, ma la seconda volta che lo si utilizza, non conta come lingua aggiuntiva.
SteeveDroz,

2
Adoro l'abuso delle regole in questo ... XD
Isiah Meadows il

2
È possibile utilizzare un BATCHaltro gratuito echo.
Conor O'Brien,

55

Foogs2MJellyRetinaAeolbonnParIn realtàSprectssedUniversal LambdaLines///m4 : 19/13 ≈ 1.4615 punti

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

Tutte le risposte sono fornite nella tabella codici Jelly . ¶ rappresenta una nuova riga.

Meccanismo

  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: Spiacenti, si è verificato un errore nel programma Pyth. Ho sostituito Pyth e GolfScript con Par.

EDIT 2: aggiunto GNU m4.

EDIT 3: Aggiunti Foo e M.


lol come gs2 -> Jellyrimuove solo un byte ...
Rɪᴋᴇʀ

1
Se si scrive un programma brainfuck che genera quel programma gs2, è possibile convertire quel programma brainfuck in unario e aggiungere prima un'altra lingua e aggiungere due lingue e probabilmente tagliare alcuni byte dal codice iniziale.
overactor

5
@overactor: il codice iniziale sarebbe sicuramente più lungo. Certo, è "solo" la stampa di un gruppo di zeri, ma il numero esatto di zeri da stampare è astronomico
Lynn,

2
Dato che hai sia /// sia Lines, immagino che potresti anche prendere in considerazione l'aggiunta di esolangs.org/wiki/Itflabtijtslwi (aggiungine un altro /alla fine, se ciò non rovina altre lingue).
Martin Ender,

1
@lightswitchr Utilizza la compressione di stringhe integrata di M che decodifica quel miscuglio di caratteri per fornire il codice Jelly.
Martin Ender,

33

Jolf -> In realtà -> Jelly -> Pyth -> Retina -> /// -> Golfscript: 15/6 = 2.5 punti

5,4 punti grazie a Martin Ender.

0.1 punti grazie a Cᴏɴᴏʀ O'Bʀɪᴇɴ.

Nota: sia Actually che Jelly hanno una propria tabella codici, quindi potrebbero essere trasferiti byte per byte, ma non nelle versioni online.

Jolf

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

In realtà

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

Provalo online!

Gelatina

“'ẉ'ɠ@ịQCṁỊ»

Provalo online!

Pyth

k"'Rube Goldberg'/

Provalo online!

Retina

'Rube Goldberg' /

Provalo online!

///

'Rube Goldberg'/

Provalo online!

Golfscript

'Rube Goldberg'

Provalo online!


26

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

Pitone

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

Lotto

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

JavaScript

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

Giava

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

PHP

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

C ++

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

foo

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

BrainFuck

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

2
Hai appena incluso BF per prolungare il conteggio dei byte?
Leaky Nun,

1
@LeakyNun No, ho già realizzato una versione breve, ora questo vale per il maggior numero di lingue possibile
Bálint,

1
Non so quale preferire, BF o Java.
gcampbell,

1
Non potresti rendere il pitone un po 'più breve usando la ripetizione delle stringhe? Ad esempio, invece di -----------non poterlo fare "+"-"*11+"?
DanTheMan il

21

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

261 byte / 4 lingue = 65,25 punti

Mirava a usare lingue difficili, con più offuscamento. Javascript converte la stringa da base64 a Cobol, che produce Python che decodifica il codice BAL da esadecimale.

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.

Pitone

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

Produzione

RUBE GOLDBERG

5
+1 La maggior parte delle altre risposte utilizza semplicemente funzioni di stampa diverse una dopo l'altra, ma è stata combinata con la codifica base64 e hex. Ottima prima risposta e benvenuta in PPCG!
Kevin Cruijssen,

Caso sbagliato. L'output dovrebbe essere Rude Goldberg, no RUBE GOLDBERG.
Erik the Outgolfer,

1
In realtà, la soluzione Python verrà lanciata IndentationErrore non eseguita.
Erik the Outgolfer,

4
Ogni programma COBOL che vedo sembra comandi per un'astronave aliena ...
Mega Man

goditi il ​​bonus dell'associazione: D
Rohan Jhunjhunwala,

17

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

Grazie per Martin per 3 caratteri fuori!

'"''Rube Goldberg''"`'

eseguito in MATL

"''Rube Goldberg''"`

che in CJam

"'Rube Goldberg'"

che in 05AB1E

'Rube Goldberg'

che in Golfscript

Rube Goldberg


@FryAmTheEggman Grazie! Ma non ho idea di Pyth o di come funzioni quel codice, quindi non lo aggiungerò. Forse lo usi da solo? :-)
Luis Mendo,

Golfscript -> Pyth. Quindi, il codice sorgente originale verrà convertito g'in g. Quindi il tuo punteggio sarà 7 anziché 22/3 .
Erik the Outgolfer,

Ma sarebbe il 21/4, no?
SuperJedi224,

5

Java-> Gio-> Javascript-> Lotto-> 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","+++++++"));}}

Generato programma Thue:

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

Programma Javascript generato:

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

Programma batch generato:

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

Generato programma Microscript II:

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

Programma Brainf *** generato:

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

5

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

Volevo fare solo linguaggi 2D - su una sola riga!

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

Spiegazione

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

32/2 = 16 , non 32. Inoltre, non puoi spingere la stringa scritta all'indietro invece di racchiuderla (> <>)?
Erik the Outgolfer,

@ EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Vitsy richiede una stringa all'indietro, quindi in sostanza la stringa è all'indietro da> <> a Vitsy. E grazie per il chiarimento per il punteggio.
Conor O'Brien,

Ero confuso con " push that string backwards".
Erik the Outgolfer,

1
Mio figlio apprezza il tuo utilizzo. +1
Addison Crump,

Vale la pena notare che Vitsy è sintassi 1D, ma la sua gestione dei dati è 4D.
Addison Crump,

4

Perl -> JavaScript (ES6) -> Lotto -> sh, 39/3 = 13 punti

Perl

print 'alert`@echo echo Rube Goldberg`'

JavaScript (ES6)

alert`@echo echo Rube Goldberg`

Lotto

@echo echo Rube Goldberg

sh

echo Rube Goldberg

È possibile aggiungere il PHP in esso: <?="print 'alert`@echo echo Rube Goldberg`'";. Se non sbaglio, saranno 11,25 punti.
Ismael Miguel,

@IsmaelMiguel Non conosco PHP, ma penso che print 'alert`@echo echo Rube Goldberg`'funzioni anche in PHP.
Erik the Outgolfer,

@ EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Hai ragione. Ho avuto l'idea che PHP richiedesse le parentesi per eseguire il print.
Ismael Miguel,

@IsmaelMiguel Voglio dire, puoi omettere la <?phpparte per agire come un quine, credo.
Erik the Outgolfer,

@ EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Non penso che sia permesso. Sarebbe solo un semplice file di testo in chiaro inserito in PHP.
Ismael Miguel,

4

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

'"echo Rube Goldberg"p'/

Quando eseguito in /// dà

'"echo Rube Goldberg"p'

che, quando eseguito in PowerShell, fornisce

"echo Rube Goldberg"p

quale, quando eseguito in CJam dà

"echo Rube Goldberg"

quale, quando eseguito in Foo dà

echo Rube Goldberg

che, quando eseguito in BASH, dà

Rube Goldberg

3

Javascript -> PHP -> Foo 14 punti

Javascript:

alert`echo'"Rube Goldberg"'`

PHP:

echo'"Rube Goldberg"'

foo:

"Rube Goldberg"

3

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

'''"Rube Goldberg"'''
su Dyalog APL dà
'"Rube Goldberg"'
quale in J dà
"Rube Goldberg"
che in K dà
Rube Goldberg

Se permettiamo lingue ancora più vicine possiamo ottenerne molte di più.


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\"

Rubino

puts "echo Rube Goldberg"

zsh

echo Rube Goldberg

Ovviamente potrei aggiungere un sacco di echi ma sembra che copierebbe la risposta di Dennis.


1

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

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

quando eseguito in Python, dà

puts'echo "Rube Goldberg"'

con la \"s fuggita. Successivamente, questo, eseguito Ruby dà

echo "Rube Goldberg"

e infine, l'esecuzione di questo in Bash dà

Rube Goldberg

che è la stringa prevista.


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|'`)

Conchiglia

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

> <>

"Rube Goldberg"ar!;ooooooo|

Risultato:

Rube Goldberg

come richiesto.


72/3 = 24 , non 36
Erik the Outgolfer,

Penso che ci siano "stringhe modello" in JS, quindi puoi farlo console.log`echo '"Rube Goldberg"ar!;ooooooo|'`?
Erik the Outgolfer,

@ EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Grazie, a quanto pare non può contare: p E anche grazie per il suggerimento di stringhe di template; se ne dimenticava ... Anche se il trucco no-parens non sembra funzionare, perché console.log quindi emette un array (almeno in Node)
tomsmeding

Non vale la pena fare simili approssimazioni; usa 22. (6) 7 invece, è più piccolo di 0. (0) 3.
Erik the Outgolfer,

@ EʀɪᴋᴛʜᴇGᴏʟғᴇʀ Siamo spiacenti, ma non funziona. Le stringhe del modello con tag vengono valutate in modo diverso (il che sarebbe valutato approssimativamente console.log([`echo '"Rube Goldberg"ar!;ooooooo|'`])) secondo le specifiche.
Isiah Meadows,


0

Python -> Ruby -> Bash -> JS -> /// -> m4, punteggio: 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

Ho il trucco /// e m4 dalla risposta https://codegolf.stackexchange.com/a/83627/53416


0

dc -> Fortran -> Base -> Vim, 59/3 = 19. (6) punti

Con questa risposta volevo contribuire alla varietà di lingue già utilizzate in altre risposte.

dc:

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

Fortran:

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

Di base:

PRINT "echo 'Rube Goldberg'"

Vim:

echo 'Rube Goldberg'

Uscita finale:

Rube Goldberg
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.