« first day (1757 days earlier)      last day (3086 days later) » 

11:00 PM
yes
 
what exactly is not the same?
 
from turtle import*
def D():fill(1);fd(100);rt(90);fd(200);rt(90);fd(100);rt(90);fd(200);rt(90);fill(0)
lt(180)
fillcolor("#0055a4")
D()
fillcolor("white")
goto(100,0)
D()
fillcolor("#ef4135")
goto(200,0)
D()
from turtle import*
def D():
     fill(1)
     fd(100)
     rt(90)
     fd(200)
     rt(90)
     fd(100)
     rt(90)
     fd(200)
     rt(90)
     fill(0)
lt(180)
fillcolor("#0055a4")
D()
fillcolor("white")
setpos(100,0)
D()
fillcolor("#ef4135")
setpos(200,0)
D()
 
@TanMath What do you mean? It's literally two different pieces of code
 
^
They might do the same thing, but it's literally not the same code.
 
2 mins ago, by VoteToClose
It's ungolfed*
2 mins ago, by VoteToClose
It's ungolfed*
 
11:01 PM
Doesn't matter!
 
so?
 
The test link should prove that the golfed version works, not the ungolfed one.
10
 
so.. the only difference is the function is on one line for the code in the answer, and in the link, it is on several lines... any other differences?
 
Ungolfed means it isn't the same code.
 
No one cares if the ungolfed code works, because it's not the code that determines your score.
10
 
11:02 PM
^
 
@TanMath I wasn't arguing your case. XD I was just saying that's what you meant.
 
ok.. you guys are making a big deal.. i will fix it.. but it is pretty much exactly the same...
 
... um, no, it's not exactly the same
 
@Doorknob xD I just realized you were the one that asked it.
 
Since in general it's impossible to prove the two pieces of code are functionally equivalent, the only way to convince people that your golfed code works is by letting them test that code and nothing else.
 
11:03 PM
@TanMath If we aren't testing the code exactly as you posted it, what's the point in testing it?
 
We're just trying to ensure that everyone here is playing by the same rules. Code should be tested and work for all test cases specified by the OP, and if someone wants to try the code, they should be trying the code that determined your score.
 
fine.. fixed it...
I just don't see how it cannot be inferred that the golfed version will work...
 
because what if it doesn't?
 
No inferences can ever be made here. :P
 
That's not the point @TanMath
 
11:05 PM
The point is it shouldn't be inferred.
 
any other reasons for the negative response?
 
It should be objectively verifiable.
 
0
A: Sandbox for Proposed Challenges

Sparrcoreutils default behavior stdin/stdout We have a lot of challenges to implement just one of these operations, but a lot more are missing. Instead of adding a challenge for each of them, I thought I'd see if I could make a multiple-holes challenge that's complex enough to inspire some code re-us...

 
@TanMath One downvote ≠ hate.
 
11:06 PM
^
 
Your code is tending towards the positive.
I wouldn't worry about it. c:
 
@VoteToClose I didn't say that.. I said that why do people want to delete it, and why does everybody think it doesn't work?
 
@VoteToClose so?
 
He's showing you that everyone gets downvotes ;)
 
11:07 PM
I have two downvotes in mine too @VoteToClose
It's only -2; if your code is right don't let it discourage you.
 
@AlexA. that's not true. there are many types of golfing that are still the same code. superfluous whitespace, comments, etc
I posted a marbelous answer recently that still had its padding
 
@TanMath Who said they wanted it deleted? Plus, the comment saying it didn't work is old.
 
because, for once, the padding was all superfluous
 
@TanMath The delete vote occurred when the post was in review. That was when the code didn't work at all. You've since fixed it but the person who voted likely hasn't checked back to see if it's fixed.
 
@VoteToClose first, it was upvoted once, i fixed it, then it was upvote two more times.. why?
@AlexA. oh.. ok...
 
11:09 PM
@Sparr IMO that makes it different code. If the source bytes are not exactly the same, it isn't the same code. (Like I said, at least IMO)
 
At least 10 out of 13 people liked it, right? (:
 
@MartinBüttner pick a compiled language. if the code compiles to the same machine instructions, I'll take that as proof that it's equivalent code
 
Right, that's not what I'm saying though. Equivalent ≠ same.
 
@Sparr The burden of proving the answer works should be on the answerer.
 
11:10 PM
@AlexA. actually you just plain can't undo delete votes (IIRC)
 
Oh, okay.
 
now everybody is going to post pics of their downvotes!
 
@MartinBüttner sorry, I meant the above for you, re proof of equivalent code
 
Goodbye
 
Bye!
 
11:12 PM
@SuperJedi224 bye!
 
for an interpreted language... any source that the interpreter skips, without reading, I'm willing to ignore in comparing code for same-ness
that would include end-of-line comments in most such languages, I think
 
@Sparr I said "in general" ... Of course you can also solve the halting problem for a very large (infinite) subset of programs. ;)
 
@Sparr In some languages, carelessly constructed comments can change the behavior of the program. For example, comments in SAS that use the *; syntax are still evaluated, so any unmatched brackets or quotes will ruin the code that follows after the comment.
(I realize that's a rather isolated case though)
(Also PSA: Don't use SAS)
 
sure. those don't qualify for my "text the interpreter skips without reading" clause
 
Oh right
 
11:14 PM
@Sparr text?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I said source the first time
 
@Sparr about that... There's a fairly strong consensus on meta that unnecessary whitespace should be removed if it isn't to be counted
 
when the marbelous interpreter encounters a "#" that isn't the first character of a line, it immediately jumps to the next line, not bothering to do anything with the contents of the comment
 
@MartinBüttner link? I'll weigh in.
 
@MartinBüttner I think the most common exception I've seen to that is newlines. I've seen a lot of answers where every newline was superfluous, only included to avoid the code being a solid block of text for no reason.
 
@Sparr I'm on mobile and the search in the app didn't seem to find all questions
@Sparr the reason is that occasionally some of the whitespace is necessary, and those might be overlooked if you just say "whitespace is unnecessary"
 
sure. I'm only referring to cases where it's all unnecessary.
 
coding in pyth isn't that hard compared to stack-based languages
 
I've only ever posted one marbelous answer with ungolfed whitespace, because that was the only time I didn't have any necessary whitespace
and I have no qualms about putting newlines after every ; in my perl code
 
11:19 PM
18
A: How are line breaks and formatting counted for code golf challenges?

Martin Büttner(This answer is quite similar to Pietu's but a bit stricter on the first question.) Count the code as posted. If there is unnecessary whitespace, remove it. This makes it easier for everyone else to check your score. For someone who doesn't know your language it can be hard to tell which spaces...

 
> coding in pyth isn't that hard AHEM
 
@VoteToClose it isn't!
 
@TanMath I like tape-based languages.
 
I just can't memorize all of the functionality in pyth
 
@Sparr the issue obviously isn't with the cases where it works. The problem is, if it's common practice, the cases where it doesn't work will slip through the cracks.
 
11:21 PM
Stack based languages are difficult for me to wrap my head around.
 
@Sparr it is why there is a command reference in the online compiler
 
@AlexA. See: Vitsy.
 
@AlexA. I feel the same.
 
@TanMath that doesn't help when I don't know that what I'm looking for exists
 
@Zgarb But point-free syntax like J is also hard for me to wrap my head around, whereas you rock it. :)
 
11:23 PM
@Sparr but then there's @Dennis !
 
Stack-based languages are not that hard! (╯°□°)╯︵ ┻━┻
2
 
@VoteToClose Do you need help with the stack?
 
@VoteToClose what is so special about Vitsy?
 
No. XD
 
@AlexA. agree!
 
11:23 PM
@TanMath It's my child.
 
@VoteToClose so?
 
So he had a baby
 
@VoteToClose If/when you have an actual, biological child...name it Vitsy. :P
 
@TanMath ಠ_ಠ
 
Please don't
 
11:24 PM
@El'endiaStarman That's the plan. :D
 
That poor child...
 
...I was joking! o_o
 
I wasn't. :D
 
I once saw a person whose actual name was Harry Butts.
 
11:24 PM
I have a friend named Ben Dover.
 
Ouch
 
Harry Bo?
Anne Teak?
Toby Lerone?
 
@AlexA. They feel closer to mathematical notation and function composition...
 
Mavus Bahr?
 
@AlexA. D: ... Alex has a Deathnote
 
11:25 PM
I have a friend named John Smith
Legit
 
@MartinBüttner what
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Did/will he marry a woman named Jane Doe?
 
@El'endiaStarman XD
He's 12
 
Plenty of time!
 
> Mohammed Lee
 
11:26 PM
My favorite is this kid:
user image
4
Such a baller name
 
Instant meme too.
 
Yup.
 
@AlexA. en.m.wikipedia.org/wiki/Death_Note ... At some point he sells his soul to that death spirit which gives him the power to see people's names floating above their heads
 
spoilers
 
11:29 PM
You know what the worst thing about stack-based languages is? Making them object oriented. shudders
 
@MartinBüttner So you're saying now I can put Harry Butts to rest since I know his name and face?
 
If you actually have a death note, yes.
 
Sweet.
More unfortunate name ^
 
0
A: Back to the chemistry class

TanMathPyth, 69 bytes*0.9 = 62 bytes Js>z+xz"H"1;++++++"2"z%" + %d"-*J1.5 2"O2"%" > %d"J%"H2O + %d"-J2"CO2 It is just like xnor's answer, where I use the H values. A variable J is used to store the amount of H's in the molecular formula of the molecule.

My newest answer works!
now on to Seriously!
 
@Doorknob I'm so tempted to upvote your first Perl golf but I can't in good conscience upvote Perl...
4
 
11:32 PM
i gota go... bye!
 
Bye
The Perl hate is real in this room.
 
the chat goes quiet to admire the perl hate
 
> So you see, I hate perl. I hate software developers. I really wish you would all grow up and learn how to be the professionals we pay for.
Whoa
Shots fired
 
^
My first reaction was O_O
DAMN SON.
 
11:37 PM
*Dam son
 
I have officially made the longest CJam program known to me: codegolf.stackexchange.com/a/64474/36670
 
When you're only 50 from Java, you know you're having a bad golfing day.
 
ikr
 
I've seen longer CJam
 
@GamrCorps you officially haven't
 
11:40 PM
Dennis' CJam World Big Dosa is longer IIRC
 
I stand corrected.
 
And those are big because strings...
 
true...
 
Check Dennis's profile and click the link to his master piece.
 
@GamrCorps This is the longest CJam program I've written, not counting any strings:
27
A: Rearranging Words

DennisCJam, 58,598 58,494 57,898 57,772 57,704 57,680 moves This approach takes the family of all unordered sets of horizontal moves of minimum cardinality (with some false positives) and adds the minimum number (over all sets) of vertical moves required to avoid superpositions. If the resulting numb...

 
11:41 PM
Ninja'd
 
(ninja'd)
 
ninja'd
 
And ninja'd again. :P
 
And I even had time to find the answer and check how big it was... on mobile! ;)
 
11:42 PM
If you want to make a long CJam answer, do this question:
13
Q: String to ASCII Art Text

VoteToCloseThe Task You are to write some ASCII Art Text as seen from this website for generating ASCII art! Rules Input will only be alphabetical text and spaces, and will be input as a single line. It is also case-insensitive. You needn't fix if the output text is longer than the terminal width. As lo...

 
@MartinBüttner same
 
@VoteToClose That's still on my to-do list.
 
@VoteToClose I'm still working on the minecraft version.
 
The current shortest is 1898. XD Beat it, @Dennis!
@GamrCorps Wait, really? :D
 
@VoteToClose Yes. (I am cheating a little bit though, You cant concat strings in Minecraft)
 
11:45 PM
I had a nice idea, until I realized not all characters have the same width.
 
Don't care if you're cheating - I'm bountying it if you do it. XD
 
Can anyone test this out on mobile?
 
@VoteToClose the hardest part is converting the big letters to JSON, it takes be a two or three minutes each. Other than that It is pretty trivial, I just have to get input working properly.
 
Now, if we count deliberately long CJam programs:
2
A: The Bowlers-Golfers Fraction War

DennisCJam, 7.2 × 102749 ",,,",',i',i#b:c~ The string actually contains 71,977,450,361,355,315,992,360,969,988,213,149,200,204,184,332,638,146,103,031,449,000,217,723,511,280,368,665,013,339,528,771,766,887,824,796,288,426,257,854,147,770,889,598,299,420,336,641,870,147,247,857,501,229,452,898,675,5...

 
11:46 PM
@GamrCorps Using named entities or via hard-coding?
I'd allow hard-coding.
 
But thats not fun...
 
Named entities ftw
 
@VoteToClose iOS or Android?
 
@GamrCorps Saving " bottles of beer on the wall.

" in a variable should help a lot.
 
11:48 PM
@VoteToClose I should be done by tomorrow. But don't quote me on that.
 
@Calvin'sHobbies I'd vote for 2D and stack-based if I could...
 
@Dennis thats a good idea. I'll try that later, I'm golfed out after that...
 
Okay guys. or ?
1
A: Sandbox for Proposed Challenges

El'endia StarmanPacking Circles graphical-output (code-golf or code-challenge) (Image source) Notice how the pipes in this image are packed in a hexagonal pattern. It is known that in 2D, this is the most efficient way to pack circles (in the sense that the circles occupy the greatest proportion of the avai...

 
@phase Android - sorry, got distracted.
@TheDoctor ...why did you send me this?
@GamrCorps \o/ Worst bit is byte counting.
 
@VoteToClose hot dogs :P
 
11:51 PM
@VoteToClose crap.... forgot I have to count the bytes.... add on 2 hours to my prediction....
@Calvin'sHobbies So theoretically if someone's favorite golfing language was Java, then would they be allowed to vote?
 
@Calvin'sHobbies I'd like them functional, like J.
 
@GamrCorps sure
 
What is a good vote count in the Sandbox?
 
Is 3 a "oh man I should post this"?
 
11:55 PM
Yes.
I normally post on -1. :D
 
As I see it, people do sandbox votes based on how much the like the problem presented in the challenge, not how clear the challenge is.
Comments are the other way around.
 
Two of my sandbox challenges got to +8 (Calculate Phi (not Pi)) and +9 (Black and White Rainbows) before I got around to posting them. Three days for both, in fact.
 
3
A: Sandbox for Proposed Challenges

phaseTrump needs your help to stop the Starman! A man from the stars has come to Earth! Luckily the president of the United States, Donald Trump, has an infinity-sided die. Using this die, he can conjure up a number which you, the mayor of Podunk, must use to determine who should be sent to stop the ...

 
1
A: Shortest ><> numbers

VoteToCloseVitsy, 30 28 Bytes (invalidated by new rules, here for reference) Method shamelessly given by DanTheMan's solution. Db/)[N;]Df1+/)['W'+O;]d3*D{Z Db/)[N;] If the number is less than 10, output its decimal representation and exit. Df1+/)['W'+O;] If the number i...

 
I have, I think, three challenges at +2.
 
11:57 PM
sigh New rules invalidated my answer.
 
@El'endiaStarman But PhiNotPi and pretty pictures are popular topics. People can like them without reading every detail and upvote accordingly
 

« first day (1757 days earlier)      last day (3086 days later) »