« first day (1936 days earlier)      last day (2908 days later) » 

3:05 AM
Four thousand, seven hundred and thousand??! That is songs!
 
0
A: Sandbox for Proposed Challenges

Nick TThree Indistinguishable Dice code-golf Given three dice rolls (integer values from 1-6) in sorted order (so as to be indistinguishable), write a program that converts them to the sum of two dice with an identical distribution. Inspired by standupmath's The Three Indistinguishable Dice Puzzle. ...

 
Is the sandbox still used? Can't tell what meta-stance is on it...
anyways, someone want to give the above a quick looksee so it doesn't linger any longer than it needs to? :P
 
@NickT The sandbox is still used and always encouraged
 
3:16 AM
looks nice
 
@Downgoat I like it. Just could use a bit more color, like some grey-greens/blues
 
@Downgoat The title font is too large IMO
 
@Cyoce "Die, die, die"
 
@NickT Yes. Do you get the other half of the joke?
 
@AlexA. agreed
 
3:18 AM
@HelkaHomba agreed
 
other than repr and Reaper? no...
 
@NickT ok you get it.
 
> Leave a Replygoat
please no
 
@Doorknob hahaha
yesterday, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
@Downgoat I left a commentgoat
 
7
Q: Actually Integer Metagolf

MegoBackground Actually (the successor to Seriously) is a stack-based imperative golfing language I created in November of 2015. Like many other golfing languages, it has one-byte commands that perform different functions based on the contents of the stack. One of its specialties is mathematics - it...

 
3:20 AM
@Downgoat you're laughing at your own joke
4
 
@Mego yo
 
@quartata I'm just that funny :P
 
this challenge is a huge escalation over previous ones
the "produce integers with just arithmetic operators" challenge was nifty
 
How do I reference a capture group in the s/.../.../ syntax?
 
ditto for the same challenge with a very reduced instruction set computer, or a two-register computer
 
3:22 AM
@Cyoce in sed?
 
but a whole golfing language? this is getting out of hand
 
\N
 
@Downgoat I guess?
 
how does this look
 
so the first capture group is \1
 
3:23 AM
Entirely different
 
then \2
 
@AlexA. but does it look good/better
 
@Downgoat Beautiful. Now cover it in goats.
 
@Cyoce :D
@Cyoce i tried but its not working
 
@Downgoat You obviously didn't use enough goats.
 
3:24 AM
are goats like avocad now? You just keep sticking them in until it works?
 
I don't think that's how avocados work
 
That seems to be how memes work yeah
 
ok, i updated my blog: bloggoat.wordpress.com
 
@Downgoat That's generally how you get anything to work. Whatever it is, it's faulty, so you need to keep getting more until you find ones that were made correctly.
> a blog, written by a (obviously real) goat
> a (obviously real)
Evaluating the parentheses gives:
> a obviously real goat
should be:
> a (n obviously real goat)
 
@Downgoat how did your infatuation with goats even begin
 
3:27 AM
@Cyoce You'd have to ditch the space between a and (
 
@quartata He is a goat. The question is how his infatuation with humans and our culture began.
@AlexA. I don't believe English has significant whitespace.
 
9
A: Choose your own swag - the craziest contest idea ever! What were we thinking?

DowngoatA Tale of Swag and a Goat1 1. I'm not actually a Goat, I'm a regular programmer. I just pretend to be a goat for fun, it's an inside joke, that I don't know where it started. It was been my dream, to win some SE swag, since I first started participating on SE. Once upon a time, there was a you...

 
@Cyoce no I meant as a serious question
 
> that I don't know where it started.
 
0
Q: Three Indistinguishable Dice

Nick T Given three dice rolls (integer values from 1-6) in sorted order (so as to be indistinguishable), write a program that converts them to the sum of two fair dice with an identical distribution. Inspired by standupmath's The Three Indistinguishable Dice Puzzle. A follow-up "solution" video was a...

 
3:29 AM
@quartata English does, however, have significant punctuation. I see no ? in your message, therefore it is a statement. What was your question?
 
@quartata I was making a website with some friends, so I was putting some sports in a json, and one of those sports was like "Goat polo". So they were like "hahaha, goat polo?" you can't be serious. So then a bunch of goat jokes started going on and here we are today...
 
@Cyoce When his goatship crash landed on our goatless planet millenia ago, he roamed in search of others of his kind. At first he eschewed the humans, deeming them inferior beings. But eventually out of necessity he came to join them in brotherhood and ultimately embrace their culture.
 
@AlexA. well techincally I'm downgoat so a crash is considered a "succesful takeoff"
 
@Cyoce Sureitdoes:p
 
@Downgoat I believe a landing is considered a takeoff. Therefore a crash landing of a downgoat is a crash takeoff.
 
3:31 AM
@Cyoce I'm actually not speaking in English. I'm speaking in "standard loophole creole #swag." You can find an interpreter for it with a time machine
 
@quartata Sorry, my bad. When not given a file extension or monospace font my eyes default to English.
 
Gotcha, sorry.scrs
@Downgoat goat polo sounds like it actually might be pretty intetesting
 
> Doengoat
 
shut up
 
Buzkashi (literally "goat dragging" in Persian), also known as kokpar kupkari and ulak tartysh is the Central Asian sport in which horse-mounted players attempt to drag a goat or calf carcass toward a goal. It is the national sport of Afghanistan, although it was banned under the Taliban regime. Traditionally, games could last for several days, but in its more regulated tournament version, it has a limited match time. == History == Buzkashi may have begun with the nomadic Turkic-Mongol peoples who have come from farther north and east spreading westward from China and Mongolia between the 10th...
@quartata :(
 
3:35 AM
Goat dragging?
 
Whoa that's amazing
 
Sounds like what happens when people put leashes on cats and try to take them for walks.
 
> time. == History == Buzkashi
 
> It is the national sport of Afghanistan
._.
> The headless carcass of a goat used in buzkashi
 
Wait, it's done with a goat carcass. Lame
 
3:36 AM
OH MY GOD WHY WOULD THEY SHOW A DEAD GOAT
is that you upleft goat?
 
I thought it was a live goat. That would have been way better
definitely ups the difficulty plus afterwards they can kill and eat it
If you play with the carcass first it just gets bloated in the sun at the end. No one wants to eat that. Gotta eat it while it's fresh.
 
@quartata ....
 
Hey, I'm just talking from a pure logistics standpoint.
 
> No one wants to eat that.
There is nothing a goat doesn't want to eat.
 
3:41 AM
Oi, goats aren't cannibals. Have some sensitivity
They might take a lick or two though
 
@Downgoat escaping errors
Wow. those got mangled. They're getting double escaped.
 
We're no strangers to goat
 
4:05 AM
@Cyoce dammit wordpress
> &&amp
such amp
@Cyoce fixed
 
@Downgoat thanks
 
np
 
And what is this import syntax?
 
You know the goats and so do I
 
4:17 AM
ono ive been goat rolled
\o/ 53 views today!
 
s/(\w+)/\1goat/g
 
$ echo '\o/ 53 views today!' | sed -E 's/(\w+)/\1goat/g'
\o/ 53 viewgoats today!
 
Well, that's not what I wanted it to do, but it produces a better result
 
@Cyoce oh, sed doesn't support \w
 
@Downgoat ಠ_ಠ
 
4:29 AM
Hello
 
@Cyoce use [[:alpha:]] I dind't make sed
@zyabin101 Hello!
@zyabin101 (shameless self-promotion:) did you see my new blog: bloggoat.wordpress.com
 
@Downgoat Cool.
 
:D
 
@Downgoat Whoah. what is this (words:) syntax?
 
@Cyoce it is a new babel feature
 
4:32 AM
@Downgoat Thanks, I didn't know that either, but that was in reference to (shameless self-promotion:)
@Downgoat ಠ_ಠ
 
4:44 AM
What should file extensions be for Cheddar?
.cr? .chdr? .cdr?
 
Noooooo!
Not CR!
They are not welcome here!
 
haha, okay, okay.
@Quill ^^
 
And keep them out of our cheese!
 
@Cyoce ;-;
 
@Cyoce but what if I need Quills help on Cheesecloth
 
4:45 AM
@Cyoce I thought we were cool
 
Anonymous
@VTCAKAVSMoACE I was just wishing yesterday that my recent challenges could get some love, and then you went and posted a 500 point bounty on my latest one! :D <3
2
 
500 point bounty, wow :D
 
@Downgoat He can make the cheese, but you must remove all parts of him from the cheese before pushing it!
 
@Downgoat .chedd
 
@Quill that is way to long
 
4:47 AM
@Downgoat *.cheddar?
 
CHEDDE
D
 
how about.chz
so like cheez
 
@Downgoat That's what happens when you let CR name things!
 
Anonymous
I guess that means I should start working on a solution, too :P
 
@Cyoce -1 not golfy enough
 
4:49 AM
@Quill your code review buddies would be disappointed in you saying that
 
Anonymous
I have a partial solution that I've been using for golfing primes/semiprimes in Actually that shouldn't be too hard to extend
 
@Quill Sorry my English implementation is very verbose. Like Python.
 
@Cyoce then stop using Java
 
Anonymous
Python is hardly verbose
 
Anonymous
It regularly beats most other non-golfing languages
 
Anonymous
4:50 AM
It's explicit, but not verbose
 
JavaScript ES6 beats python more of the time I think
Did SE change the search box style on main? it looks difference
 
@Mego Explicitness leads to verbosity. Verbosity leads to anger. Anger leads to hate. Hate leads to suffering.
 
@Downgoat I think so
or maybe Chrome nightly updated the base style
 
@Quill i'm using safari
 
@Downgoat as does Ruby, and occasionally ES5 JS
The main reason we see a lot of Python wins is that it's incredibly common. The other languages with that level popularity tend to be on the verbose side.
 
Ok. When has Python beaten Ruby?
 
I've nearly got my yearling badge on PPCG
 
0
Q: Flatten the Array!

StingIn this challenge, your task is to create a program which takes in a nested array and returns a single-dimensional flattened array. For Example [10,20,[30,[40]],50] should output [10,20,30,40,50]. Input The input will be a nested array (eg. [10,20,[[[10]]]]). You can take the input as function ...

 
5:18 AM
@NewMainPosts the Pretzel answer to that would be something like x/†, where x is whatever operator I choose to mean "keep applying the given function to the given argument until f(x) = x"
@Cyoce Edit: I meant x/,
 
5:45 AM
There's also a Jelly builtin for that
Oh wait
 
@MarsUltor There's also a Pretzel builtin for that.
@Cyoce Anyone know what that's called? (the operator I described as x)
 
limit operator, maybe
 
Hmm. l and L are taken though... I'll need a different name for it then.
BTW In Pretzel the x operator would be defined as 10←?=eaeefaea (lol that's a lot of a's and e's)
 
6:21 AM
any suggestions how to make codegolf.stackexchange.com/questions/80095/… more clear?
 
Welp, Worldbuilding just got its own design.
 
@Mego you around?
 
Anonymous
@Sparr Yep
 
Seriously().eval() reads from stdin if the program has no stdin-reading instructions
so I have to hit ctrl+d each time I call it
am I doing something wrong?
 
Anonymous
Nope
 
Anonymous
6:27 AM
As I explained in the comment, it's attempting to do implicit input
 
so I have to hit ctrl+d a thousand times to run your scoring script? :/
 
Anonymous
You can pipe /dev/null into the script to avoid that
 
Anonymous
Or I could fix it really quickly
 
I am not aware of how to pipe anything to stdin in the middle of a python program
oh, you mean to the whole python program, not just to the seriously.eval call
 
Anonymous
Yeah
 
Anonymous
6:32 AM
I edited the script to explicitly pipe from devnull
 
spiffy
I can't use it, because of the long startup of my script, but it's good to know it works
 
Anonymous
I'm working on a solution using Sage because it has some nice, fast builtins for math stuff
 
0
Q: How should you arrange your chairs?

Dr Green Eggs and Ham DJYou teach a class of students with interesting preferences for how their chairs are arranged. There are 3 very specific requirements they have for how the chairs are arranged: They most be arranged in a rectangle, even if it means some chairs go empty. There must be as few empty chairs as possi...

 
Is there a way to clear my cookies on chrome mobile?
Nvm
 
Anonymous
6:49 AM
I keep making my Sage cell tab freeze because of recursion >_<
 
Nice
 
no suggestions? :\
 
Anonymous
I don't know how to improve it because I have no idea what you're asking
 
⊂_ヽ
  \\ _
   \( ͡° ͜ʖ ͡°) 3
    < ⌒ヽ F
   /   へ\ A
   /  / \\ B
   レ ノ   ヽ_つ 5
  / / Y
  / /| O
 ( (ヽ U
 | |、\
 | 丿 \ ⌒)
 | |  ) /
`ノ )  Lノ
(_/
 
if you have three dice rolls, how do you come up with two dice rolls
fairly
 
Anonymous
6:56 AM
@VTCAKAVSMoACE Was that necessary?
 
@Mego no
 
Anonymous
It takes up half of the chat window >_<
 
@Mego print(Seriously().eval("99\xFC"))
that should print the result of pow(9,9), right?
 
Anonymous
Yep, assuming you're using CP437 as the encoding
 
I specified it as my source encoding, not sure how to specify it for strings
 
Anonymous
6:59 AM
print(Seriously().eval("99"+CP437.chr(0xFC)))
 
Anonymous
(assuming from seriously import Seriously, CP437)
 
Anonymous
Actually, from seriously import Seriously, chr_cp437; print(Seriously().eval("99"+chr_cp437(0xFC))) is easier
 
Anonymous
And remember that Seriously.eval returns a list
 
Anonymous
On an unrelated note, only 92 more rep until I'm forced to see chat flags!
 
@Mego ;D
 
7:09 AM
37
Q: Code for Greatest Common Divisor in Python

Luke DThe greatest common divisor (GCD) of a and b is the largest number that divides both of them with no remainder. One way to find the GCD of two numbers is Euclid’s algorithm, which is based on the observation that if r is the remainder when a is divided by b, then gcd(a, b) = gcd(b, r). As a base...

After reading this question, its phrasing (and lack of being a question) left me expecting it to be ended with "shortest code (in bytes) wins!"
 
7:20 AM
0
Q: Restricted average (arithmetic mean) – i.e. without obvious built-ins

NᴮᶻIntroduction The arithmetic mean is defined as being equal to the sum of the numerical values of each and every observation divided by the total number of observations. Symbolically, if we have a data set containing the values a1,…,an. The arithmetic mean A is defined by the formula Objective...

 
Anonymous
Yay, my suggestion for a Reddit server name got accepted!
 
@Mego Ooooh show us
 
Anonymous
This sequence of events has been fantastic
 
7:34 AM
@Mego
def nCr(n, k):
    if k > n:
        return 0
    elif k==n:
        return 1
    return math.factorial(n)/(math.factorial(k)*math.factorial(n-k))
your nCr and nPr were driving me nuts
 
Anonymous
I stealthily found my roommate's Reddit username, used his post history to trick him into "revealing" it to me, embarrassed him by reminding him of some terrible rage comics he made 4 years ago, gave him reddit gold (anonymously, so he didn't find out my username, with the message describing how I originally got his username and tricked him into "revealing" it to me), which coincidentally was enough to get Reddit to its gold goal for that day...
 
Anonymous
...which allowed all people who bought gold that day to vote on the name of a new Reddit server. I suggested "404ServerNotFound", and it got the most votes!
 
wow much luck so wow
 
Anonymous
@Sparr Hmm?
 
7:39 AM
you're using an interative method for calculating nCr and nPr
there's a closed form using factorials
I'll send a pull request later if you need me to
 
Anonymous
Oh
 
Anonymous
I thought I was using the closed form
 
Anonymous
I'll do that now :P
 
I'm currently brute forcing my way through every 4 character program made from a subset of the instructions you allowed
 
Anonymous
Lol, good luck
 
7:47 AM
it's a weak subset
no loops, no functions, no literals
 
Anonymous
I've pushed the nPr and nCr improvements
 
yay
 
Anonymous
I'd like to see what you come up with for 9699690
 
Anonymous
Another thought for a trivial solution: "{}kεj".format(str(n)[::-1])
 
Anonymous
It's significantly worse than the integer literal trivial solution, but interesting. I've never considered doing that.
 
7:57 AM
my solutions so far work forwards from programs to numbers, not backwards from numbers to programs
which is to say, I probably come up with nothing for 9699690
 
Anonymous
Probably not
 
Anonymous
The shortest I can come up with is 5 bytes
 
considering 54 possible instructions, I'm brute forcing 5-byte programs now
 
Anonymous
Which instructions?
 
I feel like the gamma function could be seriously useful for that question.
Do you have a factorial as well?
 
8:04 AM
@Mego 0123456789│DFPTeu⌐¬½¼τ±²;!╤╙╣rKLπΣi♂ka┼╟╞*+-/\ⁿ█▄x*+-/ ():
@VTCAKAVSMoACE yes, factorial and prime(n) and fib(n) and exp(n) and a few others for generating large numbers
 
@Sparr urjghcydjfg
 
Anonymous
My 5-byte solution for 9699690 can be generated using those commands
 
ok, let's see if I've over-pruned :)
my algo right now is to pick next instructions based on what the top of the stack looks like
 
Anonymous
Actually, no, you're missing a vital command
 
Anonymous
You should include r and R
 
Anonymous
8:07 AM
Including the range commands should vastly increase the set of numbers you're able to generate
 
r is in there
just before K
 
Anonymous
Oh I'm blind
 
Anonymous
In that case, 9699690 is definitely doable in 5 bytes using those
 
R is on my list of things to add once I add functions
also, damnit
89╙ⁿF
Fatal Python error: Cannot recover from stack overflow.
 
Anonymous
You should sort the commands by ordinal when posting :P
 
8:10 AM
you're using recursive fib(n)??
there's a closed form for fib
 
Anonymous
Oh yeah @KennyLau changed that, blame him
 
def fib_formula(n):
    golden_ratio = (1 + math.sqrt(5)) / 2
    val = (golden_ratio**n - (1 - golden_ratio)**n) / math.sqrt(5)
    return int(round(val))
 
Anonymous
The problem with the closed form is FP imprecision causes havoc with larger indices
 
there might be accuracy problems with Really Big Numbers there
how big?
maybe use the closed form for anything under some big constant?
 
Anonymous
I don't remember the exact index where it starts breaking
 
8:11 AM
Just find the value for which the precision becomes too large to control, then find the value of a_(k-1) for that, then start adding again.
 
anyway, even if you don't use the closed form, use an interative solution
 
Anonymous
Yeah I'll change it to iterative
 
Anonymous
And I'll do some smart memoization
 
Anonymous
Actually I can cheat a bit and still use the builtin memoization
 
Anonymous
Or I could be smart and just do it right
 
8:18 AM
my code did not find 9699690
I'm probably over-pruning. Since you mentioned r and R, I suspect I'm over-pruning something that works on ranges
 
Anonymous
I pushed the Fibonacci improvement
 
is 9699690 something like 100rΣ ?
ignoring that 100 is not a literal :)
 
Anonymous
Nope
 
Anonymous
Product of first 8 primes
 
8:23 AM
I don't have ♂ yet
oh, I guess I do
wonder why that didn't get produced
 
Anonymous
Dunno
 
Anonymous
Maybe because it's more like a prefix operator and it confused your generator?
 
oh
no
I said I was using P
I'm not
because your P is so slow for big numbers
I removed it before I started pruning
gonna have to make smarter pruning logic to account for ♂, though
 
Anonymous
That's a problem, because prime factors is one of the best ways to shorten integers in Actually :P
 
Anonymous
It's slow because I'm using pure trial division :P I really need to implement Miller-Rabin
 
8:43 AM
ok, added P
and added smarts for figuring out when to avoid things after ♂
 
8:54 AM
4╤r♂r
not smart enough apparently
I don't think I have the patience or the RAM to finish running that
 
Pallas's cats.
 
@AlexA. CUTENESS ALERT! >.<
 
TIL manul cats are the best kind of cats
 
Believe it or not, theft is illegal in the US. — Ben Miller Jun 17 '15 at 0:22
Ben, can you provide a reference to back up this statement? — JoeTaxpayer ♦ Jun 17 '15 at 2:10
 
@VTCAKAVSMoACE But not believing in it is legal?
 
9:06 AM
@Dennis, on the Actually and Seriously Try it online pages, clicking "Actually" in the top bar errors, and "Seriously" gives the Actually branch. ~_~
 
@Mego timing the challenge in seconds per invocation still doesn't work well for me
I do all my calculation up front
 
Also, @Mego the master branch doesn't have the commands.txt file.
 
commands.txt is moved to doc/
 
Hi
 
Hi
 
9:11 AM
Anyone knows here, if .mkv files can be runned on windows?
I know, I should ask that on the probably superuser chat
If it was converted on mac.
 
@Bálint Use VLC. If VLC cannot play it, nothing can play it.
 
2147483648 1╤P╙
 
9:27 AM
@Sparr -1, not a prime.
 
@flawr My schoolmate had this problem with an mp4 from a mac computer, snd not even VLC could play it on a windows computer, this is why I helped him converr it to mkv.
 
@flawr ??
 
She made a video on a mac computer for a school project, but when she tried to play it on the school's windows computer, then it didn't work, not even with VLC
 
@Mego here are the only 5-byte solutions I found that include ♂
30030 6r♂Pπ
34560 6r♂!π
46234 9r♂!Σ
510510 7r♂Pπ
9699690 8r♂Pπ
24883200 7r♂!π
223092870 9r♂Pπ
 
Sorry, I'm a bit tired, english just doesn't go well, when I'm tired,
I'm not sure if .mkv can solve that.
@flawr
 
9:36 AM
@flawr what about -1 being not a prime?
 
9:57 AM
@Bálint VLC plays .mkv
If not, then the VLC is broken
or really out of date
 
@Sparr Your number is not a prime.
@MarsUltor Or the .mkv file is broken.
 
10:36 AM
@Zgarb @CᴏɴᴏʀO'Bʀɪᴇɴ @Dennis Sorry for bothering you guys: in J, how would I do a fork, which the second argument is a hook?
i.e. (x f y) g (x h i y)
 
11:14 AM
@KennyLau Always free to bother me. I believe it would be something like f g (x h i)
Wait
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Heh. But where the y goes?
 
(x h i)@]
@zyabin101 its a tacit phrase that has x and y as implicit left and right args
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you know, x is not permitted
 
Sorry, I took x to be a verb >_>
Have you tried f g h i?
If that doesn't work, try f g (h i)
 
doesn't work...
x (fg(hi)) y
the (hi) is executed monadically
wait..
so that means it works lol
Thanks
 

« first day (1936 days earlier)      last day (2908 days later) »