« first day (4236 days earlier)      last day (903 days later) » 

01:00
Sandbox posts last active a week ago: Add numbers as fairly as possible
LDQ: should the accumulator for reduce come first or second?
wait what OSP just joined?
Second
im not sure i understand the question, am i noob
you know what a reduction is, right?
01:01
Seggan is asking if you should be made to do ‘reduce (+) 0 list’ or ‘reduce 0 (+) list’
are you asking about like, syntax
ohh(?)
No?
yeah see like "first or second" referring to what ordering
more like (reduce (lambda acc, n: acc + n) list)or (reduce (lambda n, acc: acc + n) list)
01:02
Ah inside the function itself?
If folding from the left, it should be first
If folding from the right, second
hmm i dont actually have a fold right builtin...
yeah it folds from left
right yea
first then
do you have default value
no
o wait 0
yeah 0
Just realised that the mod election begins the same day my uni does :P
yeah it should be the order you'd get from conceptually infixing it through the whole list, or sliding the function application across a window
lmao
01:12
Yeah i saw an article visualizing it as dominos falling and if you take that then it makes sense for the accumulator to be on whatever side the folding starts out on
Apl’s / mildly annoyed me because it was the perfect symbol for folding but it was on the wrong side
Imagine not using ƒ for ƒold
@cairdcoinheringaahing you know what’s more important. Uni you can do again next year, but the mod election may not come again for a while :p
@cairdcoinheringaahing ikr
Next mod election I'd have to run against Redwolf :P
So run now while you have no competitirs :p
01:15
I'm happy running against lyxal, pxeger or Adam, but Redwolf? Hell no :P
(Are there any other candidates?)
@cairdcoinheringaahing fwiw I’d vote you over him but his hive mind scares me a bit
yesterday, by pxeger
I was deciding whether or not to start writing a nomination for myself. Because I know who I want to be moderator, and if there's only one position I would rather them than me ;)
Oh i see pxeger wants me to run :p
I'm taking this to mean that pxeger would run, but would vote for me over himself :P
Clearly pxeger was referring to me
01:17
Clearly pxeger was referring to the one and only Dennis
My name itself reminds people i am one of them, a fellow user and not some ivory tower mod
Then again, internet people should be ruled over by a dog :P
@cairdcoinheringaahing i want him to run too, never met him but reading his old posts seems like he was a valuable member of cgcc :(
> never met him
I feel old
@Seggan sorry i misspoke, i meant is there a way to set the default value
01:19
@cairdcoinheringaahing the italians actually had dogs ruling them. They called them doges :p
@UnrelatedString just wondering how the mersenne primes question would be solved
@user Much wow. Very joke
@user from the few interactions I had, yes. He was.
is the mersenne primes question just generate the nth mersenne prime
01:20
yes.
wait @user u gonna give x*100 rep for xth prolog answer??? i thought u were giving 100 rep per answer, but wooow, thats a lot of rep u giving away. what will u do if someone posts >5 answers?
Idk lol
Give away 10k rep, obviously
Probably just give them 500 from that point on
dude u gonna give away all ur rep at this rate, no joke
01:21
That’s the point
They can always choose to stop the bounties if they don't want to
@user oh
should probably be able to get away with the ∧{ ... }ᶠ↖?t style idiom then
Anyone else running for mod or just caird?
not me
01:23
@user I'm not necessarily running
@cairdcoinheringaahing ye ik but like... they already have like 600 rep going my way just for posting 3 prolog answers, i was just wondering cuz thats a lot of rep lol
Oh
idk what steffan has in mind. i should probably refuse the bounty
I think I'm the most likely candidate, but I have work and uni to consider, so it's not a sure thing
sp?
surpressive person?
01:24
so.
I know :p
how annoying
@Razetime refuse whose bounty?
@lyxal I have no idea what you're talking about, I think you're going crazy
lotm bounty
01:25
And no, this isn't gaslighting, you're too smart to gaslight
oh
okay
well as long as I'm not being girlbossed, gatekept and gaslit I'm chill with that :p
@lyxal tf do any of those terms mean
@Razetime i've got a fairly basic 15 byter
lol that was quick
@lyxal I'm sorry, only the girliest bosses can chat here, but you already knew that
01:26
@cairdcoinheringaahing oh
my bad. sorry, I'll try my best not to be mistaken
it's very basic :P
also a fun example of how placement can have severe effects on performance
@lyxal ok but it doesnt tell me what each of the individual terms mean :|
side topic: the fact that counting sort works nicely is really amazing
It's actually really cool
@UnrelatedString such a COOL symbol
wait i got it to 14
01:29
Gaslight: to tell someone a lie, pretending it's the truth
Gatekeep: to try to exclude people from an activity or hobby for petty reasons
Girlboss: to act as a confident, strong women, especially in the workplace
@UnrelatedString i haven't submitted a functioning brachylog answer to this site :P
@cairdcoinheringaahing huh interesting
this definitely involves a lot of the more subtle weird things about how brachylog's structured
i might actually go post it so you can study it :P
@Razetime i have n't submitted a fun ctioning brachy log answer to this sit e :P
ftfy
01:31
> i have a fun log to e :P
precisely
@lyxal We've discussed this. You aren't allowed to e things with wood anymore
oh
dang
sorry
my bad
It's okay, just no more eing. You can i or o things, but not e them
thanks for the heads up!
01:34
One of radvylfs lackeys are you
I’ll e all over the place and you can’t stop me. Irrationality is beautiful too and you can’t lock it away forever
i.e. i brute forced the mersenne primes themselves instead of the exponents
@UnrelatedString usual golflang approach lmao
husk and vyxal both compute the mersenne numbers smartly then filter primes out
this doesn't
@UnrelatedString that approach is actually longer in vyxal :p
well, a similarish approach is
wait does it actually filter the infinite positive integers to mersenne numbers
i thought E‹ would be... exponentiate, decrement
01:44
no no I mean your approach
oh yeah that would be way longer in probably most languages
except maybe with some bitwise trick
13: λ₌æ›∆l¨=⌊∧;ȯt compared to 7: Þ∞E‹~æẎ
aw I'm not 69th in the all-time rep list anymore :(
not nice :(
01:47
I'm 65th now
sadge
oh well
Lyxal!
yes
null!
@lyxal just needs a few calculated bounties
thinking of posting shortly
ight posted
man I miss the bots that post things as soon as they're posted
Aside from "I meant to post that 9 months ago", nope, no feedback :P
Wait, the reason I didn't is that this is a dupe
01:55
@UnrelatedString ...yeah
what of
It's not an exact dupe, but there's 2 very closely related challenges that I've linked to
Given that the bulk of the challenge will be checking for transitivity
I wouldn't hammer, but I would VTC
yo tf is this suever guy doing lol
look on the homepage
updating matl links
he seems to have migrated his own online interpreter to a new domain
how can u tell lol
02:03
the diffs
hes literally flooding the entire homepage, is that even allowed
people regularly do that
jo did a mass non-competing disclaimer purge yesterday iirc so it's not a practice forbidden by the moderators :P
and it's better than doing it incrementally imo
my that homepage
@Steffan ikr
att
att
02:16
whoa my homepage
that's the only page i look at
bro how many links this guy gotta fix
att
att
only a couple thousand
i wish him luck
bruuuuuh damn
there should be some automated process that just edits them all at once to save him the suffering
02:29
and then our all answers are buried 500 pages down
well not all those answers are using his interpreter, a lot are using TIO
But I mean like, the link literally redirects, why update them all
according to this, there's 117 left
Actually less because it doesn't update immediately
@Steffan lol thats still a lot of them
he must be almost done because he already did over 100
the search takes ages to reindex
that's how many there were to do originally, I think
Actually, I guess I was wrong. It's already reindexed and there's 103 left :P
att
att
presumably he intends to take the link offline?
hey guys
uh
looks like we should
uh maybe turn off the new posts feed
it looks like it has all the edited posts
that or I don't know how feeds work
i thought the new post feed was only for new posts, not edited posts
02:41
so why does the feed have all these edits?
maybe it only posts if it knows it's a new question
edited posts don't come in
oh
good
People edit posts all the time and it doesn't come in
well in that case
3
Q: Is This an Equivalence Relation?

lyxalGiven a relation, and a domain, output whether the relation is an equivalence relation. Context For this challenge, a relation is defined as being a set of ordered pairs that is a subset of the cartesian product of a domain with itself. That is, \$R \subset X \times X\$. For a relation \$R\$ to b...

doesn't look like feeds will post it
yeah it's already a few pages buried
i'm just waiting for him to finish so I can post answers without them being buried
02:45
frick i forgot he was still doing his thing
just answered smth lol, its gonna get buried
fear not
1
A: One OEIS after another

Aiden Chow398. GeoGebra, 176 bytes, A000498 inputVariable = 0 InputBox( inputVariable ) Sum( nCr( inputVariable + 5 , k0 ) * ( -1 ) ^ k0 * ( inputVariable + 1 - k0 ) ^ ( inputVariable + 4 ) , k0 , 0 , inputVariable + 1 ) Takes input through the input box. Try It On GeoGebra! Next Sequence!

it's no longer buried :p
thanks lol
i answered smth a few pages ago and it's long gone
post it here for visibility then
02:49
0
A: Sort odd numbers first

SteffanProlog (SWI), 58 bytes f(<,A,B):-A mod 2>B mod 2. f(>,_,_). A+S:-predsort(f,A,S). Try it online!

Well at least the advantage of this is there's tons of new questions to answer, right splat easy to find
ya thats true
tho there might be too many of them to choose from :P
is the guy done? he hasnt edited anything for 3 minutes now
looks like it
03:35
@user i am just the opposite, i spend too little time here now and more time on discord (because my classmates are on discord), i should ditch discord tbh
@lyxal LMAO WHY PEOPLE ASK HOW TO JUICE AVOCADO ON CGCC
he's still got 54 left to do lol
04:03
@Steffan because they cant juic avodcado they need halp
04:35
@Steffan *avocad
@cairdcoinheringaahing gatelight, gasboss, girlkeep
 
1 hour later…
05:49
Hello!
06:05
@UnrelatedString I helped (and got a hundred or so flags out of it)
(also I kinda want to finish it off and get copy editor in one day)
There's no limit to how much you can edit right?
And it's not like there's much stuff on the homepage right now
22
Q: The Möbius Function

flawrThe Möbius Function The Möbius function is an important number theoretic function. Your submission should accept a positive integer n and return the value of the Möbius function evaluated at n. Definition The Möbius function μ(n) is defined as follows: | 1 if n is squarefree and has an ev...

Is it bad I first read it as Morbius function?
(btw in case anyone's worried I am applying some discretion. I'm leaving stuff that doesn't have an obvious reason for being labelled non-competing alone)
Also stuff posted after early july 2017
06:29
@lyxal nah not really.
My favourite part of that challenge was when the winning answer said "it's morbin' time" and then morb'd all over the other answers
att
att
07:08
today is just a mass edit day i guess
I saw those mass edits and thought I may as well while there's nothing much anyway
07:31
0
A: Sandbox for Proposed Challenges

attCompute the Fabius function The Fabius function is an example of a function which is nowhere analytic, despite being infinitely differentiable. more text later

> (non-competing as question predates the language)
 
1 hour later…
09:06
:D
09:19
@lyxal not sure why do don't just do something like this (but using something more efficient than the sum of a generator, just demonstrating the principle here)
10:04
@Neil only because it's the generic algorithm I was practising, not a language specific implementation
 
1 hour later…
11:17
@lyxal what's language-specific about removing the prefixes array?
11:27
@Neil I more meant the sum part
I'm learning counting sort in a uni course so I figured I'd try and replicate the psuedocode they're testing us on as close as possible
well you wouldn't use the sum of a generator if you wanted it to be O(n+k)
I was just too lazy to write it out in full
 
1 hour later…
12:51
@emanresuA I'm not sure why you felt the need to edit about 10 of my posts to remove the non-competing header from them. I guess it's fine but also I think those posts were fine as is
6 hours ago, by emanresu A
I saw those mass edits and thought I may as well while there's nothing much anyway
There was a bunch of other answers also edited
you just happened to have 10 of them
Was there a meta post I missed suggesting to do this?
11 hours ago, by Unrelated String
jo did a mass non-competing disclaimer purge yesterday iirc so it's not a practice forbidden by the moderators :P
7 hours ago, by emanresu A
@UnrelatedString I helped (and got a hundred or so flags out of it)
There was a mass edit event today of MATL links being migrated to a new domain
so emanresu took the opportunity to clean up outdated disclaimers while the front page was already backlogged into oblivion
13:05
and I also added to a bunch of relevant questions
That's fine then
also hi @Blue! I haven't seen you here before, but I've seen your esolangs around. I can now add you to the list of old golfers I've met in chat :p
13:38
^^
@lyxal maybe you're going to to extend it to sort by key function later, that would do it
14:25
@emanresuA For what it's worth, there's a meta consensus saying not to do this in bulk: codegolf.meta.stackexchange.com/a/14989/66833
@cairdcoinheringaahing Let's go back and revert them all!!
Big brain
There's also this:
I agree with this one, but only if the edit itself isn't necro-bumping the challenge because of it. It was common practice to add non-competing for newer languages competing in older challenges before, so if we'd go through all answers one-by-one to remove non-competing it clutters the recently changed challenges way too much. But, I do agree that if someone posts a challenge now with non-competing because they weren't aware of the new meta rules as returning user, then it's fine to remove it. Likewise for answers that were recently edited, and thus already bumped the challenge up anyway. — Kevin Cruijssen Apr 8, 2020 at 6:40
Agreed
In the few "mass" edits I've done I've occasionally found an old question that I want to edit, and I avoid doing it because it's then no longer eligible for the "old good questions with few answers" bounty lmao
most of the time I don't even end up answering it or claiming the bounty but still
@emanresuA That said, congrats! :D
I say "mass" not mass because they've only been on the order of 10 at a time or something
Wow, I've almost done as many as hyper
5 prolog bounties currently!
 
2 hours later…
16:29
CMQ I feel this must be all known... If I repeatedly add a uniform random number from (0,1) what is the expected number of numbers before you get to 1 or more?
@cairdcoinheringaahing e ! Thank you :)
This is still the best chat room on the internet
@graffe Knowing maths, it was either gonna be e, pi or something to do with one of them :P
LOL ya, e and pi literally pop up everywhere
16:44
@cairdcoinheringaahing :)
It's a cool fact. You might have thought the answer would be 2
How about the expected number of monotonically increasing samples?
Also VTC?
That feels like it'd be 2
Hmm... But is it?
Maybe it's e again :)
I feel like it has to be less than e, because each sample is taken from a "smaller" interval
That is true. I guess a quick simulation will give us a clue
If anyone has a real computer in front of them (I am on my phone :( )
Or maybe it's been answered on math SE :)
40
Q: Brain-teaser: What is the expected length of an iid sequence that is monotonically increasing when drawn from a uniform [0,1] distribution?

AmazonianThis is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform $[0,1]$ distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or...

e - 1 ?!
only way to find out is to code up a simulation lol
16:59
I was only 3 - e away :P
@cairdcoinheringaahing not far at all! :)
CMQ: Choose a positive integer greater than 1000
@cairdcoinheringaahing what, just any integer? what u tryna accomplish with this lolol
Yeah, any such integer
I need test cases for a challenge :P
ok
6969 haha so funny XD
17:05
Truly, you are a master of comedy :P
0118 999 881 999 119 725
3
@cairdcoinheringaahing lol ikr, i got another one: 42069 lmfao peak comedy so funny rofl
17:40
400th answer on the oeis challenge!!!!
0
A: One OEIS after another

Aiden Chow400. Prolog (SWI), 314 bytes, A000279 Thanks @user for helping me debug my code in the Prolog chat room! factorial(0,1). factorial(N,X):- A is N-1, factorial(A,B), X is B*N. choose(N,R,X):- K is N-R, factorial(N,A), factorial(R,B), factorial(K,C), X is A/(B*C). a(_,0,0). a(N,K,X):- A i...

 
1 hour later…
18:49
@AidenChow It is now only the 5th challenge to have 400+ answers
And the other 4 are substantially easier: codegolf.stackexchange.com/search?q=answers%3A400...
@thejonymyster default value as in...?
You know how you can do foldl (*) 1 list
It's convenient to start with something other than the first element of the list and also to have something other than 0 if the list is empty
ah, no
i dont have that
ima stick it in a digraph
:(
Fig doesn't have much space, ok?
the only free char rn is :
18:56
imo this form is more important than the form that assumes the list isn't empty
@Seggan Ah right half byte
f
.823
Yeah yeah :P
ive been rewriting fig in clojure
and development is much faster for some reason
Nice
i also took the liberty to rearrange much of the codepage
18:59
"for some reason"
You aren't using Java, that's the reason :P
*Kotlin
How does it feel using a dynamically typed language? (or are you using typed Clojure?)
so ill need to update some old answers
Nooooo how can you abandon Kotlin for a Lisp
@user id say it feels half-typed
19:00
@Seggan I mean, he isn't wrong, you aren't using Java :P
@user clojure doesnt have many places you can fail
I'm not sure what means sorry
as in the possibilities for runtime errors are few
Ah
i typically hate dynamic typing
but the type system in clojure is so unified that CCEs are few
19:02
What got you to try it and leave Kotlin then?
the fact that fig is a lisp and it needed a rewrite :P
also i wanted to relearn clojure
clojures functions are a perfect fit for fig
some ops are even implemented as clojure functions
so it saves me some writing burden
Cool
the one thing that annoys me is that mapping/filtering/doing most things on a string returns a list of chars
and i have to keep joining them
:(
It does make sense but yeah that sounds annoying
Does Clojure allow you to redefine those methods for strings?
Just be Jelly, and implement strings as lists of chars
19:05
Monkey patching or whatever it's called?
multimethods iirc
i dont feel like redefining a bunch of stuff tho
i just made a "string map" function
@Seggan They're just overloading at runtime, right? Can you replace an existing overload?
yeah
but i think only in the current namespace
That sounds like what you need
Don't want the monkey patching leaking out to other namespaces
lemme try it actually
@cairdcoinheringaahing abt this, then i lose my string overloads and be Jelly
im not gonna try parsing HTML in Charfig :P
19:27
@Seggan reasonable, its not always necessary if youre doing straightforward things
20:21
@cairdcoinheringaahing except they're actually just lists of length-one strings
so you can add them and produce lists of illegal values
Lol i was gonna ask a question and realized the answer as I was trying to explain
isnt there a name for the phenomenon or smth
ah
In software engineering, rubber duck debugging (or rubberducking) is a method of debugging code by articulating a problem in spoken or written natural language. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck. Many other terms exist for this technique, often involving different (usually) inanimate objects, or pets such as a dog or a cat. Many programmers have had the experience of explaining a problem to someone else, possibly even to...
21:03
hey
are there tools to generate expressions that map from one set of numbers to another?
(the classic num%a%b trick)
21:26
@ASCII-only long time no see!
I got very confused recently because the version of Charcoal on TIO claims that Incremented([]) is None (didn't check trunk)
ah....
i think it's a bug
> and item... and [] is falsy
have 0 clue why that and item is there tbh
21:41
yeah, I'm not sure whether I should be recording Charcoal bugs given that TIO won't get fixed anyway
21:57
You could ask pxeger to add it to ATO
22:43
19
Q: Zip uneven lists

Wheat WizardIn this challenge you will take two lists as input and you will zip them. The zip can be defined with this recursive expression: \$ \mathrm{zip}(a,b) = \begin{cases} \left[\,\,\right] & a = \left[\,\,\right] \\ [a_0]\mid\mid\mathrm{zip}(b, t) & a = [a_0] \mid\mid t \end{cases} \$ or this Haskell...

Charcoal is on ATO
23:07
oh
23:41
@Steffan huh, so it is, I had no idea
well, now I know to start checking for bugs again
I PRed it a while back

« first day (4236 days earlier)      last day (903 days later) »