Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
1.5k posts
 
66%
+2 −0
Challenges Bytes to Segfault

JavaScript (Node.js), 35 32 25 bytes -7 bytes thanks to @celtschk‭ with(process)kill(pid,11) Try it online!

posted 3y ago by Hakerh400‭  ·  edited 3y ago by Hakerh400‭

Answer
77%
+5 −0
Challenges Bytes to Segfault

Python 2, 13 bytes exec'+1'*5**9 Try it online! No idea why this works. Something in the Python expression parser?

posted 3y ago by Sisyphus‭  ·  edited 3y ago by Sisyphus‭

Answer
81%
+7 −0
Challenges Bytes to Segfault

C, 5 bytes main; This exploits the fact that uninitialised globals live in the .bss section, and that section is not executable. So any attempt to execute code there, regardless of content, wil...

posted 3y ago by Chris Jester-Young‭  ·  edited 3y ago by Chris Jester-Young‭

Answer
66%
+2 −0
Challenges 1, 2, Fizz, 4, Buzz!

Canvas, 24 bytes zz+¹┘%!* ‾U{ŗ3Fi⁸5Bu⁸+nO Try it here! Explanation (ASCII-fied for better monospacing): zz+¹┘%!* Helper function ⁸; Expects stack to be [modulo, string] zz+ append "z...

posted 3y ago by dzaima‭

Answer
66%
+2 −0
Challenges Bytes to Segfault

Rust 1.0.0, 58 53 52 37 bytes fn a(){#[no_mangle]static mmap:u8=0;}

posted 3y ago by moony‭  ·  edited 3y ago by moony‭

Answer
66%
+2 −0
Challenges Bytes to Segfault

C, 16 bytes m(){*(int*)m=0;} Try it Online!

posted 3y ago by moony‭

Answer
81%
+7 −0
Challenges Bytes to Segfault

Challenge Cause the currently running program to receive the SIGSEGV signal (on Linux or other *nix systems) as fast as possible. What it does with the signal doesn't matter as long as it receives...

10 answers  ·  posted 3y ago by moony‭  ·  last activity 2y ago by radarek‭

Question code-golf *nix
87%
+12 −0
Meta How do we handle standardizing things?

Code golf, being about exploiting things, often brings about many questions about edge cases. Since we don't want each challenge to have to deal with all problems again and again, it makes sense to...

2 answers  ·  posted 3y ago by dzaima‭  ·  edited 1y ago by General Sebast1an‭

71%
+3 −0
Sandbox Run-length encode a byte sequence [FINALIZED]

posted 3y ago by celtschk‭  ·  edited 11mo ago by trichoplax‭

66%
+2 −0
Meta Who should the temporary moderators be?

With equally great hesitation, I'll also throw my hat in the ring if Jo King does not respond. (If he does, I'd rather Chris be the second moderator.) I was on the PPCG SE site for a relatively lo...

posted 3y ago by Quintec‭  ·  edited 3y ago by Quintec‭

Answer
75%
+4 −0
Challenges 1, 2, Fizz, 4, Buzz!

goruby, 1 byte f Okay, so that's a bit unfair. 😂 The definition of f from golf_prelude.rb (which is what goruby embeds) is quite golfy in itself: def f(m = 100) 1.upto(m){|n|puts'FizzBuzz ...

posted 3y ago by Chris Jester-Young‭  ·  edited 3y ago by Chris Jester-Young‭

Answer
71%
+3 −0
Meta Who should the temporary moderators be?

I also endorse the nomination for Jo King. However, they have yet to accept the nomination, leaving us with zero viable nominations as of current writing. So, with great hesitation, I put my name f...

posted 3y ago by Chris Jester-Young‭

Answer
75%
+4 −0
Meta What are the rules of programming language compliance?

Regarding because the vast majority of all programs that were posted & highly up-voted there won't even compile on the most basic, compliant compiler for that language. Code Golf allows f...

posted 3y ago by Quintec‭

Answer
80%
+6 −0
Challenges 1, 2, Fizz, 4, Buzz!

C (gcc), 113 Bytes i;main(){while(i++<100){char*h[]={"%d "," "},**p=h;i%3||(*p++="Fizz%2$s");i%5||(*p="Buzz ");printf(*h,i,h[1]);}} This compiles with several warnings, but no errors. Here'...

posted 3y ago by celtschk‭  ·  edited 3y ago by celtschk‭

Answer
70%
+5 −1
Meta What are the rules of programming language compliance?

If there exists something (reasonable) that can run it, it's valid. This includes obscure, non-standards-compliant compilers (though this should be specified in the answer if needed). So any poste...

posted 3y ago by dzaima‭

Answer
60%
+1 −0
Sandbox Point Game KOTH

posted 3y ago by Quintec‭  ·  edited 3y ago by Quintec‭

77%
+5 −0
Meta What are the rules of programming language compliance?

Code Golf seems like a fun idea to me, since I'm a programmer by trade and "language lawyer" nerd as a hobby. But every time I checked the code golf site on SE, I dismissed it as nonsense, because...

2 answers  ·  posted 3y ago by Lundin‭  ·  last activity 3y ago by Quintec‭

Question support discussion
71%
+3 −0
Challenges 1, 2, Fizz, 4, Buzz!

Japt -R, 28 bytes Lõ@"Fizz"pXv3)+"Buzz"pXv5)ªX I spent a long time playing with wizardry string/array slicing. It did not work out. This solution just repeats "Fizz" and "Buzz" if divisible. T...

posted 3y ago by Quintec‭

Answer
77%
+5 −0
Challenges Partial Sums of Harmonic Series

Python 3, 35 bytes f=lambda x,i=1:x>0and-~f(x-1/i,i+1) Try it online! Subtracts each 1/i in turn from the initial value until the result is no longer positive.

posted 3y ago by xnor‭  ·  edited 3y ago by xnor‭

Answer
75%
+4 −0
Challenges 1, 2, Fizz, 4, Buzz!

JavaScript (Node.js), 64 bytes for(n=0;101>++n;)console.log([['Fizz'][n%3]]+[['Buzz'][n%5]]||n) Try it online!

posted 3y ago by Hakerh400‭

Answer
66%
+2 −0
Challenges 1, 2, Fizz, 4, Buzz!

Vyxal Hj, 10 bytes ƛ₍₃₅kF½*∑∴ Try it Online! Vyxal has gotten a whole lot better since first posting this. Explained Very simply, this is: for each item in the range [1, 100], create the lis...

posted 3y ago by lyxal‭  ·  edited 3y ago by lyxal‭

Answer
66%
+2 −0
Meta Should sandbox posts give rep?

Could it be possible to change the amount by which an upvote changes the rep? For example, a sandbox vote could be 1 rep, meaning that if you had a good idea you would still get rep, but it wouldn'...

posted 3y ago by Dion‭

Answer
84%
+9 −0
Challenges 1, 2, Fizz, 4, Buzz!

The task Output the first 100 elements of the infamous FizzBuzz sequence. How? The FizzBuzz sequence is the sequence of decimal integers from 1 to 100 inclusive, but: If the integer is divisi...

20 answers  ·  posted 3y ago by Dion‭  ·  last activity 2y ago by celtschk‭

71%
+3 −0
Challenges Tile pyramids on top of each other!

AppleScript, 264 bytes Sue me. It works. set n to text returned of (display dialog "" default answer "") as number set o to "" repeat with i from 1 to n repeat (n-i) times set o to o...

posted 3y ago by DonielF‭

Answer
77%
+5 −0
Challenges Partial Sums of Harmonic Series

AppleScript, 178 bytes set n to text returned of (display dialog "" default answer "") as number set k to 0 set h to 0 repeat set k to k + 1 set h to h + (1 / k) if h >= n then exit repea...

posted 3y ago by DonielF‭

Answer