« first day (3784 days earlier)      last day (1061 days later) » 

4:00 PM
@user doesn't work
 
@hyper-neutrino that's the correct hash; it's the same as the hash used in your lambda profile pic. So evidently SE identicons are different
 
hm. interesting
 
Oh, I mistyped a variable name and caused it to error :|
 
do identicons change when you change your username or email?
 
dunno
 
4:01 PM
Haven't changed my email but I know the answer to the former: no.
 
@hyper-neutrino Not sure, but they do change
 
As you might know (or not, as I was not as prominent with my old name) my old username was expressjs123 with same identicon.
 
anyone wanna reverse hash 28a2f720362e0bac44daf269cd0655d4? :P
 
I'll try
 
Rick roll?
 
4:02 PM
nope, it's my identicon ID
 
I'm going to add some error handling to NP/SP I guess
 
@hyper-neutrino "Sorry, not found." when trying to reverse hash 28a2f720362e0bac44daf269cd0655d4
 
so i have somehow ended up with having 27 open tabs
 
Unrelated, but I find it interesting how many active users on CGCC are MtF (trans). Just off the top of my head, I know of around 10 people, which is more than I know IRL and I'm pretty involved in trans/LGBTQ spaces :P
 
4:05 PM
They might be lying?
 
Highly doubt, and I would strongly advise against even suggesting that.
 
I know this is a very sensitive topic
 
@cairdcoinheringaahing I actually notice that some tech spaces seem to have a pretty high proportion of (even if just openly out) trans or otherwise non-binary people :P (there are other spaces that uh... have quite the opposite. probably due to the toxicity. like most of reddit, probably...)
granted, I also only really participate in tech spaces so IDK how the distribution is elsewhere, lol.
 
I've noticed that in functional programming in particular
 
4:07 PM
@ophact Generally, if someone has the trans flag as either their pfp, or in their profile, and lists their pronouns as she/her, it's a pretty solid assumption the're MtF
@hyper-neutrino You're just in the wrong parts of reddit :P
 
@cairdcoinheringaahing honestly I don't even participate on reddit much at all, it's just one of my go-to "this part of the internet is a mix of good and very bad" example :P
if i wanted a fully bad place i'd say 4chan probably
i've never touched 4chan tho so i wouldn't know
 
I've poked 4chan with a long stick before and never want to go near it again
@hyper-neutrino I mainly just use it for memes, and post the occasional comment/meme
 
i use it to participate in video game subs pretty much exclusively :p
 
@cairdcoinheringaahing A similar thing I've noticed. I'm sure it's just coincidence, but I know so many trans women and almost 0 trans men
 
I'm configuring my copy to auto-restart if it's dead every 10m anyway
 
4:19 PM
oh okay, nice
 
And yeah, reddit is weird, but that's mostly because of how broad it's interests are and how self sorting it is.
It's not really fair to call it a homogenous site
 
Yeah, definitely. Some parts are pretty good, at least AFAICT.
Maybe even most parts. It's hard to get an assessment of enough of it to say "most" / "a minority of" / etc
 
Yeah, it's almost like a smaller version of the internet itself. There's hate groups and awful places and incredibly wholesome places too. Just depends on which community you're looking at.
Reddit is not a "community", it's a million communities
 
That's probably the best summary of reddit I've heard
 
yeah, I definitely agree with that
 
4:31 PM
jelly people i need your help over at jht
 
0
Q: Challenges with an oracle

TreborThere are many ideas of code-golf challenges out there that are abandoned because a part of them are just too hard to implement with a reasonable amount of effort. For instance, requiring to parse complicated stuff (this can be avoided by flexible input format), big number arithmetic (avoided by ...

 
Wow, I actually thought that was a Code Golf challenge.
@RedwolfPrograms I have a suggestion: maybe make the bot label all meta posts "META" and main ones "MAIN"?
 
There's an icon in the top right
But other than that I can't affect what the onebox looks like :/
 
Yes, but it's a little hard to see.
Or (if it's mostly trivial to do this) add a "New Meta Posts" bot.
It should mostly consist of modifying the New Posts code. To get the 20 rep just post an answer to the recent python KoTH.
 
I considered that, but then we'd have three additional icons in the sidebar
 
4:37 PM
You could make it send a message with content "meta" or "main" before the onebox.
 
Changing the icon might be better
 
I worded that badly, I can't change the icon
 
@ophact Check the tags - meta has to have discussion/bug/feature-request/support
 
Ah right, so it was just because I wanted to quickly see the new "challenge".
 
@RedwolfPrograms I don't mean dynamically changing it, I mean that New Posts gets an icon that is neither main or meta specific (but I'm not really a fan - it takes 2 seconds to confirm that a post is on meta or main when you click it)
 
4:40 PM
I could make the bottom half gray maybe
That could look cool, too
 
0
Q: A triangle of number

raspiduinoChallange Make a triangle of number like below. How to? Let say we get a number in the form of ab, for example 12. We then create a triangle like below: Sorry for my bad drawing! First we have 12, and we take sum of the two number 1 and 2, which is 3. In case the sum of two number are greater th...

 
that image is confusing but this looks potentially clear enough?
 
Update: The bots are now capable of auto-restarting
 
My next update will be to have it, upon startup, immediately post anything from the last 20m which isn't already oneboxed in the transcript. That way, if something just happens to be posted during some sort of reboot, it'll still get posted here.
 
4:54 PM
hello everyone!
 
@RedwolfPrograms howdy
 
Hi
 
Hello Wasif!
 
hello everyone
looks like the biggest hi-hello chain ever :P
CMQ: do you have any longer than this one?
 
4:59 PM
hi
 
@RedwolfPrograms that’d be very cool, but you might want to first check if someone else saw the bot was down and posted on their own (although an ro can trash that)
@Wasif hi
 
The most interesting CMQ ever.
 
@ophact don't think so
 
There ee go, a longer hi chain
 
@user That's why it would check for any onebox with that link in the transcript
 
5:00 PM
let's continue the chain
@user howdy (continuation)
 
@RedwolfPrograms i was thinking non-oneboxes links too
 
@Wasif Yes I was joking
Hello!
(again)
 
@Wasif nah, its kinda spammy
 
@Wasif Please dont. If you've already added a Hi, don't add another one
 
Ok lets stop it
But pls try to answer my CMQ
 
5:02 PM
honestly, I already discourage announcing your presence because it shows in the sidebar, but I won't stop people from saying hi, just please don't respond to people saying hi if other people already have, and please don't say hi in response to people saying hi in response to you because you already greeted everyone and don't need to re-greet people who are greeting you back
 
oh ok
@NewPosts this looks like some derivative of fibonacci sequence
Not much difference
 
@hyper-neutrino I would have thought someone named hi-per neutrino wouldn't mind greeting people
 
@rak1507 it should not be surprising that someone named hyper-neutrino tries to avoid interaction
8
 
lol
 
oh yay it's lobsters time
 
5:06 PM
uh oh
 
@rak1507 it should not be surprising that someone named hyper-neutrino would disagree
 
neutrinos are too fast
they would likely avoid interaction and pass through people
 
ಠ_ಠ Why does Jelly convert the elements to strings when it uses G
 
what's the true representation, matrix of chars?
after using G i mean
 
s/Jelly/Javascript/;s/G/absolutely anything/
 
5:11 PM
@hyper-neutrino Try it online!
 
s/Javascript/PHP/ because I like javascript :P
 
oh wait matrix of chars wouldn't display as multiline
that... somewhat makes sense?
 
@Wezl what's up with the /s/ syntax, is it sed?
 
i'd say it makes enough sense
 
@Wasif yes. s/regex/replacement/flags; is the replacement command in sed
 
5:13 PM
@hyper-neutrino Compare with K and Y: tio.run/##y0rNyan8/99dx/vhzrUOkUcnPdw541HTmsj///…
 
@Wezl well this syntax is for /// too
 
hm. interesting
 
@Wasif yes, except /// doesn't use regular expressions or flags or the s prefix
 
Yay, only 45 rep to edit privileges! (This is taking a while)
 
@ophact congrats!!
 
5:17 PM
And please don't upvote my answers because of that message, that was not the intended purpose
Although if you find them interesting you can still upvote obviously
 
@ophact Boo, I want more suggested edit reviews :P
I'm only several hundred away from Steward :P
In seriousness tho, congrats :P
 
Which one's Steward again?
 
@ophact 1000 reviews
 
1000 reviews in a queue
Proofreader is 100 suggested edit reviews, Reviewer is 250 reviews in a queue
 
That's gonna be hard, seeing as the review queues are always empty here :)
 
5:21 PM
Well, WW has 2, DJ has one and Martin one, so not impossible :P
 
lol I was searching for my sandbox post when you posted yours
 
looks good to me
 
Looks good
 
Should I post the pair of challenges simultaneously, or wait a few days in between?
 
5:29 PM
@pxeger those look fine to me
 
thanks!
 
@pxeger Wait a few days - you'll get more attention on both, and it'll contribute more towards some badges (Curious etc.)
 
What's the consensus on working on sandboxed challenges? Searched on Meta and found nada.
 
@rak1507 i expect someone named hi-per neutrino to only allow one hi per neutrino paid to them
 
well there are a lot of neutrinos :P
 
5:37 PM
but they don't affect you
hyperactive neutrino -> hyper-neutrino
 
I feel a great disturbance in the force... (-160 user was removed)
 
ouch!
 
-40 here :/
 
5:57 PM
That sucks
if a user has voted a lot, don’t they sometimes keep the votes?
 
They do keep the votes, but it depends on the user
 
What are the criteria?
 
Thanks
 
For example, when ais deleted their account, people would've lost thousands of rep (they were a pretty prolific voter IIRC) if they reversed all votes
CMC: Given n and m, generate a random binary nxm matrix
 
6:03 PM
CMs can choose what to do with votes
i think destroy last 30/60 days is typical
i believe that's what happened to my votes
 
@cairdcoinheringaahing ?,⍴2 in APL I think
 
accounts that get destroyed or deleted as a sock have everything undone iirc
 
@Wezl doesn't quite work as a train but ?⎕⍴2 could probably be acceptable
 
APL is so broken :/
 
I believe 4 bytes in Jelly as well
 
6:07 PM
@cairdcoinheringaahing nxm is n rows, m columns or other way around?
 
Doesn't matter - your call
 
@Wezl Problem is that you have to have a function on the far right to "switch to tacit mode". ?,⍴2⍨ works.
 
JavaScript, 67 bytes: n=>m=>[...Array(n)].map(_=>[...Array(m)].map(u=>Math.random()*2|0)) @cairdcoinheringaahing
 
oh that's what your CMC was for
 
6:50 PM
do @ and ` work on monads (jelly)?
(by work i mean do they do anything meaningful/useful)
 
No, they error
 
would there be anything wrong with replacing +@ with +} and +` with +{?
 
Three of those are dyads, +` is a monad, so the arities would be off
 
right but { turns a monad into a dyad so it could also turn a dyad into a monad, right?
unless there's something meaningful with <dyad>{ already
 
@hyper-neutrino Also, +@ is just +, addition is commutative
 
6:55 PM
well yeah i was just too lazy to type out <dyad>
 
@hyper-neutrino Would this be to free up @ and ` as new builtins?
 
that's the intent
I will not be using the same characters but I am trying to collapse/overload any quicks that error due to arity
just trying to plan out potential things for my language before i decide whether or not to / start implementing it
 
I think that shouldn't affect things, but I'd personally use ` to replace { for monads and @ to replace } (rather than the other way around), as I feel like they make more "sense" with the dyadic meanings of @ and `
 
that's true
@ would make sense to swap a monad from taking just left arg to using just right arg
i'm not gonna have {} available anyway
 
7:17 PM
@cairdcoinheringaahing Charcoal, 7 bytes: NθEN⭆θ‽
 
7:30 PM
CM CnR: Cops: write a program that outputs a random integer from 1 to 10 when run. All integers should have an equal chance except for one specific integer, which should have a chance different to the other 9. Reveal your program but not the integer. Robbers: find what the integer is for a cops answer
 
@cairdcoinheringaahing Couldn't they just run the program a bunch of times and see what one comes up the most?
 
Not necessarily. You could get unlucky and get a streak of a wrong answer appearing a lot
Besides, its a chat challenge, they're not supposed to be too difficult :P
 
Ohhhh okay, that makes more sense
I might making one of those real fast. Also, I was wondering if you guys have any feedback for a proposal I made here: codegolf.meta.stackexchange.com/a/23468/98592
I haven't seen many challenges that involve combinatorial math, and I had to solve a similar problem for my work
 
> as close as possible to the angle
You should clarify what that means - can the total go over, what should be done in ties, etc.
 
Good point, I'll add that
 
7:55 PM
I updated it with some more rules and clarifications. I added a tiebreaker to the scoring section but I'm not sure if it'll be necessary
 
I don't think caird meant tiebreakers by scoring
we don't usually care about that
by "as close as possible", if two configurations have the same distance from the desired angle and the same number of fittings, which should be picked?
also, you say it can't be off by more than 10 degrees - if that isn't possible, what should the output be, or will those cases not have to be handled?
also, since there's an 8-degree fitting, it's impossible for a case to be impossible, so I don't think that section is necessary
 
Yeah that's a good point. In my testing I don't think I ever found an angle that couldn't be matched within 5 degrees, but now that you mention it I don't think its really necessary either
 
@hyper-neutrino I've unpinned this now you've marked it
 
good idea
 
As for configurations with the same fittings and same distance, any of the configurations would be acceptable. Maybe I could add a cost to the pipe fittings, making the smaller ones less expensive, just as another element to the problem
 
8:00 PM
@SlamJammington even if you just had the 8 degree fittings you could fit anything within 4 degrees
@SlamJammington that becomes standard knapsack DP doesn't it?
 
knapsack DP? I've never heard that term before
 
@hyper-neutrino I think you can always match within 3, as the input will always be integers
 
or wait no this isn't knapsack dp
@cairdcoinheringaahing with input 4 how do you match within 3?
 
@hyper-neutrino With input 1, how do you match within 4?
Also, I can't do math :/
 
Ohh I know what you're talking about now. Yeah it's definitely similar. When I wrote a program to accomplish this, I spent a few days just trying to find an optimization algorithm and couldn't find anything
 
8:03 PM
0
 
40 secs ago, by caird coinheringaahing
Also, I can't do math :/
 
The closest I got was the uhhh, chicken nugget problem. Speaking of which, has that ever been golfed?\
 
Which is great given that I'm doing math at uni :P
 
29
Q: Chicken McNugget Numbers

racer290Description Chicken McNugget numbers are numbers that can be expressed as a sum of 6, 9 or 20 - the initial sizes of the famous Chicken McNuggets boxes sold by McDonald's. In that sum, a number may occur more than once, so 6 + 6 = 12 is such a number too, and the number must "contain" at least o...

 
8:03 PM
Hell yeah
 
if you multiply everything by 4 everything is an integer
actually that's not necessary
and then you can just brute force (or DP if you do multiply everything by 4 and get integer indices, but i suspect that's less gofy)
with DP just go up to like 4(N+4)
and then just look at what the closest non-zero value is and take it (but again, you might get ties due to it potentially tying between N-d and N+d)
 
I found the number of 8 and 11.25 degree fittings, since 22.5, 45, and 90 can be made with 11.25
If I do end up posting this, I'd be very excited to see what people come up with
 
8:19 PM
Damn, this got removed in <18 seconds on MM
 
@cairdcoinheringaahing speedrunning post removal be like:
@hyper-neutrino the one with the lowest range of fittings
 
@StackMeter what does that mean
 
@hyper-neutrino smallest distance from lowest to highest degrees - fittings similar to each other would be easier to cut out in one go
 
right and what if that's tied (also you're not the OP so you shouldn't clarify)
 
Presuppose that you have a supply of fittings ready to go, no cutting or anything
 
8:27 PM
@cairdcoinheringaahing Batch, 20 bytes: set/a%random%/3277+1
 
Where can I go online to test batch, I can't find the right terms to search that won't send me to information about production batches
 
I don't think you can sorry
 
Ah no worries
 
oh, TIO doesn't have it? i guess that makes sense, being a linux system and all
 
Plus Dennis has explicitly rejected using WINE or similar
 
8:30 PM
Well yeah you're not supposed to put wine in your computer ya dingus, youll release all of the magic smoke
 
in talk.tryitonline.net, Jul 18 '17 at 17:41, by Phoenix
TIO code can't even use sockets, which for some reason are required by Wine, which is why there's no Batch as of this moment.
 
8:54 PM
0
A: Sandbox for Proposed Challenges

Aaron MillerWrite a netquine There are a lot of online interpreters, for a lot of languages. For example, there's the ubiquitous TIO, but there are also smaller, more specific ones that others have made, such as interpreters for Vyxal, ngn/k, or Grok. Your goal today is to write a netquine, or a program whos...

 
9:35 PM
0
A: "Hello, World!"

nameNOTE, 23 bytes .print/"Hello, world!"\

3
 
@Hello,World! Welcome to TNB, Hello, World! :D
 
0
Q: Alternating function

nameThis is a code golf challenge. Only the shortest user-defined function in a language counts. This function should output (input/2)+2 for even numbers, and (input+1)/2 for odd numbers.

 
9:48 PM
Wezl's color scheme doesn't look all that different from the alternative one at that scale honestly
Looks good
 
 
1 hour later…
10:50 PM
@NewPosts Yet another reason should be deprecated
 
I think I'm gonna post my combination one tomorrow, hopefully people like it
 
"this is code golf" *doesn't tag as code golf*
yeah i need to get the first time asker popup fixed ASAP
 
I used to help moderate new entries for the SCP foundation, i feel your pain
 
11:28 PM
0
Q: Sum of set bits from 1 to n

dingledooperGiven an integer \$ n \$ \$ (n \ge 1) \$, return/output the total sum of set bits between \$ 1 \$ and \$ n \$ inclusive. To make the problem more interesting, your solution must run with a time complexity of \$ \mathcal{O}(\log n) \$ or better. This is OEIS A000788, not including \$ n = 0 \$. Her...

 
@NewPosts I take it range, to binary, count 1s isn't O(log n)
 
@NewPosts time complexity restrictions? Really?
 
makes it more interesting
 
Yeah, I agree with it here
 
ah, restricted complexity?
 
11:29 PM
although it does make it 'port the first answer to your language'
 
i need to learn to read better
oh well i gotta go, rip. will solve this when i get back then, i guess.
 
0
Q: Split me in half again and again

caird coinheringaahingConsider a program of a length \$2^n\$ (where \$n\$ is a positive integer) which outputs its own length. However, when split down the middle into two equally sized pieces of code, each of these pieces of code outputs \$2^{n-1}\$ i.e. their own length. For example, if abcdefgh output 8, then abcd ...

 
@NewPosts Do any of [source-layout], [restricted-source] or [radiation-hardening] apply here?
 
do the parts have to be unique?
 
11:41 PM
unless I've misunderstood something, is this lyxal.pythonanywhere.com?flags=Ṫ&code=1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A1%3A&inputs=&header=&footer= not a valid answer for k=infinity?
damn it vyxal link
just 1:1:1:1:1... with the Ṫ flag to sum the stack at the end
 
I believe that's only possible due to a command line flag, right?
There's no way to convert that behaviour into the code body
Wait no, infinite increments would do the same. Shit
 
2+ works too
 
this is why you use the sandbox :P
 
Nah Sandbox just meant I would've caught it before hand. Wouldn't have ever improved anything
This way I get to remove it before someone snipes the trivial answer :P
 
11:47 PM
I feel like the challenge has potential, it's an ok idea, just needs to not be trivial
 
Aside from requiring them to be unique, I don't see a way to detrivialise it
 
maybe change it somehow so the splitting does something different
idk
 
Actually, I think requiring each section to be unique would make it significantly harder and more interesting
 
in its current form it's still 'how many ways of adding two are there in two bytes'
 
Mmm. Think I'll sleep on it :/
 
11:52 PM
fair enough
 
CMQ: Besides 0-10, what are the most useful numbers to have single byte constants for?
 
Nvm I thought you meant in the range 0-10
 
@RedwolfPrograms 16
 
1/2, -1/2, 100 are good to have
 
ew, fractions
 
11:57 PM
@RedwolfPrograms i
 

« first day (3784 days earlier)      last day (1061 days later) »