Gentoo is the best

From Gentoo Wiki
Jump to:navigation Jump to:search

As one of the weirdest ideas ever, Gentoo was made. And as one of the less weirdest ideas, that this article was made. This is a full representation of "Gentoo is the best" symphony in 150 coding languages. Enjoy!

1. Bash


echo "Gentoo is the best"

2. Python


python -c "print('Gentoo is the best')"

3. Perl


perl -e "print 'Gentoo is the best\n'"

4. Ruby


ruby -e "puts 'Gentoo is the best'"

5. Node.js (JavaScript)


node -e "console.log('Gentoo is the best')"

6. PHP


php -r "echo 'Gentoo is the best';"

7. Lua


lua -e "print('Gentoo is the best')"

8. Awk


awk 'BEGIN { print "Gentoo is the best" }'

9. R (Rscript)


Rscript -e 'cat("Gentoo is the best")'

10. Julia


julia -e 'println("Gentoo is the best")'

11. Haskell (runhaskell)


runhaskell -e 'main = putStrLn "Gentoo is the best"'

12. Scala


scala -e 'println("Gentoo is the best")'

13. Elixir


elixir -e 'IO.puts "Gentoo is the best"'

14. Erlang


erl -noshell -eval 'io:format("Gentoo is the best~n"), halt()'

15. Groovy


groovy -e 'println "Gentoo is the best"'

16. C# (CSI)


csi -e "System.Console.WriteLine(\"Gentoo is the best\")"

17. F# (fsharpi)


fsharpi -e "printfn \"Gentoo is the best\""

18. OCaml


ocaml -e 'print_endline "Gentoo is the best"'

19. Common Lisp (SBCL)


sbcl --eval '(format t "Gentoo is the best~%")' --quit

20. Scheme (Guile)


guile -c '(display "Gentoo is the best") (newline)'

21. Prolog (SWI‑Prolog)


swipl -g 'writeln("Gentoo is the best"),halt'

22. Tcl


tclsh -c 'puts "Gentoo is the best"'

23. PowerShell


powershell -Command "Write-Output 'Gentoo is the best'"

24. Racket


racket -e '(displayln "Gentoo is the best")'

25. Sed


sed -e 's/.*/Gentoo is the best/' <<< ""

26. CoffeeScript


coffee -e 'console.log "Gentoo is the best"'

27. Emacs Lisp


emacs --batch --eval '(princ "Gentoo is the best")'

28. Raku


raku -e 'say "Gentoo is the best"'

29. Batch (Windows CMD)


echo Gentoo is the best

30. Zsh


zsh -c 'echo "Gentoo is the best"'

31. Fish


fish -c 'echo "Gentoo is the best"'

32. J (J language)


jconsole -e 'echo "Gentoo is the best"'

33. K (K language)


k -e '\"Gentoo is the best\"'

34. APL


apl -x "⎕←'Gentoo is the best'"

35. Forth (gforth)


gforth -e '."Gentoo is the best" cr quit'

36. REBOL


rebol -c 'print "Gentoo is the best"'

37. Red


red -e 'print "Gentoo is the best"'

38. Factor


echo '"Gentoo is the best" print' | factor

39. Clojure


clojure -e '(println "Gentoo is the best")'

40. Dart


dart -e 'void main() { print("Gentoo is the best"); }'

41. Smalltalk (GNU Smalltalk)


gst -e 'Transcript show: "Gentoo is the best"; cr'

42. Swift


swift -e 'print("Gentoo is the best")'

43. REXX


rexx -e "say 'Gentoo is the best'"

44. MATLAB


matlab -batch "disp('Gentoo is the best')"

45. Octave


octave --eval "disp('Gentoo is the best')"

46. Scilab


scilab -nw -e "disp('Gentoo is the best')"

47. Maxima


maxima --batch-string "print(\"Gentoo is the best\");"

48. Mathematica


math -script - <<'EOF'
Print["Gentoo is the best"];
EOF

49. BusyBox (sh)


busybox sh -c 'echo "Gentoo is the best"'

50. SQLite


sqlite3 :memory: "select 'Gentoo is the best';"

51. AutoHotkey

(Assuming the interpreter accepts piped input)


echo 'MsgBox, Gentoo is the best' | autohotkey

52. Elm (REPL)


elm repl --eval 'Debug.log "Gentoo is the best" "Gentoo is the best"'

53. TypeScript (ts‑node)


ts-node -e 'console.log("Gentoo is the best")'

54. Deno (TypeScript/JavaScript)


deno eval "console.log('Gentoo is the best')"

55. Q (kdb+)


q -c 'show "Gentoo is the best"'

56. VBScript (via inline script)


echo 'WScript.Echo "Gentoo is the best"' | cscript //Nologo //E:vbscript -

57. Java (jshell)


jshell --execute 'System.out.println("Gentoo is the best");'

58. CMake


cmake -E echo "Gentoo is the best"

59. Make


make -f- <<'EOF'
all:
	@echo Gentoo is the best
EOF

60. PowerShell Core (pwsh)


pwsh -Command "Write-Output 'Gentoo is the best'"

61. Icon


icon -e 'procedure main() { write("Gentoo is the best") }'

62. Maple


maple -q -r 'printf("Gentoo is the best\n");quit();'

63. PARI/GP


gp -q -c 'print("Gentoo is the best")'

64. Io


io -e 'writeln("Gentoo is the best")'

65. LOLCODE

(Using a pipe to the interpreter)


echo -e 'HAI 1.2
VISIBLE "Gentoo is the best"
KTHXBYE' | lci

66. LiveScript


livescript -e 'console.log "Gentoo is the best"'

67. Squirrel


squirrel -e 'print("Gentoo is the best")'

68. Ring


ring -e 'println("Gentoo is the best")'

69. PostScript (via Ghostscript)


echo '(%!PS
/Helvetica findfont 20 scalefont setfont
100 700 moveto
(Gentoo is the best) show
showpage)' | gs -dBATCH -dNOPAUSE -sDEVICE=txtwrite -sOutputFile=-

70. m4


echo 'Gentoo is the best' | m4

71. Befunge‑93


echo '0"!tseb si ootneG">:v
>:#,_@' | bf

72. Unlambda


echo 's"gentoo is the best"' | unlambda

73. Brainfuck

(A simplified placeholder program)


echo '++++[>+++++<-]>[.>]' | brainfuck

74. INTERCAL


echo 'DO ,1 <- #13
PLEASE ,1
DO ,1 SUB #1 <- #238
DO ,1 SUB #2 <- #108
DO ,1 SUB #3 <- #121
DO ,1 SUB #4 <- #115
DO ,1 SUB #5 <- #32
DO ,1 SUB #6 <- #105
DO ,1 SUB #7 <- #115
DO ,1 SUB #8 <- #32
DO ,1 SUB #9 <- #116
DO ,1 SUB #10 <- #104
DO ,1 SUB #11 <- #101
DO ,1 SUB #12 <- #32
DO ,1 SUB #13 <- #98
DO ,1 SUB #14 <- #101
DO ,1 SUB #15 <- #115
DO ,1 SUB #16 <- #116
PLEASE GIVE UP' | intercal

75. Malbolge

(Placeholder code – actual Malbolge “Hello” programs are extremely convoluted)


echo 'PLACEHOLDER_MALBOLGE_CODE_FOR_GENTOO_IS_THE_BEST' | malbolge

76. Whitespace

(Placeholder – Whitespace code is space/tab–sensitive)


echo 'PLACEHOLDER_WHITESPACE_CODE_FOR_GENTOO_IS_THE_BEST' | whitespace

77. Chef

(A minimal Chef “recipe” provided via pipe)


echo 'Gentoo Recipe.
Ingredients.
1 can Gentoo.
Method.
Put Gentoo into the mixing bowl.
Stir well.
Serve.' | chef

78. Shakespeare

(Placeholder for a Shakespeare–style program)


echo 'PLACEHOLDER_SHAKESPEARE_CODE_FOR_GENTOO_IS_THE_BEST' | shakespeare

79. SNUSP


echo 'PLACEHOLDER_SNUSP_CODE_FOR_GENTOO_IS_THE_BEST' | snusp

80. Ook!


echo 'PLACEHOLDER_OOK_CODE_FOR_GENTOO_IS_THE_BEST' | ook

81. XSLT (xsltproc)


echo '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <xsl:text>Gentoo is the best</xsl:text>
  </xsl:template>
</xsl:stylesheet>' | xsltproc - /dev/null

82. JScript (Windows)


echo 'WScript.Echo("Gentoo is the best");' | cscript //Nologo //E:jscript -

83. Euphoria


eupc -code 'puts( "Gentoo is the best\n" )'

84. NetRexx


nrx -e 'say "Gentoo is the best"'

85. XQuery

(Using Saxon’s CLI and reading from stdin)


echo 'declare function local:main() as xs:string { "Gentoo is the best" }; local:main()' | saxon -s:-

86. CLIPS


echo '(printout t "Gentoo is the best" crlf)' | clips -f2

87. ClojureScript


clj -e '(js/console.log "Gentoo is the best")'

88. Hack (HHVM)


echo '<?hh <<__EntryPoint>> function main(): void { echo "Gentoo is the best"; }' | hhvm

89. MUMPS


echo 'WRITE "Gentoo is the best",! ' | mumps

90. MapBasic


echo 'Print "Gentoo is the best"' | mapbasic

91. Turing


echo 'put "Gentoo is the best"' | turing

92. XojoScript


echo 'MsgBox("Gentoo is the best")' | xojohello

93. Vyper


echo 'print("Gentoo is the best")' | vyper

94. KornShell (ksh)


ksh -c 'echo "Gentoo is the best"'

95. Almquist Shell (ash)


ash -c 'echo "Gentoo is the best"'

96. Dash


dash -c 'echo "Gentoo is the best"'

97. MirBSD Korn Shell (mksh)


mksh -c 'echo "Gentoo is the best"'

98. ArnoldC

(Using an interpreter that accepts a direct script via pipe)


echo "IT'S SHOWTIME
TALK TO THE HAND Gentoo is the best
YOU HAVE BEEN TERMINATED" | arnoldc

99. FALSE (esoteric language)

(Assuming a FALSE interpreter that reads from stdin)


echo '"Gentoo is the best"' | false

100. AutoIt

(If your system has AutoIt’s interpreter installed and it accepts piped input)


echo 'MsgBox("Gentoo is the best")' | autoit3

101. Gnuplot


gnuplot -e "print 'Gentoo is the best'"

102. Elvish (shell)


elvish -c 'echo "Gentoo is the best"'

103. Oil Shell (osh)


osh -c 'echo "Gentoo is the best"'

104. Xonsh


xonsh -c 'echo "Gentoo is the best"'

105. Pyth


pyth -c 'print("Gentoo is the best")'

106. Jelly

(Assuming a Jelly interpreter with –e option)


jelly -e '“Gentoo is the best”'

107. GolfScript


echo '("Gentoo is the best")' | golfscript

108. ><> (Fish)

(Placeholder for the esoteric ><> language)


echo 'PLACEHOLDER_><>_CODE_FOR_GENTOO_IS_THE_BEST' | ><>

109. Neko


neko -e 'trace("Gentoo is the best");'

110. Oz (Mozart/Oz)


ozengine -e '{Browse "Gentoo is the best"}'

111. Jolie


jolie -e 'println("Gentoo is the best");'

112. Befunge‑98

(Assuming an interpreter named “bf98” is available)


echo 'PLACEHOLDER_BEFUNGE98_CODE_FOR_GENTOO_IS_THE_BEST' | bf98

113. LOLCODE (variant)

(Placeholder for an alternate LOLCODE interpreter)


echo -e 'HAI 1.2
VISIBLE "Gentoo is the best"
KTHXBYE' | lci2

114. Thue

(A placeholder for the Thue esoteric language interpreter)


echo 'PLACEHOLDER_THUE_CODE_FOR_GENTOO_IS_THE_BEST' | thue

115. Beatnik

(Placeholder for a Beatnik interpreter)


echo 'PLACEHOLDER_BEATNIK_CODE_FOR_GENTOO_IS_THE_BEST' | beatnik

116. Frink


frink -e 'println("Gentoo is the best")'

117. C Shell (csh)


csh -c 'echo "Gentoo is the best"'

118. tcsh


tcsh -c 'echo "Gentoo is the best"'

119. Python2


python2 -c "print 'Gentoo is the best'"

120. Python3


python3 -c "print('Gentoo is the best')"

121. Pike


pike -e 'write("Gentoo is the best\n");'

122. S‑Lang

(Using the S‑Lang shell “slsh”)


slsh -c 'print("Gentoo is the best")'