Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 46231

Code-golf is a competition to solve a particular problem in the fewest bytes of source code. If you want to score by characters instead of bytes, please state this explicitly in the challenge. If source code length is not the primary scoring criterion, consider using another tag instead.

1
vote
Python3 → Go, 89 bytes print('package main;import"fmt";func main(){a()};func a(x int)int{fmt.Println(x+'+input()+')}') also a full program which compiles/runs with any of go build, go install or go …
answered Nov 21 '15 by cat
1
vote
Mouse-2002, 34 bytes I'm proud that lil' ol' Mouse, first implemented in 1979 and the most recent iteration updated Aug '07 (excluding the one by me), can do so well! :') (x.501<^x.d\[x.!J!'|"bzzt!" …
answered Dec 14 '15 by cat
1
vote
Mouse-2002, 23 bytes ??"A"["B"|"C"["D"|"E"]] Switches on two inputs, which each should be either 0 for false or anything else for true. Ungolfed, as a function: #Y,?,?; $Y 1% a: 2% b: "A" a …
answered Feb 19 '16 by cat
7
votes
C, 95 94 93 89 78 90 89 76 75 bytes #include<stdio.h> main(){for(FILE*f=fopen("a","w");;fputc(0,f),fclose(f));} Again, sudo watch -n1 lsof -p `pidof inf` seems to say this is valid. HOW DID I …
answered Apr 1 '16 by cat
6
votes
CPython 3.5, 33 16 bytes while 1:open("a") Yes, really. :D
answered Apr 1 '16 by cat
1
vote
Factor, 73 bytes USING: io.files io.encodings [ 0 "a" utf8 set-file-contents ] [ t ] while Sets the file contents to the nul byte forever.
answered Apr 3 '16 by cat
1
vote
Go → LOLCODE, 192 bytes package main;import."fmt";func main(){a:="";Scanln(&a);Println("HAI1.3\nHOW IZ I ADDIN YR X\nI HAS A VAR\nVAR R SUM OF X AN "+a+"\nVISIBLE VAR\nIF U SAY SO\nKTHXBYE")} the …
answered Nov 21 '15 by cat
1
vote
Go → Python (any version), 109 bytes package main;import"fmt";func main(){var a string;_,_=fmt.Scanln(&a);fmt.Println("def a(x):\n return x+"+a)}
answered Nov 21 '15 by cat
1
vote
Factor, 19 bytes 1 iota [ 0 / ] each Fails with 0 division error after 1 run.
answered Dec 24 '16 by cat
1
vote
Python 3, 100 79 bytes x=lambda x:x(x) while x: try:x(x) except BaseException:pass Note: this doesn't freeze my IDLE or my machine, nor does it hog lots of memory: it just occupies (more th …
answered Oct 19 '15 by cat
2
votes
Mouse-2002, 2 bytes () ( begins a loop; ) ends it; there's no ^ so it never breaks.
answered Dec 14 '15 by cat
0
votes
Perl 6, 7 bytes loop {} but... > loop{} ===SORRY!=== Error while compiling <unknown file> Whitespace required after keyword 'loop' at <unknown file>:1 ------> loop⏏{;} k.
answered Jan 25 '16 by cat
1
vote
Factor, 15 bytes Yea, Factor is verbose. [ t ] [ ] while Do nothing forever. Hangs the Listener.
answered Mar 20 '16 by cat
1
vote
Go, 93 bytes Terribly long. package main import ."fmt" func main(){p:=Println a:="" Scanln(&a) if a=="1"{for{p(a)}} p(0)}
answered Dec 1 '15 by cat
1
vote
Mouse-2002, 8 bytes (?^(b!)) == while input(): print(1)
answered Dec 15 '15 by cat

15 30 50 per page