Skip to main content
46 events
when toggle format what by license comment
Mar 17 at 10:08 comment added mousetail 'he-him' @JoKing It should work in ><> already right? # will reverse then ~ will pop from an empty stack thus exiting the program
Mar 5, 2023 at 16:09 history edited The Thonnu CC BY-SA 4.0
Add Thunno
Aug 29, 2021 at 3:37 history edited emanresu A CC BY-SA 4.0
added 72 characters in body
Jun 2, 2021 at 16:33 history edited Makonede CC BY-SA 4.0
added 86 characters in body
Jan 12, 2018 at 1:52 comment added Jo King Works with ><>. If you move the @ to somewhere before the ,, it also works in Befunge-93. No way to make it work with 98
Jan 10, 2018 at 20:00 history rollback caird coinheringaahin g
Rollback to Revision 11
Jan 10, 2018 at 18:49 history edited qqq CC BY-SA 3.0
added 16 characters in body
Nov 17, 2017 at 19:06 history edited MD XF CC BY-SA 3.0
added 40 characters in body
Nov 17, 2017 at 19:01 history edited MD XF CC BY-SA 3.0
add links, RK, rearrange a bit
Apr 23, 2017 at 16:16 comment added user41805 I believe this should be made into a community-wiki
Apr 13, 2017 at 12:39 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Mar 2, 2016 at 3:18 history edited cat CC BY-SA 3.0
formatting + more langs
Nov 18, 2015 at 22:31 comment added LegionMammal978 If an extra " is added at the end, it also works in Mathematica.
May 17, 2014 at 6:20 comment added Johannes Kuhn but only if the current pos is not 0 at this point.
May 16, 2014 at 16:52 comment added Cole Tobin How is this valid BF? Extracting out only the BF instructions, we get [,.] which infinitly prompts for input and outputs it. So, if I input A, it will print A and then ask again. However, your code contains an A. Or am I missing something here?
May 5, 2014 at 17:08 comment added Aaron Davies q/k version is / !"#$%&'()*+,-.0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
May 5, 2014 at 16:12 history edited aditsu quit because SE is EVIL CC BY-SA 3.0
fixed typo
Apr 11, 2014 at 5:39 comment added Paul Draper @msb, the OP would have said The shortest code to do this in every language wins.
Mar 27, 2014 at 15:02 comment added A.L Is it as polygot or a polyg_l_ot?
Nov 23, 2013 at 5:47 comment added Iszi Works in PowerShell.
Sep 4, 2013 at 0:27 comment added msb @JoeZ. I know, just kidding, trying to bend the interpretation of the definition to favour the most creative answer IMO. ;-)
Sep 1, 2013 at 5:00 comment added Joe Z. @msb By "any" language, I mean "the language of your choice".
Aug 27, 2013 at 23:33 comment added msb "The shortest code to do this in any language wins." For the lack of a code that works in any language, this entry should win, since it's the code that works in the greatest number of languages. ;-D
Aug 24, 2013 at 11:31 history edited Johannes Kuhn CC BY-SA 3.0
added 12 characters in body
Aug 23, 2013 at 17:59 comment added ugoren @marinus, You're right. The line itself comiles, but it isn't enough.
Aug 23, 2013 at 17:32 history edited Johannes Kuhn CC BY-SA 3.0
added 38 characters in body
Aug 23, 2013 at 17:15 comment added Doorknob Works in Python too (because it uses # for comments like Ruby and Perl)
Aug 23, 2013 at 17:11 comment added John Dvorak also, count in golfscript
Aug 23, 2013 at 17:09 comment added Joe Z. @ Johannes Kuhn: It wasn't a polyglot when I first saw it. (Tcl only at first :P) But now I see what you mean.
Aug 23, 2013 at 17:09 comment added marinus @ugoren: No it won't, you need to define a main() function or it will not compile.
Aug 23, 2013 at 17:00 history edited Johannes Kuhn CC BY-SA 3.0
added 127 characters in body
Aug 23, 2013 at 16:56 comment added ugoren In C, #undef X;whatever junk you want works.
Aug 23, 2013 at 16:51 history edited Johannes Kuhn CC BY-SA 3.0
added 37 characters in body
Aug 23, 2013 at 16:50 comment added John Dvorak Count Ruby as one where this works. Also, coffeescript (I think)
Aug 23, 2013 at 16:43 comment added marinus I fed this into the GNU Fortran compiler and it segfaulted.
Aug 23, 2013 at 16:39 comment added Johannes Kuhn C/C++ is not on the list (a comment would require // or /* */)
Aug 23, 2013 at 16:38 comment added John Dvorak This will do weird stuff in C/C++
Aug 23, 2013 at 16:36 comment added John Dvorak @marinus it suffices to put it after the hash
Aug 23, 2013 at 16:35 comment added marinus @JohannesKuhn: that's what I meant by putting [] on the outside.
Aug 23, 2013 at 16:32 comment added Johannes Kuhn Well, I have to skip the output (.) and input (,) so it will do nothing in brainfuck.
Aug 23, 2013 at 16:31 comment added Johannes Kuhn No. I have an output (.) in it. Wait...
Aug 23, 2013 at 16:29 history edited Johannes Kuhn CC BY-SA 3.0
added 82 characters in body
Aug 23, 2013 at 16:28 comment added marinus If you put the [] on the outside it will "work" in brainfuck too.
Aug 23, 2013 at 16:26 comment added Johannes Kuhn No, but this is a polygot. I don't want to destroy that.
Aug 23, 2013 at 16:21 comment added Joe Z. Yes, but can you make it shorter?
Aug 23, 2013 at 16:21 history answered Johannes Kuhn CC BY-SA 3.0