Search Results
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 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
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 |
Code-golf is a competition to solve a particular problem in the fewest bytes of source code.
2
votes
Shortest infinite loop producing no output
Minim, 4 Bytes
C--.
Decrements the program counter, which is incremented back to 0 after the statement finishes.
GitHub Repository
2
votes
Scream very loudly
Minim, 10 Bytes
$<65.C=-1.
With whitespace and comments:
$< 65. ; Print 65 as unicode 'A'
C = -1. ; Set program counter to -1 (advances to 0 afterwards)
GitHub Repository
2
votes
Make your code error, but only sometimes!
Minim, 6 Bytes
[R*S].
Accesses memory at index RandomNumber times MemorySize.
R is between 0 and 1 inclusive, and S is the memory scope size in elements. If R = 1, then the index will be out of bound …
3
votes
Print a 10 by 10 grid of asterisks
Minim, 42 37 35 Bytes
New solution halts by checking if [0] > 99.
$<42._^++[0]%10.$<10._^[0]>99.C=-1.
With whitespace and comments:
$< 42. ; Print 42 as unicode '*'
_^ ++[0] % 10. ; Increment …
2
votes
"DDoouubbllee ssppeeaakk!!"
Minim, 73 Bytes (44 w/o Output)
Program is run as follows:
C:\Users\chris> minim -a "Double speak!" -f golf.min
Arrays of values, and subsequently strings, cannot be returned or passed around to stat …
2
votes
List of possible birth years of living humans
Minim, 49 Bytes
Program is run as follows:
C:\Users\chris> minim -f golf.min
Golfed:
[]="xyear".\<1.\>[1].#<[1]--i.$<32._^!--[0].C-=4.
With whitespace and comments:
[] = "xyear". ; Insert the strin …
4
votes
Lolololololololololololol
Minim, 41 39 Bytes
New solution prepends 3 to the string, saving 2 bytes:
[]=3&"loL".$<[[0]--].[0]=[0]?[0]:2.C=0.
With whitespace and comments:
[] = 3 & "loL". ; Inserts the value 3, and the str …
2
votes
"Hello, World!"
Minim, 44 43 42 Bytes
New solution uses the Carriage Return escape character '\r', saving 1 more byte:
[]="\r!dlroW ,olleH".$<[[0]--]._^![0].C=0.
Thanks to @stasoid for the incidental? realization!
W …