« first day (1780 days earlier)      last day (3065 days later) » 

Anonymous
1:01 AM
Man that means I actually have to figure out how to do recursion properly in Seriosuly
 
Working on an APL solution
 
If anyone wants a hat on SO, this needs one more close vote.
 
@AlexA. What's wrong with the floats rule?
 
@quartata Nothing is wrong, per se. I just think it's odd to allow some languages to assume integers and not others.
I feel like you should either require floats or require integers. IMO anyway.
Also if you were trying to reference "golf you a quine for great good," you should remove the "er" in "greater." ;)
 
4
A: Sandbox for Proposed Challenges

quartataAlex-style Addition Inspired by Alex's glorious Learn you an R for greater good, we are going to humbly recreate Alex's "one true R program" -- but with a twist. Alex-style Addition works like this -- it has a 90% chance of simply returning the sum of the two numbers given and a 10% chance of r...

 
1:04 AM
@AlexA. No I was referencing learn you a haskell for great good
But I do need to get rid of the er
 
@NewSandboxedPosts Might as well go ahead and post it, @quartata... :P
 
Anonymous
@AlexA. This is probably a good suggestion.
 
I mean, really, +4?
 
@quartata Yes. This hospital cannot have an emergency room. Not permitted.
 
@Mego OK I'll change it to just integers
Maybe a bonus for floats?
 
1:05 AM
Nah
 
Holy shit 6 upvotes
I'm just going to post this.
 
haha
 
gets ready to delete your post just for the hatz
 
quickly learns CJam so I can answer before Dennis
 
@BrainSteel: wouldn't it be a lot easier to see if a triangle includes the origin?
 
Anonymous
1:07 AM
works on Seriously solution
 
@Doorknob Good luck.
 
Anonymous
curses lack of recursion primitives
 
Ralph
 
@El'endiaStarman I'm not sure I know what you mean.
 
1:08 AM
@BrainSteel I'm looking at ship vs sun collision, but I think this will also be relevant to missile vs. ship collision.
 
I feel like there should be a shorter way to do this. :/
 
Given a triangle, how hard is it to see if it contains the origin?
 
@El'endiaStarman Literally impossible
 
Anonymous
 
@El'endiaStarman Oh, I see what you mean. Yeah, you could translate the plane to make each missile the origin. Clever. I'm not sure how hard that check is.
 
1:10 AM
quartata, don't post that yet I'm still learning CJam
 
@Doorknob Don't worry I'm working on my APL answer
 
ok
 
Also where can I get the leaderboard snippet :P
 
If I want to answer with a "function" in Minkolang, does that mean I can assume a and b are on the stack already?
 
@quartata Get it from tacos
 
1:10 AM
@quartata Meta.
 
@El'endiaStarman What if you check if the sides of the triangle intersect the positive and negative sides of each axis of the plane between the vertices of the triangle? That tells you if the origin is in the triangle.
 
Also @AlexA. can you remind me what the ternary statement in Dyalog is again
 
36
Q: Leaderboard Snippet

Martin BüttnerI've been using a stack snippet for a while to generate leaderboards for my simpler or more popular code golf challenges. I want to share the code for this snippet here so others can use it more easily as well. Feel free to put feature requests and bug reports in answers, or let me know in chat....

@quartata {condition:iftrue◊iffalse}
 
@BrainSteel I like that idea! It's quite easy too!
 
@AlexA. Gotcha
 
1:12 AM
@El'endiaStarman You also have to think about whether or not the origin is on a side of the triangle, but I don't think that's a hard check at all.
Glad I can help :D
 
Anonymous
Another way of looking at it:
 
@AlexA. Err.. is the colon supposed to be a part of that?
 
Anonymous
Either each side must cross 2 axes each, each side must cross at least one axis each and one corner lies on an axis, or 2 sides must cross an axis each and the two points at the end of the side that doesn't cross an axis must both lie on axes
 
@quartata Yes
 
got 12 in CJam
you have to include the surrounding curly braces with CJam, right?
(if it assumes input will be on the stack)
 
Dammit, APL is too long.
Trying Jelly.
 
@El'endiaStarman Do you account for the radius of the star?
 
Except that doesn't have ternary
Ah well, dealing with it
@Doorknob Yes.
 
Okay
 
1:18 AM
So can I post it?
 
@BrainSteel I will be, yes. That's a good point.
 
@quartata yeah
 
@quartata Oui
 
19 bytes in Minkolang.
 
That may make things a bit trickier. You may be able to make the triangle "grow" to account for the radius.
 
1:19 AM
0
Q: Alex-style Addition

quartataInspired by Alex's glorious Learn you an R for great good, we are going to humbly recreate Alex's "one true R program" -- but with a twist. Alex-style Addition works like this -- it has a 90% chance of simply returning the sum of the two numbers given and a 10% chance of recursively Alex adding ...

 
@AlexA. literally 2 seconds faster than me
I had to click pictures of lakes for the CAPTCHA >_<
 
>:D
 
I'm winning for once! \o/
 
Anonymous
Sniped the Python
 
Only Doorknob and I have explanations. SHAME on the rest of you! ESPECIALLY @AlexA.!!!
 
1:23 AM
@El'endiaStarman I have an ungolfed version.
 
Granted, you don't really need an explanation...
 
I pulled a @Dennis and edited it in after posting
 
I didn't.
 
Me too...
 
Therefore, my answer is objectively the best.
Fastest to post with an explanation without cheating!
 
1:24 AM
but... but... longer than mine...
 
And because of the grace period, you can't even tell! :P
 
Incidentally, I didn't have my question from earlier answered:
 
4 question upvotes, 5 answers, no answer upvotes.
 
13 mins ago, by El'endia Starman
If I want to answer with a "function" in Minkolang, does that mean I can assume a and b are on the stack already?
This would let me take off 4 bytes.
 
1:25 AM
4
Q: Alex-style Addition

quartataInspired by Alex's glorious Learn you an R for great good, we are going to humbly recreate Alex's "one true R program" -- but with a twist. Alex-style Addition works like this -- it has a 90% chance of simply returning the sum of the two numbers given and a 10% chance of recursively Alex adding ...

 
2 for input and 2 for output/stop.
 
Now I need to learn Pyth to secure my victory (hopefully)
how does define function in Pyth :/
 
Anonymous
@Doorknob Unfortunately Seriously isn't a contender for first place :(
 
Oh, I should just use Q
wow Pyth is fancy
 
I posted a Julia answer that's exactly half the length of the R one. :O
Clearly the R one can be made shorter then...
 
1:29 AM
@quartata Isn't Math.random() 1-exclusive? If you compare to .1, it wouldn't add up to exactly 100% (since 1.0 is impossible)?
 
@mınxomaτ Oh yes
Well, wait.
Since it is <0.1 I think it is OK.
If it was <=0.1 it would be a problem.
 
But 1.0 will never happen. So your scale is off (i think).
(the challenge requirements state relative probabilities)
 
Right, but the condition won't trigger on exactly 0.1.
So the .random range is [0,1)
 
@quartata Doesn't matter. All overall possibilities don't add up to 100%.
 
And the condition range is [0,.1)
@mınxomaτ Oh.
 
1:34 AM
@quartata 17 byte APL solution.
Are you going to post yours?
 
how does suppress auto output in Pyth?
 
@AlexA. No I couldn't figure it out.
 
@quartata I realize this is Groovy-specific, because some other langs have [0,1]-able PRNGs.
 
@mınxomaτ Hm. I guess I'll have to use java.util.Random then.
 
@quartata Or .1 * (whatever_the_actual_random()_max_value_is) :)
But that depends on precision.
 
1:37 AM
Dammit random is exclusive
Luckily I can do .nextInt(11)
 
Given that it's Alex-style addition, clearly I should post a shit ton of answers.
@quartata What couldn't you figure out about the APL solution?
 
3
A: Alex-style Addition

El'endia StarmanMinkolang 0.14, 19 11 bytes This is the "function" version; it assumes a and b are already on the stack, pops them off and pushes the modified version of a+b. (+$01$h`d)x I stole the algorithm from Doorknob's answer; the while loop repeats so long as the generated random number is less than 0...

 
@El'endiaStarman I just saw that. NAIL TO THE GUT!
 
@mınxomaτ better?
 
Step up your game, @Doorknob! :D
 
1:39 AM
:D
It should be possible to beat me with CJam and Pyth.
 
@AlexA. I forgot what the operator for recursion is
And I wasn't certain how it would handle dyadic functions
 
@quartata Yo.
 
Anonymous
@mınxomaτ If we were working in a perfect world, the probability of X = 1.0 would be 0 because it's a continuous random variable, so inclusive vs exclusive wouldn't matter. The difference it makes with discrete values gets more insignificant the more bits you have.
 
Yes.
 
Got Pyth in 14...
gotta go eat dinner now though
 
1:41 AM
@Mego This is true, but I should try to make it as accurate as possible considering it is the reference implementation at all :/
 
@quartata Recurse is
 
Anonymous
If I assume input is on the stack for function-style Seriously, it would still be 16, since it would need backticks :(
 
@AlexA. Sorry not a train a function
I'm tired :P
 
[upvotes everyone] :P
 
\o@
 
1:42 AM
nom
\o
 
Anonymous
Ahh crap Python's random.random() is [0,1)
 
Anonymous
Oh wait I can still do it in 16 even with that
 
@El'endiaStarman o no u eeted ma sinyman rol
 
@Mego Why do you care about the bounds? The question doesn't specify that it has to be inclusive and realistically, you'll get the same results for [0,1] and [0,1).
 
@AlexA. Your APL solution is actually surprising similar to what I had so I probably would have figured it out if I had tried
 
1:45 AM
@quartata That makes me feel bad for ninja-ing it. I should have just offered to help you with yours. u_u For this I am sorry.
 
Anonymous
@El'endiaStarman See above discussion; < 0.1 for [0,1) is not the same as 10%. Plus, it's actually a byte shorter to do it right.
 
@AlexA. For shame
 
@AlexA. No it's fine.
I really don't mind.
 
@phase i no T__________T
 
Anonymous
2
A: Alex-style Addition

MegoSeriously, 15 bytes ,,01W+09uJYWD+++ Uses a similar strategy to Doorknob's CJam answer (increment number while random float is less than 0.1), except it uses integers, and increments while random integer in [0,9] is less than 1. The lack of easy recursion hurts. Try it online (needs manual in...

 
1:47 AM
I wouldn't have posted it anyways
 
Anonymous
15 bytes for doing the randomness correctly :D
 
I GOT THE THING
 
@Mego It's effectively the same. But ¯\_(ツ)_/¯ it worked out for you.
@AlexA. Congrats! :D
 
Thanks! :D
@Mego Ralph
 
Crap. I usually remember it.
puts \ back
 
1:48 AM
what are these hats?
 
HAATTTSSSS!!!
But seriously, it's Winter Bash! :D
 
Anonymous
3 hours ago, by BrainSteel
I still don't know what Winterbash is. I asked, and all I got was "HATS!" :P
 
1 hour ago, by Doorknob
Pops on December 14, 2015
Another calendar year is ending, which can mean only one thing. It's time once again for the event that brings joy to all (with a slight helping of dismay for our friends in the southern hemisphere1): Winter Bash!
 
Anonymous
@El'endiaStarman That guy is such a poser
 
Anonymous
2 hours ago, by NotDoorknob
Winter Bash has started! Go get your HATS!!! \o/
 
1:50 AM
@Mego Haha, well....
 
Do you get them from rep?
 
@El'endiaStarman You're such a poster. A POSTER OF QUALITY ANSWERS!!! HEYYOOOOOOO
 
3 hours ago, by Doorknob
/me considers writing a bot to announce milestones automagically
3 hours ago, by El'endia Starman
@Doorknob Winter Bash probably would've started by the time you finish... :P
@AlexA. :D
 
You get them for various things
I got the one I currently have on for earning a gold badge.
 
Anonymous
I got rid of another byte \o/
 
1:52 AM
The one that looks like a cake is for voting on the 14th.
(14th UTC)
 
@El'endiaStarman On the answer you posted for the Alex-add: is that a function?
 
> This is the "function" version;
Yes.
 
Anonymous
@AlexA. Otherwise known as today
 
It looks more like a code fragment to me.
 
Full program is 4 bytes longer: nn to get two integers from input and N. to output the result and stop.
 
1:53 AM
@Mego Yes
 
Just submittd my apps to Harvard and Dartmouth, so you can now do programs that say odds I'm in. You can find a solution as follows.

Python, 88 bits: print"100%"'
 
Anonymous
@Ampora I spy an e in there
 
Ivy unis want good typography
 
I sincerely hope you'd didn't omit any e's in your applications.
 
Anonymous
Also that program doesn't work
 
Anonymous
1:56 AM
And print 1 is way shorter
 
^
 
Golf had not occur'd
I right q's, not post a's
 
Anonymous
And that's not correct odds; odds for are defined as P(X)/P(!X)
 
Anonymous
So it would be infinity
 
@Ampora GASP
 
1:57 AM
@Ampora I...I saw you edit in that e... o.O
 
That wasn't I
 
....
@ALEX!!!
 
Anonymous
Man you r not doing good at this no 70th char thing
 
@El'endiaStarman Hi
 
You cheater!
 
1:58 AM
¯\_(ツ)_/¯
 
Omitting it is starting to b a total pain in my ass, tbh
 
Did you at any point assume it wouldn't be?
 
You brought it upon you.
 
I did
I'm stupid occasionally
Always
 
I just wrote this ~30sec sample of music: soundcloud.com/phinotpi/machine
 
2:00 AM
Only 18 days til I can put words normally again... sigh
 
@PhiNotPi Normally I detest harpischords but this is nice.
 
In 2016 I'll put words in chat in Mr. Ampora's way: subbing vv for v and ww for w
 
I don't understand that sentence
 
Anonymous
@Ampora Oh boy do I have some code that will interest you
 
Hmmm... looking at @El'endiaStarman's answer, it looks like the equivalent of leaving the outside braces off of my CJam submission. In which case I would be winning by a char... >:D
 
Anonymous
2:02 AM
Behold, my crappy project from 4 years ago: sourceforge.net/projects/trollbotirc
 
Anonymous
@Doorknob The difference is, that's valid function syntax for Minkolang (I think)
 
Is it? It just looks like a piece of code floating around.
 
Anonymous
If I could drop the double-input in Seriously I'd be tied with CJam
 
Karkat did his capslock typing manually, SO WILL I
 
> trollbot
ಠ_ಠ
 
Anonymous
2:04 AM
@Doorknob esolangs tend to look like code fragments at best, and facerolling at worst
 
Anonymous
@AlexA. Named after the trolls from Homestuck
 
haha, but isn't it just a piece of code?
 
Anonymous
I wonder how much work it would take to convert it to a chat.se bot
 
I can put such a "code fragment" on it's own line, jump to it with 0kF (where k is some number), and jump back with f at the end. That's the closest you'll get to a function in Minkolang.
 
Wow people like the Alex-style addition challenge why
It's easily the worst challenge I've ever made
 
2:05 AM
@Mego Oh no, you like Homestuck? Just when I thought we could be friends.
 
Anonymous
@quartata Hats
 
@El'endiaStarman Hmm. Maybe the trailing f should be included, then? (If you're feeling pedantic, the preceding newline too, but I don't think that's necessary)
 
@AlexA. Also holy shit Alex got the gold badge hat
I thought I was cool with my silver badge hat
 
And, y'know, I asked twice about that.
 
Also, -1 b/c not on Github ¯_(ツ)_/¯
 
2:06 AM
@quartata And the gold badge! :D
 
@AlexA. I'm about to get that :P
 
Anonymous
@AlexA. Many years ago, I did. But then I regained a small bit of sanity. And then a friend who likes Homestuck wanted an IRC bot for that. So I converted Markovsky.
 
just need to post more answers
 
@Doorknob WOOT!
@Doorknob GO POST ANSWERS
 
Anonymous
@Ampora 4 years ago I was not aware of the existence of github
 
2:06 AM
I need 9 more
I remember when I needed like 50 more and I still fulfilled the score requirement, haha
 
@Doorknob Tacos
Do Tacos
 
meh
 
I'm not even close to the silver code golf badge
 
:(
 
249/400 score 41/80 answers
 
2:07 AM
I like how there's a delay between when avatars load and their hats load.
 
Alright, finally edited explanation into the Pyth answer
 
I'll gold hat in 40ish days
 
Longer than winterbash
;(
 
I cry
 
@PhiNotPi All of a sudden poof hat
 
2:09 AM
Why is "increment variable" so long in Pyth? It's 5 chars in Pyth and one in GolfScript... unless I'm missing something.
 
I has hat
I win ಠ_ಠ
 
@Doorknob Yeah, I think that's as short as it gets
 
@Doorknob There's no way that could be the shortest way to increment.
 
> 5 chars seems a tad long for "increment variable" in a golfing language... it's even shorter to increment a variable in C! (╯°□°)╯︵ ┻━┻
I have finally included a tableflip in a code golf solution
my life is complete
 
I have an exam tomorrow and I haven't studied ;-;
sooo
goodbye
 
2:14 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ Good luck! :)
 
Me too! Except I did study, which is unusual, because typically procrastination takes over
 
@El'endiaStarman Thanks.
It's a french oral exam ;-;
 
@Doorknob s/procrastination/PPCG/g
 
@Doorknob It's actually basically the same in Minkolang: z1+$z.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ C'est bon. You'll do great. :)
 
2:14 AM
<3 thanks. you're too kind ^_^
 
Java wins against Pyth???? (x++)
 
GOLFINATI CONFIMRD
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ trufax: hats improve test scores
 
someone please explain how did Java just outgolf Pyth
 
Anonymous
2:15 AM
And increment is one byte in Seriously: u
 
@Mego Fun fact: every time someone pings me I go back to this chat. Every time I go back to this chat, I procrastinate XD
I'll wear a Fedora or something
 
It'll b 2 in Brunswick St*w: x+
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Change the notification setting to "none". Ta-da!
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I can kick you from chat if that'd help. :P
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ Luckily for you there's a great source of hats running RIGHT NOW!
 
2:19 AM
No chats with stars on this part of th'transcript. Just saying.
18 mins, no stars. :P
 
... FryAmTheEggman got Alex addition in 8
Pyth wizardry right there
 
@Doorknob o shit
 
Anonymous
New hat!
 
2
A: Alex-style Addition

DavidMATL, 14 bytes iir10,2$YlZo-+ This is a program prompts two numbers as input. The amount to add on to the sum of the two inputs is 0, with probability 0.9, 1 with probability 0.09, 2 with probability 0.009, etc., so if you take a sample from a uniform distribution on (0,1), take the base-10 lo...

A new golfing language based on MATLAB
That's pretty cool
 
I get confused every time I see "Alex-style Addition" in here. I keep thinking people are talking to me.
 
Anonymous
2:31 AM
@AlexA. Well you'd be wrong :P
 
I know, that's why I get confused! :P
 
Anonymous
I failed to realize the big downside to other people learning Seriously
 
Anonymous
It's harder to snipe answers now
 
Anonymous
In that Arithmetic-Geometric Mean question, I started writing a Seriously solution. Then, I thought to look at the leaderboard and saw quintopia in the lead. Of course, it was a Seriously answer. :/
 
No one ever tries to snipe Minkolang answers... :P
 
Anonymous
2:36 AM
@El'endiaStarman That's because we try to win :P
 
ouch
 
Yay for being semi-golfing?
 
To be fair, he's tied with the previously-leading answer on Alex addition :P
 
Anonymous
'twas a joke :P
 
2:38 AM
[grumbles at FryAmTheEggman]
 
I'm going to let Chrome run some updates now, and then I'll be back.
 
I'm not even mad at having my seemingly-secure victory yanked away from me. That answer is awesome.
 
2
A: Alex-style Addition

SuperJedi224Binary-Encoded Golfical, 32 bytes Hexdump: 00 40 06 15 1D 17 08 01 23 1E 0C 01 14 14 14 00 01 14 15 1B 14 14 1A 38 1E 1C 3A 0C 01 00 0A 1E This encoding can be converted back into the original graphical representation using the included Encoder utility, or run directly using the -x flag. Ori...

@SuperJedi224 That's really cool.
A golfy Piet is something I've wanted to see for a while
 
I think you have to count the -x flag as +1, though
 
> This will never gives more than 15 more than the sum, but that's OK because 10^15 is much less than the chance a cosmic ray disrupts the computation.
I like that a lot. :P
 
2:39 AM
... that seems really sketchy, but technically... :P
 
Put the Filthy Frank intro on loop and nailed the Undyne pacifist battle 10/10
 
... what?
 
A battle in Undertale
 
oh
so Nethack then?
 
Anonymous
@Doorknob I dunno how I feel about that... It's technically incorrect, though it's going to be correct 99.99999999999999% of the time
 
2:42 AM
Undertale is so far the opposite of Nethack it's actually funny you mentioned it
 
@quartata incorrect
Nethack is the only game
all other games are simply reskinned versions of Nethack
 
> This means a probability of 3.7 × 10^-9 per byte per month, or 1.4 × 10^-15 per byte per second.
 
@Dennis We need a Jelly answer
@Doorknob xnor also beat your Pyth answer!
 
@Doorknob As stated in the answer, the repo also includes a transpiler to and from that encoding
 
@SuperJedi224 So? Unless you run the transpiler automagically in your interpreter, you still have to count the flag that does it
@AlexA. ... with the cheaty method, though
 
2:46 AM
Shortest time between answering and deletion for a sandbox entry? meta.codegolf.stackexchange.com/a/7718/2867
 
Bye guys
 
bye
 
Anonymous
I'll cheat too :P
 
Anonymous
0
A: Alex-style Addition

MegoSeriously, 11 bytes ,,Guèl9τ-++ This is a port of @xnor's Python answer. Try it online (needs manual input). Explanation: ,,Guèl9τ-++ ,, get inputs Gu push 1 + a random number in [0, 1) èl push the length of the string representation 9τ- subtract from 1...

 
Ha, I don't think I can really go shorter than the 12 bytes I already have.
 

« first day (1780 days earlier)      last day (3065 days later) »