« first day (2011 days earlier)      last day (2823 days later) » 

12:00 AM
@DrGreenEggsandIronMan I once did on Christianity.SE.
 
if I were doing the challenge, I'd totally include a test case with 1000s of lines, and put a time limit
 
in The Upper Room, Feb 3 '15 at 3:07, by El'endia Starman
WHOOHOO 500 consecutive days on the main site! :D
That streak was broken 11 days later.
 
@El'endiaStarman :(
 
then it's something like triangular number squared - columns * dupe rows - rows * dupe columns + dupe rows * dupe columns?
 
12:02 AM
@NathanMerrill is there even any fast way to find duplicates
 
@El'endiaStarman nice. I'm at 208 rn, which is my record.
Also, awesome chatroom name. :)
 
Thanks. :D
 
actually, finding duplicates isn't the solution
 
how can you do the challenge without enumerating anything
 
I think you calculate the number of unique distances for each of the axises
 
12:05 AM
yeah, that's not fast enough either
 
hmmm, nevermind
 
axes
 
It would be higher if I didn't go camping so often
 
I don't want to be talking about lumberjacks
2
 
12:08 AM
I refuse your prescriptivism
 
@NathanMerrill 🍪
 
er, I can't tell what that is
my ppi is too high
 
You may want to get yourself checked...
 
@NathanMerrill It's a cookie. For using a rare word, I think.
 
ding ding ding
 
12:12 AM
lol
I just saw a bunch of dots, and didn't realize they were chips
anyways, I can't find any literature on counting the number of unique differences between integers
in other news, I realized that we haven't had a good stock KoTH game
(the previous two have both been closed)
 
12:27 AM
@DrGreenEggsandIronMan I'm at 318 currently
 
@DrGreenEggsandIronMan I had 540 or so but I missed a day the other day because I was too busy and it reset ;-;
 
@NathanMerrill Stock? As in finances?
 
I still have 352 somehow even though I thought I missed several days
 
@AlexA. aww. Sad day.
 
@El'endiaStarman yeah.
 
12:34 AM
I'm really worried I might miss one or two since I'm going out of town soon.
 
its turning out similar to one of my previous challenges
but its simpler, and hopefully, will get more participation
(I really liked it, but it only got a couple of submissions
18
Q: Traders to the Death

Nathan MerrillYou are a foreign trader, hoping to make a profit. There are 5 goods people wish to trade: Apricots, Boars, Canaries, Daffodils, and Earwigs. Starting in the winter, you need to decide what to produce. Then, in the fall, you travel and spend your days trading for a profit. Gameplay You start...

that one ^
 
@El'endiaStarman I just completed PE 59. It was a pleasant surprise :)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Nice. :D
 
> Your email adress. It is required for account-verification. Email addresses do not start with a www. or a http://. That is only websites. Your email will not work if you include either mistakingly!
._. this must be a large problem to point it out
 
@DrGreenEggsandIronMan just levae your compiuter on and write script to refresh page every 5 seconds :P
 
12:44 AM
a la kitchen timer
 
@Downgoat Ooh. That's a ridiculous idea, but I might actually try something like that
I'm also trying to get fanatic on ppcg.meta and Vi.se
 
@Sherlock9 I gave up on my former approach--am now using comic fury for comic hosting. Expect some soon! cergos. (@flawr, I think you were also interested.)
 
Now what do you guys think of my proposed challenge?
0
A: Sandbox for Proposed Challenges

R. KapHow Many Rectangles in the Grid? code-golf Consider this 3 x 3 grid of rectangles: How many unique rectangles are here? Well, counting visually, we can see that there are 36 unique rectangles, including the entire plane itself, which are all represented with arrows in the image below: wher...

 
@R.Kap better. Because you are simply indicating the number of columns/rows, you don't need to include the word "unique" (and it is confusing that way)
 
@NathanMerrill All right. I got rid of "unique".
 
12:56 AM
@R.Kap also, add oeis.org/A096948
 
@NathanMerrill Added.
 
looks good to me
 
@NathanMerrill Yay! \o/
@NathanMerrill Also, if you have the time, could you see if there are any questions currently on PPCG that my proposed challenge could be marked as a duplicate of if it was posted on the main site? I would really appreciate it.
 
1:14 AM
Does this seem like a terrible font for the text of comics in a webcomic?
 
sorta
 
yeah
I just realized that :/
maybe I should just use Open Sans
should I just write out the letters by hand (mouse) or type it?
 
What are you doing this in?
Are you inking by hand?
 
sumopaint, or any free software
@quartata online
 
You could do the speech balloons and lettering separately on paper and scan it. Hand lettering is pretty much impossible by mouse and nearly impossible with a tablet
 
1:29 AM
that's messy :/
 
Not really?
 
Hey, terminology. If I am offering to exchange A for B, then "A for B" is the offer. "B" is the desired payment, but A is the ____ payment?
 
@NathanMerrill Like, I'll give you apples if you give me bananas?
 
1:45 AM
@AlexA. pl took me longer to make than it took Mozilla to make JS
That's mostly because I'm incompetent
I swear, someone at Valve must have an enum fetish
 
@quartata ?
 
@AlexA. You haven't experienced life yet until you've found yourself calling a method that takes four non optional enum values whose behaviors overlap
 
The name of the function Y< is interesting
 
@quartata Hah what ok
 
@El'endiaStarman yes. What's the term for apples?
 
...Apples?
 
2:04 AM
@R.Kap i think the rectangles and the diagram with the arrows are confusing; it would be much clearer with a grid of squares
 
@R.Kap actually, i don't understand the problem. why does [2,2] give 36?
 
@xnor I believe he meant [3,3]
Any way, the formula is just [m,n] -> m(m+1)n(n+1)/4 (Yes I'm fun at parties)
 
@LeakyNun i thought the same but then [6,7] -> 550 is a mistake?
 
@xnor he may as well have miscounted [6,7] seeing that he doesn't even know that this challenge is that trivial
he may have counted it by hand
 
2:11 AM
i see
yes, that's definitely trivial
though i think the python shortcut n*~n*m*~m/4 is cute
 
@xnor wow, nice
 
@AlexA. Where have you been :O
 
Guatemala
 
It may please you to know that Bernie has no pants on fire
 
Plot twist: I knew that all along ;)
 
2:22 AM
Challenge incoming...
 
@LeakyNun A couple of us figured it out in chat. He may have missed that conversation.
 
@El'endiaStarman alright
 
1
Q: I misspelled my domayn name

Daniel M.According to Alexa rankings, the top 10 websites are: google.com youtube.com facebook.com baidu.com yahoo.com wikipedia.org amazon.com twitter.com qq.com google.co.in Being the top 10 visited websites, these are probably also the top 10 misspelled websites [Citation Needed]. Your task Your g...

 
@NewMainPosts No, you're just George R. R. Martin
 
Anonymous
I got married yesterday. 10/10 would recommend, 0/10 would not do again.
17
 
2:29 AM
@Mego Congrats!
 
Anonymous
Thanks :D
 
Anonymous
@Dennis TIO suggestion: allowing users to pick a specific version of the language, for languages with reasonable versioning schemes
 
You'll need to add a wedding band to your fin in your avatar
6
 
@Mego Congratulations! :D
And agreed. ^^
 
Anonymous
I'll attempt it
 
2:32 AM
So that's two people who have gotten married in the time since I joined PPCG.
 
Congrats!
 
@El'endiaStarman am I the second?
 
Anonymous
@NathanMerrill Me and Martin. You got married?
 
oh, yeah, Martin
yeah. It's been a while (last June), so I didn't think it was me, but I couldn't think of anybody else
 
There was somebody else. Lemme search.
Sorry, was afk getting married. — histocrat Sep 7 '15 at 14:03
 
2:40 AM
primo too I thought
 
@Mego congrats
 
@Mego That's harder than it sounds. Curating the list of versions manually for each language is impractical, and I can't think of a better way.
Also, congrats!
 
Anonymous
@Dennis For languages that use package managers, it'd be pretty simple. For others, version control commits could be used.
 
Getting married was the most rushed and best decision I ever made.
 
so, before each TIO request, the server would do a git checkout?
 
2:43 AM
@NathanMerrill Looks like my first chat message was in September last year, so yeah, you got married before I really joined.
September 16, to be precise, which means its after histocrat's too.
 
ah. I checked your PPCG join date
 
Anonymous
@NathanMerrill Yeah that could be an issue on the server
 
I presume it would cache versions...
 
Anonymous
@quartata RIP the server's storage capacity
 
Anonymous
Also thanks for all the congratulations from everyone :)
 
2:45 AM
oh, you could do primitive versioning if the git commit message starts with a version number
but that feels hackish
 
or GH releases
 
@NathanMerrill Yeah, I "joined" to upvote questions and answers. My first post on PPCG was technically August 3, 2015, but I didn't really start participating until September 16 (first question) and 18 (second answer).
 
Congrats @Mego!
 
New challenge in 10 minutes \o/
 
^^
 
2:49 AM
oh, does ^^ mean to skip two messages up?
hmmm, this has a hinting of a new language
 
@NathanMerrill I may have started that.
 
@El'endiaStarman did you ever come up with a term? If I'm offering 5 apples for 4 oranges, then "5 apples" is my ____?
 
@NathanMerrill product or offer?
Commodity, maybe?
 
offer doesn't work, because its the term I'm using for the entire transaction
 
0
Q: Determine the position of a non-negative number in the infinite spiral

Leaky NunDefinition The infinite spiral used in this question has 0 on the position (0,0), and continues like this: 16-15-14-13-12 | | 17 4--3--2 11 | | | | 18 5 0--1 10 | | | 19 6--7--8--9 | 20--21... It is to be interpreted as a Cartesian plane. For example, 1 is on ...

 
2:54 AM
and the other two terms don't indicate that its the product I'm giving
(as opposed to taking (or desiring)
 
Item given and item received?
 
getItemGiven()?
 
[opens up thesaurus.com]
 
I've been looking for synonyms for offer to no avail :/
 
Is this specifically for a barter system?
 
2:56 AM
yes
 
What about goods?
 
Product and payment?
 
hmmm, I like payment
 
tit and tat
 
lol
maybe "Transaction", "Offer", and "Payment"
 
2:58 AM
0
Q: Determine the position of a non-negative number in the infinite spiral

Leaky NunDefinition The infinite spiral used in this question has 0 on the position (0,0), and continues like this: 16-15-14-13-12 | | 17 4--3--2 11 | | | | 18 5 0--1 10 | | | 19 6--7--8--9 | 20--21... It is to be interpreted as a Cartesian plane. For example, 1 is on ...

 
@Mego Hey, congratulations!
 
@NathanMerrill Yeah, that'd work.
 
Anonymous
@HelkaHomba Done(ish)
 
@Mego I see it. Very nice.
 
@xnor Because a 2 by 2 grid of rectangles results in a total of 36 different rectangles if you look really carefully.
@xnor Well, I tried doing that, but it is even more confusing as creating those squares would resulting in many overlapping ones, hiding ones that are supposed to obviously be there.
@xnor Oh, sorry. That was a typo. Disregard my previous reply.
 
3:11 AM
Anybody want to play Minecraft minigames?
 
Congrats @Mego
I see alex is here too :)
 
@DrGreenEggsandIronMan ^^^^^^^
 
(removed)
 
@Quill o/
 
3:33 AM
@Mego Congratulations! :)
 
@Mego My condolences.
 
Hey, can anybody crack this code?
!@#^@#((^@@$^@#
cryptic hint: leopard, bases
 
I'm having so much fun with my TNB data explorer right now. :P
Also, I've accidentally started teaching myself more SQL. :P
 
@uoɥʇʎPʎzɐɹC potato
walks out like a boss
 
3:49 AM
@uoɥʇʎPʎzɐɹC Clearly HH related
 
Some people sang this thing for the talent show at the math camp I'm at. It was glorious.
 
unused lavatory is the same length so I'm guessing that
You took the codes mod 6 or something I presume
Akthough you must have permuted it since unu couldn't map to !@#
 
is there a better way to get the real/imaginary parts of a complex in Python than (c.real,c.imag)?
 
@orlp I just tried using modulo, and it errors, so I don't think so.
 
@orlp define better
 
3:57 AM
@LeakyNun shorter
@LeakyNun see also my comment on your challenge :)
 
@orlp replied
 
@LeakyNun what about (5.0, -3.0)?
. is not a digit
 
@orlp does it match the regex?
 
no, because it sees that as 4 numbers
unless \d contains .
which I don't know
 
@orlp then that's a no
 
4:00 AM
well
it entirely depends on \d
 
@orlp AFAIK no implementations of \d contain the dot
 
"The format of the position consists of two numbers separated by any non-empty string that contains no digits."
I'd argue that 5.0, -3.0 is two numbers separate by a non-empty string that contains no digits
your regex just has a flawed concept of what a number is :)
 
@orlp you win
 
I have a 17 byte version that returns complex numbers, but 0, 1, -1, 1j, -1j, etc. are not displayed properly. ._.
 
Anonymous
@orlp That's the shortest way AFAIK
 
4:06 AM
so what's a good check to see if a number is of the form floor(n*n/4)
 
Anonymous
x in[int(n*n/4)for n in range(x)]
 
eww
 
Anonymous
Actually I'm not even sure if that works
 
Help me please
My (good) post got closed
I can link it
 
@Mego n*n>>2
 
Anonymous
4:10 AM
@LeakyNun Not the same thing
 
Also, check out my recent answer. It's cool.
 
@HelkaHomba That's way too many carets, haha.
 
@Dennis How should I say it?
 
I can post it in the chatroom: a=('A'..'Z').to_a;l=a.length;l.times {l.times {|i|$><<a[i]};a.rotate!;puts}
 
Anonymous
@DmitryKudriavtsev It got closed because we already have another basically identical challenge.
 
4:11 AM
No
The REPL one
 
@Mego range(x+2)
 
@HelkaHomba Actually, I'd love to play MC minigames, but I'm on vacation without a computer right now, so I don't think I can.
 
@LeakyNun I don't know. Unless you require the output to be a string, that regex idea if flawed. Personally, I'm a fan of allowing any sensible output format.
 
@Dennis editado
 
I have an answer
but am not happy with it
until I get this check right
I feel really stupid right now
there must be an easy check to see if a number is of the form floor(n*n/4)
 
4:18 AM
@LeakyNun \o/
 
@Dennis eh, 1j
 
That's how Python stylizes the complex number (0, 1).
 
@Dennis Is actually.TIO up to date?
 
>>> 0+1j
1j
 
that's how my output will look as well
 
4:21 AM
@LeakyNun Not sure. Mego usually pings me when there's something to pull.
 
basically this is my ungolfed answer right now
n = 50
q=2
d=1
c=0
for i in range(n):
    if i==q*q//4:
        d *= 1j
        q += 1
    c+=d
but I want to get rid of q
 
@xnor Is it easier to understand now?
1
A: Sandbox for Proposed Challenges

R. KapHow Many Rectangles in the Grid? code-golf Consider this 3 x 3 grid of rectangles: How many rectangles are there? Well, counting visually, we can see that there are 36 rectangles, including the entire plane itself, which are all shown in the animated GIF below: The Task The counting of re...

Anymore feedback anyone?
 
I like the animated gif. It's like the perfect way to show all the rectangles.
 
ok
so checking a number is of the form floor(n*n/4) = x
is equivalent to checking x*4 = (n*n) - (n*n)%4
 
@El'endiaStarman I also wanted to do one for a 4 by 4 grid, but who would want to watch a 100 frame GIF showcasing rectangles?
 
4:26 AM
@R.Kap Haha, yeah, you don't need the 4x4 grid at all.
 
I feel like a 3 by 3 example is sufficient.
 
@R.Kap Include the formula
 
@LeakyNun It's on the OEIS page.
 
@LeakyNun Nah. Let people work it out for themselves
 
@El'endiaStarman alright
@HelkaHomba noted
 
4:31 AM
anybody want to make the "how many rectangles with unique dimensions" challenge?
or simply the "given a list of integers, count the number of unique ranges"
 
@NathanMerrill I don't get it
 
also, pretty GIF
 
@Mego Do you have any intention to include extended commands?
 
@LeakyNun with the numbers [1,2,3,5], you have 4 possible ranges. 1->(1,2), 2->(1-3),3->(2->5),4->(1->5)
 
@NathanMerrill Eh, I doubt if that is how the word "range" is used
 
4:35 AM
When googling for any literature, I tried "range", "difference", and "distance"
 
I would like to see an MATL answer because MATL has a built-in spiral (1Y4)
 
so take your pick :)
 
what is the golfiest way in Python to ceil a number?
 
@NathanMerrill like this
 
Anonymous
@LeakyNun In the future. They're not very high on the priority list
 
4:36 AM
@LeakyNun yeah, but I'd be interested in efficient solutions (if its possible)
yours (I'm guessing) is O(n^2)
 
Anonymous
0x03-0x06 (the suit symbols) will probably end up being the prefixes for two-byte commands
 
@Mego nice
@NathanMerrill yes
 
@orlp -(-a//b)
 
so... yeah. a=('A'..'Z').to_a;l=a.length;l.times {l.times {|i|$><<a[i]};a.rotate!;puts}
Dammit
wrong paste
 
obviously O(n) is lower bound (and I'm not sure if its achievable), but I'd bet there's a O(n*log(N)) solution
 
4:38 AM
I need undelete votes and reopen votes.
 
@DmitryKudriavtsev You need to write better challenges.
 
>tfw ooh burn
That challenge is good.
 
Anonymous
@LeakyNun I haven't committed anything since the last time I asked Dennis to pull, so yes, it's up-to-date. I've been a little busy getting married to do much work on the language :)
 
@Mego It's alright, I thought 0xD8 was broken.
 
@LeakyNun What do you find "bad" about that challenge?
 
4:41 AM
@DmitryKudriavtsev the broad part of the challenge is "It should support executing single commands and evaluating expressions, but supporting more complex constructs is not required"
 
@Mego Will you be overloading atoms with their inputs in reversed order if their inputs are of different types?
 
@DmitryKudriavtsev It's unclear
 
@DmitryKudriavtsev pretty much what Nathan and Dr Green Eggs said
 
what is a "single command" and what is a "complex construct"
 
Anonymous
4:42 AM
It is a little broken - it's supposed to push a list, not each individual sublist. I messed it up, though, and haven't had time to fix it.
 
unclear?
 
@Quill yeah just re-discovered that as well
 
Anonymous
@LeakyNun If it makes sense to. Some commands would make sense to be commutative.
 
@Mego e.g. 0xD8
 
@DmitryKudriavtsev I think we intuitively understand what you want, but unfortunately, we have to get specific with things, otherwise people will take shortcuts to golf it down more
 
4:43 AM
@NathanMerrill Like what?
 
well, define exactly what a "REPL" is
 
There is only one way to implement this in most languages and it is the right way.
 
Anonymous
@LeakyNun Exactly. + makes sense to be commutative, but j could be non-commutative and not cause much confusion.
 
Ruby: loop{puts eval gets}
 
Here's more concrete thoughts. 1. "Extra credit" is never a good idea for code golf 2. It's either boring and trivial, or extremely difficult depending on the language.
 
4:44 AM
@DmitryKudriavtsev right, but what if my language doesn't have such constructs?
 
@Mego so will you?
 
Anonymous
@LeakyNun Eventually
 
what if I only accept addition
so, if you type in "4+5", it'll work, but anything more complex, it won't
 
@Mego Congratulations!
 
is that valid?
 
4:44 AM
@R.Kap the presentation is great, but the challenge is totally trivial because there's a formula
n*(n+1)*m*(m+1)/4
Leaky Nun pointed it out earlier
 
Anonymous
@Downgoat Thanks :)
 
@R.Kap I'd totally do a part 2, where you ask for the number of rectangles with unique dimensions
 
@DmitryKudriavtsev We had that discussion before. In this current form, the question is underspecified and thus too unclear for PPCG. Undeletion and reopen votes wouldn't help; the question just would get closed again. If you specify it properly, you can flag it for moderator attention so it can get undeleted.
 
@Mego Would it be better to do 5²u instead of 5Pτ?
better in terms of intuitiveness
 
Anonymous
Eh. If there are multiple representations, I just go with whichever I thought of first.
 
4:47 AM
er, I didn't realize you can edit deleted answers/questions
 
Hey all
 
or is that only a limitation if you didn't post it?
 
As long as you can find it, you can edit it.
 
@Sherlock9 hey!
@Dennis for both questions and answers?
oh, its comments I'm thinking of
ignore me :)
 
Comments can't really be edited either way
 
Anonymous
4:48 AM
@NathanMerrill Yep, comments can't be edited once deleted because they get completely destroyed, not just tagged as "deleted"
 
@Mego \o/
 
I was thinking you can't add comments after a post is deleted
not that you could restore deleted comments :)
 
@Mego Not true.
 
@Downgoat Are you planning to use Cheddar on my new challenge?
 
@Dennis How can I improve it?
Also, Scratch is god for code golf.
good* but it works either way
 
4:51 AM
@LeakyNun You always say "my new challenge" but you post so much that I never know what your newest challenge is?
 
@Sherlock9 I thought you can see on the main site
 
So THAT's how you get so much rep.
 
Can you start saying things like "my newest challenge at this link" or "my newest Wolstenhome challenge"
 
I can't recall how scratch is scored, but I also can't recall it ever outgolfing any actual golfing langs
 
4:52 AM
@Sherlock9 It's literally the first challenge here
 
But I rarely check the main site. Most of the time, I'm already on a challenge or I'm chatting here with you!
 
@Sherlock9 alright
 
Anonymous
@LeakyNun By our powers combined, we've managed to halve the length of the solution!
 
@Mego nice
 
in Discussion between Dmitry Kudriavtsev and Dennis, Jul 23 at 2:03, by Dennis
As I've said before, a reference implementation cannot be a replacement of a spec. Porting your Ruby code to some languages might be rather straightforward, although there could be subtle differences. In other languages, there is no way to do exactly the same because they are too different. If the task is impossible in some languages, that's fine, but you still need a specification (by capabilities, not a white- or blacklist) that tells us in which languages it is impossible.
 
4:53 AM
@Mego Can't you use 5²u instead of 5Pτ?
 
@Dennis I DID say that:
 
@Mego It would be better if you write 26 13 in the score of your answer
 
> This challenge is only feasible in scripting languages such as Ruby and Python, not compiled languages such as C++.
 
I remember essentially solving that spiral problem in reverse for project euler
 
Anonymous
@LeakyNun While it can be used, it offers no benefit over the current representation. Like I mentioned earlier, I use 5Pτ because that's the representation I thought of first.
 
4:55 AM
@DmitryKudriavtsev That's not a spec. I'm also not convinced that it's true. Many compiled languages also have a REPL.
 
and you could create a brainf*** repl in C++, couldn't you?
 
What are those?
 
@Mego Eh, benefit depends only on the point of view
 
Then the challenge isn't exactly the best idea. Writing challenges specific to a language or a set of languages is too restrictive around here
REPL = read, eval, print loop
 
Anonymous
4:56 AM
@LeakyNun I generally do not post crossed-out old scores in my answer headers. If someone is interested in the golfing process, they can look at the edit history and see the previous scores there.
 
@Zwei
> The interpreter should interpret the language it is written in.
 
@Mego noted
 
oh
 
Anonymous
@LeakyNun Objectively, the benefit would be shorter code. Since it's the same length, there's no reason for me to prefer one over the other.
 
I saw the challenge earlier before that part was edited in
 
4:56 AM
@Mego noted
 
It was edited to address the close votes.
Clearly that did nothing.
 
I haven't written a challenge before, mainly because I can't come up with non-trivial challenge ideas, but have you even tried running your challenge through the sandbox?
 
@Zwei the pain of coming up with non-triviality
I feel you :)
 
@Zwei Sandbox?
I have an idea for a non-trivial challenge!
 

« first day (2011 days earlier)      last day (2823 days later) »