Skip to main content
added 46 characters in body
Source Link
emanresu A
  • 44.2k
  • 5
  • 100
  • 240

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)
  • cat

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)
  • cat

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)
  • cat

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

added 10 characters in body
Source Link

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)
  • cat

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)
  • cat

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

added 69 characters in body
Source Link
user85052
user85052

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • ResourceResource (although this outputs the string reversed)

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

Polyglot of purely literal answers, 9 bytes

333111222

This is a community wiki post for collecting answers that are just a literal that the language in question prints out automatically. Because it's a community wiki, feel free to edit it to add more languages where it works.

This program works in:

  • PHP
  • HTML (arguably not a language)
  • Jelly (and M)
  • 7 (more interesting, because the program's interpreted as both data and code; the first 3 prints the data, the rest of the program is useless stack manpulation)
  • CJam
  • Japt
  • Carrot
  • R (the R display also outputs [1] as metadata)
  • RProgN
  • Actually (though it actually prints 2\n2\n2\n1\n1\n1\n3\n3\n3\n)
  • ///
  • Noodel
  • TI-Basic
  • SimpleTemplate
  • ReRegex
  • Husk
  • Resource (although this outputs the string reversed)

Ignoring the final newline, this is valid in quite a few more languages:

Most links go to Try It Online!

Obviously works in Resource
Source Link
user85052
user85052
Loading
nvm
Source Link
Sara J
  • 3.8k
  • 17
  • 36
Loading
Also works in Ink
Source Link
Sara J
  • 3.8k
  • 17
  • 36
Loading
added Husk
Source Link
Unrelated String
  • 23k
  • 3
  • 32
  • 55
Loading
added 59 characters in body
Source Link
Weijun Zhou
  • 3.7k
  • 13
  • 41
Loading
oops: Q specifies programs only, no functions
Source Link
msh210
  • 3.5k
  • 21
  • 36
Loading
added 28 characters in body
Source Link
msh210
  • 3.5k
  • 21
  • 36
Loading
added 56 characters in body
Source Link
ATaco
  • 11.2k
  • 28
  • 78
Loading
Added R
Source Link
Loading
Added my language (edit it out if anyone wants)
Source Link
Ismael Miguel
  • 7.9k
  • 2
  • 25
  • 38
Loading
added 13 characters in body
Source Link
Timtech
  • 12.6k
  • 2
  • 45
  • 61
Loading
added 62 characters in body
Source Link
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282
Loading
added 30 characters in body
Source Link
tkellehe
  • 626
  • 6
  • 8
Loading
added 61 characters in body
Source Link
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282
Loading
added M and Pip
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240
Loading
actually works in any version of m4
Source Link
user62131
user62131
Loading
Add RProgN, Actually, MATL
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240
Loading
added 11 characters in body
Source Link
user41805
  • 13.2k
  • 6
  • 42
  • 88
Loading
added Japt and Pyth, rearrange for clarity
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240
Loading
added 55 characters in body
Source Link
zeppelin
  • 8.5k
  • 3
  • 21
  • 42
Loading
added Carrot
Source Link
user41805
  • 13.2k
  • 6
  • 42
  • 88
Loading
added 103 characters in body
Source Link
briantist
  • 3.3k
  • 15
  • 21
Loading