« first day (2437 days earlier)      last day (2391 days later) » 

Should I dupe-hammer?
 
@LeakyNun Wait for someone else to close it, then hammer. On an unrelated note, brb, VTCing
 
Personally if I had a hammer, I'd wait for a bit, but I've voted.
 
@LeakyNun no
this requires a start and end
which if I'm not mistaken is really a different problem
 
12:18 AM
hmm
 
actually
 
I don't know
 
isn't it a matter of a simple xor?
no it isn't
nvm
you can change the starting position with a simple xor
but not the ending position
 
right
 
@LeakyNun I dislike how every word in that is a hyperlink. Took me 5 clicks to get to the question
 
12:20 AM
@LeakyNun look at the answers between the two questions
they're substantially different, I do believe the problem is harder
 
@cairdcoinheringaahing you just don't know which one to click :P
for me I know perfectly it's the timestamp
 
not every word
only 3
(and also I close-voted the wrong one because I clicked the "related" link and then dupe-voted it as the one Dennis linked to 3 years ago, whoops)
(because I also don't know which one to click, thanks to my SE inexperienceness)
lol my bounty expires in 9 minutes and nobody else has answered that challenge rip
I think my bounty wasn't high enough for people to think it's worth it to try to answer cuz it's a pretty tricky question
 
@HyperNeutrino Which challenge? I have 2 minutes to complete it :P
 
KNOT or NOT?
I can leave it in grace period if someone has an answer almost ready for posting :P
 
12:35 AM
> that ended 14 secs ago.
 
@HyperNeutrino haha
 
Welp, there goes 100 wasted rep :P
 
knot theory
 
I have 24 hours
 
I'm not touching that with a 10 feet pole
 
12:36 AM
to award it
@orlp ok :P but also the correct term is "foot" :P
(sry i had to)
 
@HyperNeutrino no it isn't
 
@HyperNeutrino The correct term is meter
 
I'm talking about a pole with 10 human feet attached to it
5
 
:o
@cairdcoinheringaahing +1 for metric
 
The correct term is actually metre.
3
 
12:37 AM
I swear I can spell. But 1:30am conversation tends not to work out :P
 
if the base unit is a kilogram I propose we rename the gram to millikilogram
 
@orlp Or just a gram? Milli cancels out kilo
 
@orlp but a kilogram would then be a kilomillikilogram and then a milligram is a millimillikilogram because everything is named relative to the base term (not unit)
 
So would a tonne be a millikilokilokilogram? I thought we made things shorter here, not longer
 
@cairdcoinheringaahing little-known fact
the correct pronunciation is
milliki-loki-loki-logram
 
12:42 AM
I prefer tonne. It's shorter and has no disputes over pronunciation
 
@cairdcoinheringaahing Is this not codebowling.SE? Have I come to the wrong place?
 
@LyricLy You are clearly in the wrong place :P (Or, as we say here: "You like nice code? Here's the way to Code Review") :DD
 
but "nice code" is short code per our definitions
3
 
1:18 AM
Hello hello
 
1:32 AM
@HyperNeutrino I just realised, you are the user with the most rep who doesn't have any gold badges :O I'm not sure if that's good or bad :P
 
1:43 AM
@cairdcoinheringaahing wait really ._. prolly bad
@Qwerp-Derp hi
I still remember back when we had about the same rep at 3K and I overtook you by a bit
lol
 
Damn I've been gone for a long time :P
 
what does this even mean ._. oeis.org/A000725
@Qwerp-Derp yeah I noticed your inactivity up until lately :P
 
I think I should get back to PPCG, I've been messing around with Crystal a lot lately
 
oh yeah I remember someone (probably you) said that it was a nice language
oh that does look nice
 
The proof golf looks really interesting, I might have a crack at it
 
1:46 AM
yeah proof golf is a really interesting tag
dammit I can't install crystal because my linux system is borked
 
CMC: find a way to reduce these two functions into one:
f = P1|A->G:P3|G:*||
G = P2|f->P3|G:*|:*|
syntax is * = no-op. P1|A:B| = if (P1) A() else B(). f -> P3 = P3(f)
trying to do some optimizations to VSL but I'd need to be able to solve the above problem
 
Anonymous
@Downgoat Needs more Y combinator
 
2:02 AM
Is there a way to turn -(a - b) into b - a?
 
have you proven that -a = -1 * a
nvm that doesn't help
what is this for?
 
@Qwerp-Derp -(a - b) = -a + b = +b - a = b - a
 
@HyperNeutrino Proof golf
 
which one
@Qwerp-Derp (-a)*(-a)=a*a?
 
@HyperNeutrino Yup that one
I'm not sure if it'll help
 
2:08 AM
subtraction is not an operator ._.
 
But it's worth a shot
I'm also trying to go to the route of -a * -a = -(-a) * a
 
you'd have to write -(a + (-b))
 
@Qwerp-Derp hm that looks like a viable option
 
And then I'll sub in the 6-step axiom
Provided in the question
 
2:09 AM
hm ok
 
Shit why am I separating my messages up like this when I don't need to Q AQ
 
dw
I'm referring to the previous messages, I split them up into separate chunks when I didn't really need to
 
huh ok. I've had people complain about me doing that before as well :P
 
2:25 AM
Does this work?
 
Hm?
also does my tag wiki for seem appropriate? please help improve it if you see things I've missed
I see someone added an example :D \o/
so yay thanks funky computer man
oh there have actually been a lot of edits to the top part lol
(I mostly adapted the tag info for code-golf but in hindsight that didn't work very well :P)
 
Yeah I only typed half my message because I had to leave the house, I was about to post a proof of something for the proof golf
I have two proofs now, an improved a = -(-a) and -1 * a = -a
I'm not sure if any of these are useful, but ehhh
 
Anonymous
2:41 AM
I'm gonna post this challenge soon - last call for feedback
 
one approach for proof-golfs that I think might be helpful is to assume some common sense things, and then prove them later if you actually do use them
can you post before my mom makes me go to sleep xD
although my wifi will probably cut me off before then so yeah rip
 
a = a + 0 = a + -a + -(-a) = 0 + -(-a) = -(-a) + 0 = -(-a)
@HyperNeutrino I mean everything is common-sense, so that's not really helpful :P
 
@Qwerp-Derp well I mean use common sense things that aren't axioms, and then prove them later on so you don't waste time proving common sense things that you don't actually use
 
The first lemma above is 5 steps (on mobile, can't do newlines)
 
3:00 AM
gtg now o/ good night/morning PPCG
 
3:26 AM
0
Q: Frequency Distribution of Multiple Dice Rolls

MegoGiven two positive integers a and b, output the frequency distribution of rolling a b-sided die a times and summing the results. A frequency distribution lists the frequency of each possible sum if each possible sequence of dice rolls occurs once. Thus, the frequencies are integers whose sum equ...

 
4:05 AM
> among the animals people like most
 
4:26 AM
@Mego "b can be 1, and if it is, the output is always [1]"
you mean [a]
the number of rolls times 1
oh right I see
 
Anonymous
4:47 AM
For any roll ad1, there is only one possible outcome: rolling 1 on all dice. Thus, it's consistent with the b**a rule, and so the sum of the frequencies must add to 1**a = a. Therefore, the output for ad1 is always [1], regardless of a.
 
5:34 AM
How do you a Cartesian power in Haskell?
Where you have one list, [1..6] for example, and you're trying to get the Cartesian product of m copies of that list
@orlp This is starting to sound a lot like Hawaiian
Found it: mapM(\x->[1..x])(replicate a b)
 
6:03 AM
@Qwerp-Derp You are missing association steps here.
Here is your proof with association:
a = a + 0 = a + (-a + -(-a)) = (a + -a) + -(-a) = 0 + -(-a) = -(-a) + 0 = -(-a)
One extra step
 
Anonymous
I was expecting more answers involving convolution :P
 
@Mego oooh smart
but idk how short that can be made without builtins
 
6:18 AM
@FunkyComputerMan Oh, I thought I had something there :P turns out I just missed a step
 
Can someone explain how mapM works in Haskell? I am trying to golf with it and I can't understand the Hoogle explanation
 
@FunkyComputerMan Do you know what sequence does?
 
No I'm not familiar
 
sequence takes a list of monadic values and turns that into the same monad with a list inside.
In types that is `sequence :: [m a] -> m [a]`
for example if you had a list of IO actions sequence would combine it into an IO action that returns the list of results of the IO actions if they were executed in left to right order
Here is an answer that shows how sequence can be defined stackoverflow.com/a/5299489/8179137
mapM is just what you get when you combine map with sequence
So if you take a list of values map them to monadic values with a function, then combine them into one monadic value with a list inside
 
6:44 AM
Ok i see
 
well it is slightly more general than what I said, it works for any traversable, not just lists, but lists are probably the most common use.
 
@Downgoat It's part of their plan to overthrow humanity, they have to appear likable to infilatrate us from the inside.
 
@FunkyComputerMan also if you are considering using mapM there is also forM which is the same thing with the arguments reversed
 
7:09 AM
@Potato44 Thanks tht might save me bytes in the future
 
7:31 AM
Thanks for the 11 bytes @FunkyComputerMan :D
 
8:05 AM
hi all
 
8:24 AM
@HyperNeutrino Hehe, one of my (05AB1E) answer contains LIãO :-)
 
random question.. I have a pdf with a transparent background. How can I make the background opaque?
only because I love the PPCG chat room :)
 
9:07 AM
I worked it out
 
Anonymous
9:29 AM
Haskell is beautiful: ap((.).zipWith((sum.).zipWith(*)).repeat)(ap((.).(ap(ap.(take.).flip flip 1.((+).).flip((-).length))(flip flip [0..].(map.).flip.flip(flip((.).take).drop))).length)(ap((.).(++).flip replicate 0.subtract 1.length)(flip(++).flip replicate 0.subtract 1.length)))
 
@Sherlock9 you can replace replicate a b with [1..a]*>[b] (also consider tips for golfing in haskell:)
 
@flawr I have been made aware: codegolf.stackexchange.com/a/144152/47581 Thanks for the tip all the same :D
 
@Mego It has quite a lot of points considering it is a point free function.
 
hi
 
Anonymous
@flawr That's what happens when you piecemeal a set of pointful functions through pointfree.io and then slap them together :P
 
9:31 AM
@Mego holy shit why is that a thing
 
Anonymous
@Maltysen Discrete convolution
 
not very discreet.
 
@Mego huh what? discrete convolution is the math thing where you subtract two lists at all possible offsets
 
Anonymous
 
@Sherlock9 cool, I haven't used group in a while.
 
Anonymous
9:32 AM
@Maltysen More than one way to skin a cat
 
@Mego oh you mean ur program does discrete convolution
 
Anonymous
Yep
 
i was talking about pointfree.io
lol
 
@Mego Modern pop lyrics
 
Anonymous
Oh yeah pointfree.io is great for making Haskell code more unreadable
 
Anonymous
9:33 AM
@mınxomaτ One moment, feeding this to a narration program
 
@flawr I am trying to see if pointfree would be more golfy, but the result from pointfree.io is getting an error: ! = ((map length . group . sort . map sum . mapM g) .) . (. return) . (>>) . g
What have you been using instead of group?
 
@mınxomaτ if you say the periods like "dot" really short, and ignore the parens, it doesn't sound too bad as a rhythm
 
@Sherlock9 you have to use (!)=...
 
Ahh
 
@Sherlock9 nothing, I just didn't remember there was this function:)
 
9:35 AM
Dangit, it isn't more golfy: 90 bytes
 
@Sherlock9 usually partial pointfreeness is the way to go
@Mego when pointfree becomes pointless
 
Any ideas? I'm in completely unfamilar territory here :/
 
Let me compare to the original
Hm I don't think pointfree is gonna give you any benefit there.
 
Anonymous
 
@flawr Yeah, a and b only show up once. Thanks anyway :D
 
9:39 AM
You need to add some autotune and some sick bass.
 
Anonymous
@flawr Too much effort for me right now :P
 
@Sherlock9 I'm not sure but I think map length$group$sort seems to count the number of occurences of each entry (i.e. makes a histogram) perhaps this could be golfed.
 
I thought so, but I'm not sure if there's a count occcurences of each distinct item built-in in Haskell
 
I have to say I like the increased Haskell density in here right now:)
 
Well, I'm trying to learn it for potential use in my undergraduate thesis
I figured golfing wouldn't be a too terrible way to learn the language in addition to regular tutorials
 
9:43 AM
@Sherlock9 At some point read the typeclassopedia, it will take you to the next level!
@Sherlock9 Data.Histogram is probably gonna be too long.
 
@Mego if it wasn't for the weird voice, it would almost be like rap
have you tried the chrome webspeech api?
can u give the text did u use, ill try it
 
Anonymous
The text I used is the glorious tacit blob above
 
oh you didn't get rid of the parens?
 
@flawr It is. import Data.Histogram\n is the same number of bytes as map length$group$sort$ apparently
 
Anonymous
I'm quite pleased that a) I've written a challenge that is being talked about in TNB, and b) the talk is pertaining to Haskell :)
5
 
Anonymous
9:50 AM
I should probably add a histogram function to Actually
 
@Mego heh
really? that would be one heck of a unique feature not present at all in other languages lol
 
apparently there's no need to take 1 to n
it works the same with 0 to n-1
groundbreaking
 
Pyth really needs a one-byter for .gk (or two-byter)
@EriktheOutgolfer tHey probably means that taking the Cartesian Power works for both [0, input) and [1, input]
 
but what is he referring to
the challenge?
 
10:02 AM
The challenge we've been talking about for the past hour: codegolf.stackexchange.com/questions/144146/…
Yes. It doesn't matter if the dice are 1-indexed or 0-indexed, so that should help with golfing
 
but the point is to group the sums, and if everything is -2 it shouldn't affect anything should it?
 
Consider Python: range(1,a+1) for 1-indexed dice, but range(a) for 0-indexed dice
 
@EriktheOutgolfer The indexing doesn't matter, indeed
Also, does anyone see golfing possibilities for my 05AB1E answer? (And Jelly too)
@Sherlock9 Yeah that only helps answers in non-golfing languages :/
 
Anonymous
It's interesting that performing an n-dimensional Cartesian product, summing, and counting the frequencies produces the same result as repeated discrete convolution. In a way, it's analogous to doing computations in the time domain versus the frequency domain, and thus somewhat related to the Fourier transform.
 
Anonymous
"How is rolling dice like playing a chord?"
 
10:17 AM
@Mego yeah, cuz you have a horizontal line in the frequency domain, and then u convolve it
 
@Mego By way of some convoluted mathematics?
 
Anonymous
@Sherlock9 "convoluted" hue hue
 
Is the pun after that "saturation saturation"?
 
0
Q: Simulate Alpha Decay

caird coinheringaahingAlpha Decay is a kind of radiation decay where every time the atom "decays", it loses a helium nucleus (an alpha particle). This means that an atom loses 2 protons and 2 neutrons each time. Your task is to simulate this. Given two integers as input, m and p, where 1 < p < m, count down in steps ...

 
10:45 AM
@NewMainPosts Half an hour, and no comments, no answers and no votes. Could I get the Tumbleweed badge? :P
 
Only if you write an answer yourself
 
@cairdcoinheringaahing Now you definitely cannot :P
And sorry for that edit, rolled back, misread the post
 
@Mr.Xcoder Why? Because it was edited?
 
@cairdcoinheringaahing You have +1
 
> Asked a question with zero score, no answers, no comments, and low views for a week.
Yep. Why did someone have to upvote? :(
 
11:01 AM
<insert look of disapproval>
 
ಠ_ಠ There you go :P
 
CMC: Given two integers a and b*, return all b-element combinations of the range [1, a]
3, 2 -> [[1, 1], [1, 2], [1, 3], [2, 1], [2, 2], [2, 3], [3, 1], [3, 2], [3, 3]]
 
Must be a builtin.
 
4, 3:
 
Anonymous
@Mr.Xcoder Actually, 2 bytes: R╧
 
Jelly has Å“Ä‹; but that removes duplicates.
 
@Mego interesting
 
g x=[1..x]
a!b=mapM g$g b>>[a]
 
@someone I can do it in 1 byte anyway
 
Haskell, 30 bytes, Try it online!
 
11:12 AM
@Mr.Xcoder Jelly, 7 bytes: Å“Ä‹;Å“cU¥
No idea how you did it in 1 byte
 
@cairdcoinheringaahing 1 byte.
@cairdcoinheringaahing Want a hint?
 
@Mr.Xcoder Nope. Trying all dyads relating to lists first :P
 
Found it. It's ridiculous how many builtins there are
 
@Mr.Xcoder Jelly, 1 byte: á¹—
 
Yep
 
11:15 AM
And there you go
 
I (ab)used that in my answer too
 
I knew I was close when I tried p. Natural jump from p to á¹— :P
 
Well it's repeated Multidimensional Cartesian Product
 
:O I've got the same amount of rep this year as Sp3000
 
@cairdcoinheringaahing related: I have more than Stewie and nearly as much as DJ :O
 
11:18 AM
I'm 2 rep away from my next profile picture change :P
 
How did I never look at the"year" tab?
@cairdcoinheringaahing wait... you have fixed profile pic milestones?!
 
@Mr.Xcoder Every time I get a new privilege, I change my profile picture
:O @Mr.Xcoder you have gained the most rep this quarter on the site
 
@cairdcoinheringaahing I know :-)
Summer is great
Now I'm definitely going to move down by a couple of ranks (or maybe couple === a lot)
 
This is the most varied I've ever seen the rep leagues for PPCG. Week: PhiNotPi, Month: Arnauld, Quarter: Mr. Xcoder, Year/Total: Dennis
 
Lol
 
Anonymous
11:22 AM
@cairdcoinheringaahing The QFT team is catching up :)
 
Anonymous
@cairdcoinheringaahing Blame QFT :P
 
Fun fact: PPCG has 56,392 members
 
godbangit I was sooo close to 10k last quarter
@cairdcoinheringaahing that is as arbitrary as it gets >___>
 
However, SO has 7,792,693 members. We'll catch them soon :P
Hehe, I'm 361747th in terms of rep on SO :DDD
 
@cairdcoinheringaahing soon == ಠ_ಠ
Also I think you really like statistics
 
11:27 AM
@Mr.Xcoder Yep. I'm fascinated by them :P
 
We are sooo behind the schedule when it comes to mathematics... We were taugth intervals... 3 days ago!!
 
Yay! Exactly 3,500 rep!
 
Nice!
 
@Mr.Xcoder Says the one with >12k rep :P
@Mr.Xcoder are you up for some JHT?
 
@cairdcoinheringaahing You'll catch me soon
@cairdcoinheringaahing yes, but be pacient with me because I am on mobile
 
11:37 AM
 
11:52 AM
@Mr.Xcoder If you want help with mathematics, posts CMCs about the topics you find hard. :-p (Not serious advice.)
Does anyone want to see the fixed version of the thing I mentioned ~24 hours ago?
(Search for "3 hours" and "head against wall" if you don't remember.)
 
Ahh
Sure, how is it?
 
It's supposed to determine whether a weak German verb has a Kranton stem and, if so, pad it.
Chat says that the message is too long. I'll put it in the sandbox.
It's four messages long.
I suspect it would've fitted in 3, but I would've spent a long time doing that.
It was a pain to debug. :-/
 
What's CMC
 
@FrownyFrog Chat Mini-Challenge.
I see you're new! :-)
 
12:06 PM
It's fun.
Make sure to read the chatiquette if you haven't already.
 
@wizzwizz4 I think mathematics is easy, It's just that we are behind the schedule
 
@Mr.Xcoder Can you read ahead?
I find it useful to find an exam specification, work out which parts I need to learn then learn those in my own time.
 
@wizzwizz4 of course, but that doesn't count in class
 
@Mr.Xcoder If you know what's going on in class, try to do it as quickly as possible (with as high accuracy as possible).
Class is practice for exams.
 
The annoying thing is that I fail to understand some hard challenges involving mathematics, and that's mainly because of our (bad) curriculum (as a country, not as a school)
 
12:19 PM
Is there a "Das Neunundzehnzigte Byte"?
 
@wizzwizz4 Mhm, Ich weiß nicht
 
@Mr.Xcoder Most curriculums are like that.
I've recently got over my frustration and just accepted it.
 
@wizzwizz4 das neunzehnte Byte
 
Ok, I guess I'll just do thr same
Lol, why was a und there?
 
Also, I'm trying to drive up my SO, Codewars etc. reputation / honour etc. so that I can use it on my CV. :-p
@Mr.Xcoder I wanted the tentyninth byte.
 
12:22 PM
Uh huh? Why?
Also gaining rep on SO is hard as hell
Brb
 
@Mr.Xcoder Exactly.
It's an achievement to have high SO rep.
It shows that I know things about programming.
It's not a great metric of knowledge, rather of help to other people, but the whole profile is largely representative.
All I need to do now is bury the existing hideousness with good contributions.
Brb, looking up Physics exam specification to turn it into Anki flashcards.
@flawr Thanks for the correction - I don't know what I did there. Is there one?
 
@wizzwizz4 Physics exam - Sweet ;-) - My favourite subject
 
@wizzwizz4 I don't think so, but let me know if you start one:)
 
@Mr.Xcoder I haven't got an exam for over a year. However, I haven't made any Anki flashcards yet and I should've a year ago.
 
I only know about Le Dix-Neuvième Byte
 
12:36 PM
@flawr That's what I was thinking of.
I might start one.
 
@wizzwizz4 I haven't got an exam in over 3 and a half years lol. And will have a very important one soon so bleh
 
Wait is there really no Das Neunzehnte Byte? I could've sworn that there was
 
@cairdcoinheringaahing Keine chat room like that, sorry
 
1:03 PM
@cairdcoinheringaahing Who wants to make it?
I for one need to learn better German.
 
@wizzwizz4 I'm making it rn :P
 
@cairdcoinheringaahing Can I be a RO?
 
@wizzwizz4 Of course. What should the description be?
 
Let's steal the description from Le Dix-Neuvie`me Byte.
 
So, what is "Discussion générale pour codegolf.stackexchange.com en français" in german?
 
1:06 PM
General discussion for $SITENAME in German.
German is Deutsch.
 
How about "Allgemein Diskussion für codegolf.stackexchange.com auf Deutsch"?
 
@cairdcoinheringaahing That seems right.
 
@flawr you're fluent in german, right? What do you think of ^^?

 Das Neunzehnte Byte

Allgemeine Diskussion für codegolf.stackexchange.com auf Deutsch
 
Yay! :-)
 
@cairdcoinheringaahing *Allgemeine
 
1:10 PM
@flawr Diskussion is feminine... I forgot. :-/
 
@flawr Done. You want to be a RO?
 
@cairdcoinheringaahing I have no experience RO-ing but why not:)
I'm wondering what the tools look like.
 
@flawr Nothing too special.
 
@flawr You get to delete stuff and move stuff.
There's shift and ctrl to multiple select - works how you'd expect.
Apart from that, not much different to no-RO chatting.
 
And how do delete/move?
 
1:13 PM
@flawr I'm an RO of 3 rooms and I actually don't know :(
 
@flawr Room -> Room owner
It's next to leave.
 
@wizzwizz4 Cool, thanks!
 
The German translation of "German Wikipedia" would just be "Deutsche Wikipedia," correct?
 
@LegionMammal978 If Wikipedia is feminine.
I can't remember the other adjectival endings though.
 
Well, is it? Not sure whether Google Translate would be correct in this case
 
1:21 PM
(Everything I type in English shows up as a typo because I'm using a German dictionary now. :-/)
@LegionMammal978 Check on en.wiktionary.org/wiki/Wikipedia
@LegionMammal978 Yes, it is.
 
That says it's feminine
Argh, trying to read Google-Translated German-to-"English" text is annoying
 
@LegionMammal978 Use Microsoft's Neural Network translator.
I find it better than Google Translate, but you have to know the target language well enough to choose between the sane and gibberish translations that it gives you (as a before / after).
 

« first day (2437 days earlier)      last day (2391 days later) »