« first day (2253 days earlier)      last day (2590 days later) » 

8:01 AM
no, because it doesn't even accurately represent the first significant digit of the result
 
the first s.d. is 1, 1000 starts with 1
 
significant digits don't just have a value, they also have a place. the first s.d. of 10000 is 10^4... the first s.d. of 1000 is 10^3.
following your argument the placement of the decimal point would be arbitrary for all values
by your argument 12.34 and 0.0001234 are accurate representations of one another up to the fourth significant digit
 
I see.
ok, then that explanation paragraph is good to go
 
I can't believe how g++ with -Wall doesn't even emit a warning when I return something in a void function.
 
8:20 AM
@MartinEnder thanks for the patience to explain it to me. Learning something (or understanding sth better) every day here.
Wiki is great and all, but for the small details TNB is the place to go :)
 
@feersum Works for me.
 
Mine's a somewhat old version I suppose.
 
I have 5.4
 
5.2
Oh, mine also returns a warning in C. Not in C++.
 
@seshoumara no problem. the issue is clearer when using scientific notation. then the expected output would be 1.000e5 but yours is 1.000e4, and if you say that something needs to be accurate to x s.d. then in any case, the exponents of the scientific notation must match.
 
8:26 AM
right. Small detail, don't you mean 1e4 and 1e3 instead?
 
oh right, of course
 
8:41 AM
ok finally found a DAW I can use
@MendeleevLemon I will make music and stuff too!
 
9:02 AM
Is there a challenge where you have to add more than two integers?
Like, an arbitrary amount?
 
can't remember one
Though if you do that it might be good to forbid built-ins that automatically work for that, an only allow those that work for 2 integers
 
I don't want to make the challenge, I just want to submit an answer :P
 
I, for one, think a challenge should be more than the sum of its parts.
 
@mınxomaτ slow clap
@WheatWizard Is it possible to turn something like this:
5 0 2 3 0 1 -3 -2
Into this?
5 -1 2 3 -1 1 -3 -2 2
Where the 0s are turned into -1, and the 2 on the end signifies how many zeroes there were
 
9:26 AM
Well betseg likes it
 
9:53 AM
@HyperNeutrino thanks
Yes! 500+ rep! That makes me happy
Now you can't give all of my rep away in a bounty :P
 
10:17 AM
New challenge idea: unbeatable chopsticks bot
Would it be ok?
 
0
Q: Unary representation of floating-point numbers

Kritixi LithosWhen the Find the inverse of a number 1/x challenge has been posted, the author posted a bounty for the shortest Retina submission. After that, there was a bounty for sed, another text/string-based language. Since the challenge requires I/O with floating-point numbers, this brings forth a questio...

 
@betseg The only problem is stalemates
 
@KritixiLithos The bot must either win or continue, I don't think stalemates are a problem
 
10:36 AM
In my human games, the games almost never end if we both played good
But then again, bots aren't humans
 
As I said, the game can be infinitely long but the bot may not lose
 
I just remember doing probability in math class for events that occur infinite times
 
How will you do something in a shorter time than Planck time to do something infinite in a finite time?
 
Nanotechonology?
 
You can get largely big but you can't reach infinity
 
10:47 AM
we don't know
Maybe not in the 3rd dimension, but maybe in another one
wormholes, time-bending structures, ...
 
@KritixiLithos TIL nanotechnology = Magic
 
11
Q: Let's Play Hide and Seek!

JKonowitzThe user will hide, and the computer will try to find them. First, the program will take an input, for the size of the grid. Like 5x5, 10x10, 15x15, etc. The grid won't always be a perfect square. The grid is sort of like a chessboard: _______________________________ | | | | | ...

@SIGSEGV I see you're commenting on this challenge
is it correct that the optimal first choice of location for the 5x5 board is not C3 but B2?
(or one of the four reflections/rotations of it)
 
11:03 AM
@orlp Depends
 
no it doesn't depend, I'm assuming an uniform distribution of hiding spots
there's an objective answer
 
Hmm, then it would be better than C3
 
11:21 AM
@SIGSEGV yep, optimal choice is (1, 1), not (2, 2)
 
@orlp But It is not clear if whether moving block-by-block or minimax is better
 
@SIGSEGV what is moving block by block?
also minimax is not optimal in average case
 
0
Q: Who won the game?

Tom291Task Everyone knows the game "Tic-Tac-Toe". Your task is it, to evaluate an ascii tic-tac-toe matchfield. Your Programm/Function should output/return the winner: O, X or nobody (N). Pattern X|O|X O|X|O O|O|X In this case your programm/function should output/return 'X' Rules Input can come...

 
@SIGSEGV that's the optimal choice function
it's recursive
if w, h == 1, we find the answer to be (0, 0) in 0 steps
if not we enumerate all possible guess positions
oops it's not correct
 
user165474
12:13 PM
What's the consensus on editing someone's post and drastically changing the code (shortening it) instead of commenting?
 
@SIGSEGV actually I made a mistake, for 5x5 (1, 1) and (2, 2) are the same
 
@HyperNeutrino You could post your own answer instead, with attribution. codegolf.meta.stackexchange.com/questions/11710/…
 
@HyperNeutrino reject it
 
user165474
@SIGSEGV I ran across one on your post, and I rejected it prior to asking. Does the reason "It changes the original intent" the right reason?
 
12:28 PM
Yep
 
user165474
Thanks
 
user165474
Someone rejected it under "causes harm" which may be because it might break the code, but I didn't bother checking what the changes exactly were.
 
Anyone know why OP deleted that one?
 
user165474
They did?
 
The answer is deleted, not the question @HyperNeutrino.
I'm not sure you have enough rep to view the deleted post...?
 
user165474
12:35 PM
There was an answer?
 
user165474
I have 1.9k, so no, I can't see deleted things.
 
@Stewie the answer was invalid
 
74 to go :) @HyperNeutrino
 
going from - to \ back to - wasn't allowed
 
user165474
@Stewie Wait isn't it 10k?
 
12:37 PM
2k until we get a design
 
user165474
@fəˈnɛtɪk Right, I keep forgetting about our lack of a design. lol
 
user165474
Well then 74 to go :P I can get that much in one day if I really try but there's this annoying thing called school >:-|
 
@fəˈnɛtɪk too bad... Hope it
 
user165474
Well I mean I was right... In binary...
 
No, you weren't @HyperNeutrino...
 
user165474
12:41 PM
@Stewie Well I mean I was close...
 
user165474
Not really :P
 
user165474
Because 10k -> 10000 -> 16
 
1k in binary is still 1000_d. 1Ki in binary is 1024_d.
 
user165474
True.
 
2000 is much closer to 16 than it is to 10000 anyway...
 
user165474
12:44 PM
See so I was closer in binary
 
@StewieGriffin not in log-scale
 
@HyperNeutrino "Causes harm" is sometimes the better reason. Because languages here are defined by their implementation, there's no guarantee that the changes made will work on the OP's platform. Yes, a lot of folks use TIO, but that's beside the point.
 
user165474
@AdmBorkBork Okay, thanks for clarifying. I didn't check over the code because I remembered from somewhere to reject edits that golf someone else's answer too much (someone tried editing my post once and got it rejected before I could reject it).
 
user165474
In base 6.68740304976422, 10000 is 2000(decimal)
 
0
Q: No Singles Allowed

FeathercrownThis is a fairly simple challenge. Write a program that computes the distance between two points on a 2D plane. HOWEVER, you can't use any functions or symbols that are 1 character long! Examples -=, +=, *=, /=, %=, etc. are allowed ||, &&, --, ++ are allowed as well +, -, /, * are not allowe...

 
12:47 PM
27
Q: Suggested Edits: Reject Golfing?

JustinEvery now and then, I see an edit where somebody does some golfing (most recent). From what I can tell, our standard is to reject those edits as invalid and post a comment saying what was suggested, because we feel that golfing tips should be comments. And I have always done so (after I learned)....

 
user165474
Thanks.
 
1:31 PM
 
@mınxomaτ certainly interesting although the article is about 10 paragraphs too long
that could set a dangerous precedent
 
I stopped reading after the third one
 
TL;DR guy makes program. hackers use program. is guy liable?
the fbi says yes
 
Case a: justice happens. Case b: wave of lawsuits happens. Does someone know who made the car the guy who drove into people used?
Case c: EULAs get that much bigger now.
 
case c probably happens either way
although i thought most of them already had a clause for that
 
1:43 PM
I'll wager a guess that this guy's code didn't have an EULA
 
probably a fair wager
 
1
Q: Print the Periodic Table

dzaimaYour challenge is to print/output/return this text: _____ _____ | 1 | | 2 | | H | ...

 
I wrote a program in C++ once to crack a game's encryption on its resource files. I guess it's the language that's liable though, not me.
 
@Geobits expect a lawsuit
 
Nope. Pretty sure they should arrest Stroustrup
 
1:48 PM
unless C++ has a thorough eula
 
See, this is why I don't write new languages. You're all warned now.
 
I've been accused of hacking by merely accessing a public file server.
 
A public file server, or all public file servers? ;)
 
The server leaked 400k+ SSNs and other PII. They tried to sweep it under the rug by calling it a hacking incident.
 
How did the accusation go?
 
1:53 PM
Unfortunately, the man who discovered the cover up (using the openftp4 log) was raided by the FBI and they have yet to return his stuff.
 
I'm not going to USA, ever...
 
But muh freedoms?
 
I've heard they even give you a free colonoscopy on arrival
 
They say the best things in life are free...
 
@Geobits oh no not the cheese D:
 
1:58 PM
@Downgoat time to update your eula
 
FBI will knock every American's door who starred the link that mınxomaτ posted.
 
inb4 all the stars disappear
 
> It is too late to undo this operation
oh no
 
in before everyone who's ever put a hack into their code gets put into jail
 
@JanDvorak b-b-but i just did a hack on wednesday
noooooooooooooo
 
2:05 PM
@mınxomaτ I can actually agree with this. It has to come down to what his intent was when he built the software.
 
@NathanMerrill how do you judge intent?
 
that's the purpose of a jury
 
but today is march 31
 
doesn't mean the FBI won't use this as a justification to bust other people
@betseg everywhere?
 
2:08 PM
That's why I italicized it
 
@betseg I don't think that verbed the way you intended.
 
@JanDvorak I mean, I can go with the fact that they had probable cause that he was a hacker (due to the fact of how common his software was used by hackers). It sucks that that is the case, but false positives happen all the time in busts. The point of the FBI isn't to determine whether he's guilty
 
anyone here got python on OS X?
I have a weird problem I needed reproducing
 
doesn't python come with OS X?
 
@NathanMerrill :O Dennis Richie is hacker confirmed?? :P
 
2:10 PM
does anyone who has OS X also have python? :)
@NathanMerrill I don't know but you can certainly install it
 
@NathanMerrill He removed the capabilities that really made it useful for hacking. Someone cracked the DRM on one of the versions prior to that and distributed it...
 
@NathanMerrill Does it not bother you that most of the "hackers" using his software pirated it?
 
Congratulations. You have just been outgolfed in Bubblegum. — Jan Dvorak 8 secs ago
4
 
@Poke I mean, yeah, but that doesn't have any bearing on whether he's guilty
@fəˈnɛtɪk And I imagine that this would be a power piece of evidence in his defense
 
How to buy Mathematica for cheap: Buy a raspberry pi, it comes with Mathematica out-of-the-box
 
2:21 PM
@SIGSEGV I think you can also just install raspian
 
@Downgoat Or PIXEL as they call now
 
@NathanMerrill It does when paired with the fact that he deactivated licences when people were using it maliciously
 
@betseg Edit it to: "One does not simply not make a meme about not simply not getting out-golfed by Dennis"
 
@NathanMerrill They are also trying to claim that his DRM software was used criminally...
 
2:24 PM
@SIGSEGV I didn't make the meme, found it on meta.
 
@betseg ikr
 
DRM is a crime, so...
 
wait a sec... i just read the Bubblegum spec. Is the bit about the hash just so it's a valid language on ppcg?
 
One does not simply not not not make a picture using an online meme generator to not not make a meme about not not not simply not getting outgolfed by Dennis
 
that's hilarious
 
2:28 PM
@Poke yep
@SIGSEGV wat
 
Dennis++ for that
 
@SIGSEGV you better stop now
 
I'm stopping
 
Google Assistant...wat
She's not wrong
 
@betseg 5/6 of that sentence is redundant -1
 
2:41 PM
Will we eventually make Dennis: The language?
 
As long as it's a menace to something, go ahead
 
3:06 PM
Make it anti-jelly
It undoes the actions jelly does
 
yes, since you are asking :P I am looking
 
@Poke many things
 
maybe i read the spec wrong
 
First off, use input instead of arguments
 
3:08 PM
2
Q: Palindromic Residue

AdmBorkBorkToday, as I'm writing this, is March 31st. In the US, this is 3/31. I was playing around with 331 as a number to come up with a challenge, and found that its residues (modulo small numbers) is palindromic. 331%2=1, 331%3=1, 331%4=3, 331%5=1, 331%6=1 (11311). Your challenge here is, when given an...

 
Second, the snippet evaluates to 3+1, but you're not doing anything with that value. You probably want to push 4, so ({}{})
 
ah
cool thanks
 
@SIGSEGV inviting you
 
If you were running it locally, args would work fine
 
3:10 PM
seems interesting and possibly more learning-friendly than stackcats
 
Well, stackcats is extremely weird and hard to learn
 
yeah that's my point, haha
 
There is also flakcats haha
 
oh man
gonna just ignore that
 
Wheatwizard has made a ton of bf variants. I haven't used most of them
 
3:14 PM
@DJMcMayhem Why?!
 
I ask myself that every single day
Not really, but I'm still not sure​ why
 
:P Yeah
 
@Downgoat did you infect my firefox
 
RIP: Also portal :P
 
3:27 PM
Ah, it's that time of year again.
 
> goat goatCancel
 
That's a perfectly valid regex, but I'm not sure what you're trying to accomplish
 
@ConorO'Brien My friend once accidentally renamed every file and directory to 420BlazeIt, 420BlazeIt(1), 420BlazeIe(2), etc.
 
3:33 PM
Trying to replace the input number with "1/"and the number
 
^^^^
 
Every single file on the disk
 
how do you do that accidentally
 
@ГригорийПерельман Best choice ever
 
We still have no idea.
He renamed ONE FILE on his desktop and suddenly everything died.
 
3:34 PM
ha ha. <insert OS name> is so fragile!
4
 
your friend and I should never meet--both of our computers seem haunted, and if we were to meet, I think the internet would explode
 
@JanDvorak Absolutely. That's why I only use <insert superior OS name> like a sensible person
2
 
Martin! The person I needed
I am trying to make it compute 1/theInputNumber
@MartinEnder any ideas?
@DJMcMayhem Well I think <insert .js os here> is the best!
 
@ГригорийПерельман A similar thing happened when I wrote a tool to sort my files by type. I managed to kill it, but more than half my files and folders started with "JustTesting..."
 
3:39 PM
It's like a self-imposed ransomware except you know you aren't getting the files back.
 
@DownChristopher Maybe you should post that in the Retina chat room...
 
@mbomb007 that is a thing?
 

 Retina

Discussion about the Retina programming language, including us...
 
And because I'm lazy, I didn't rename any of them. After a while I learned what UUIDs where what files.
 
"I'm lazy, so instead of renaming the files, I memorized a UUID." -- Programmer logic. ;-)
 
3:42 PM
Who needs verbose file names? I golf all my file names.
 
I use unicode glyphs that look the same to name my filse
 
And then I discovered Everything and all folder structure and sensible file names went to hell.
 
0
Q: Make me a pizza

programmer5000Because it's Friday and I'm hungry, I would like a slice of pizza. I will give you an order and I would like a nice hot ascii-art pizza. Up to the challenge? The Drive-Thru I'll place my order wherever your drive-thru is, whether it is STDIN, a function parameter, a command-line argument, but I...

 
I even made a script to remove all characters from a string that don't make it a subsequence of some other string in some set
 
Dangit, now I want pizza for lunch ...
 
3:54 PM
The weather here is so frustrating. Cold in the morning, extremely windy at noon, way too hot in the afternoon.
 
I have a decent pizza delivery service in my region
 
Ha ha, I'm at school so I get shitty pizza for lunch every day.
 
You could put frozen vegetables on a bread slice, wait for it to defrost and call it a pizza
 
There's an UNO and a Dominos less than 900m from my flat.
 
Send meh pizza
 
3:56 PM
OK, mine's not that close. But the one I have nearby produces 50cm pizzas, and has free delivery to my address
 
UNO? Haven't heard of that pizza place.
 
@ГригорийПерельман Same. But I often choose not to get pizza, it doesn't even have meat.
 
I like chicken spinach pizza
 
It is like cardboard with a red slime and a hunk of cheese
@JanDvorak Hmm sounds good
 
@JanDvorak 50cm pizza? You mean a small? 'murica
 
3:58 PM
aw, c'mon, cranberry + camembert pizza is delicious.
 
The next size after 30cm is 60x40cm around here.
 
Sheesh what is with these tiny pizzas
 
@ГригорийПерельман It's been around a long time: en.wikipedia.org/wiki/Uno_Pizzeria_%26_Grill
 
@ГригорийПерельман There's only one left. :D get it?
 
@JanDvorak That also looks good
 
3:59 PM
Right now I'm eating a beef wrap, though
 
@JanDvorak You put spinach on pizza?
 

« first day (2253 days earlier)      last day (2590 days later) »