« first day (4603 days earlier)      last day (537 days later) » 
00:00 - 22:0022:00 - 00:00

00:15
imo it's a real shame that linux nice values can only be in the range [-20, 19], and can't be 69. That would have been funny i think.
00:30
Could that not just be threading.Thread(self)?
the workshop slides say:
> it must have in the __init__
function:
threading.Thread.__init__(self)
nice -n 69 echo "Hello, world!" Hello, world!\nNice.
@lyxαl statements dreamed up by the utterly deranged
@lyxαl wouldn't that be equivalent to newself = None; threading.Thread.__init__(newself, self)?
 
3 hours later…
03:54
__init__ is not the constructor itself, it is a kind of magic function that is called inside the constructor
so super.__init__(self) is the correct incantation that initializes the fields that belong to the superclass on self
not super(self)
 
2 hours later…
05:29
@lyxαl __new__ can do that, but not __init__
m90
m90
06:14
@RydwolfPrograms (x + 1) | 1 (I have used this before)
oh nice
0
Q: Decimalize a Fraction

ATacoPreamble A common pain-point when working with rational numbers and decimals is how infrequently one can represent their rational number as a clean, non-repeating decimal. Let's solve this by writing a program to decimalize (not to be confused with decimate) them for us! The Challenge Given a fra...

06:35
@NewPosts can't believe I had to shudder look up mathematical information for a challenge instead of brute forcing it or relying on someone else's observation
CMC compute minimum of two integers with no if statements
@lyxαl I had written that already in the spec, lmao
> A given Input is "Decimalizable" if the Denominator of the Simplified Fraction contains no prime numbers other than 2 or 5.
from the challenge body
lmfao
@Simd builtin allowed or no
@AidenChow no
makes sense
@Simd Desmos, maybe polyglot with other languages im not sure (23 bytes): f(a,b)=.5(a+b-abs(a-b))
literally just search "mathematical formula for minimum" on google lol
06:51
@Simd [a,b][a>b]
@ATaco pfft imagine reading the challenge specs and not just jumping to the test cases
@Bubbler damn smart lemme port to desmos
nvm its longer in desmos
:(
isn't there a ternary thingy
wouldnt that count as if statement
its pretty much an if statement
07:00
what is the requirement?
im assuming u talking about piecewise functions
hmm yeah
that's exactly why built-in bans are unclear and should be burned to death lol
{a>b:a,b} (not the actual code but pretty close to it) suspiciously look like if statement lol
oh wait thats max
well u get my point
Knight v2.0 (with eval), 23 bytes: ;=l+,P,P;&<E]l[l=l]lO[l
it use short circuit boolean, not sure if that counts as an if statement
wait bruh what am i doing
21 bytes: ;=aP;=bP;&<Ea b=b aOb
much simpler and shorter
07:28
Maximum of list, remove, head
You only specific no minimum built in
Never said I couldn't use maximum :p
@lyxαl lol bruh i immediately thought of Goh from pokemon journeys when i saw that
07:41
You gotta be quiet when running it
Otherwise it won't work
damn i cant believe vyxal is actually accessing the microphone, this is quite the privacy concern :p
08:02
Speaking of funny looking words: CMC: given a list and two integers as input (call them a and b), get all overlapping slices of the list of length a, uninterleave that, print both lists, check whether the second list has any truthy items in it, and get overlaps of length b of that result.
My best is Vyxal, 6 bytes: lyxal# but for some reason, I can't seem to get it to work without the extra comment.
. . . bruh
No lyxαl♦ ?
Well no because the alpha and diamond symbols aren't in the code page :p
That's unacceptable, such a disrespect to lyxαl♦. If they knew they'd be so disappointed in you
@AidenChow it's strange isn't it. It just won't work without the comment
No clue why but every time I remove it the program errors
08:06
Can you petition SE to make # the new mod symbol?
sudo vyxal lyxal
08:28
@Bubbler that's cool!
@lyxαl :)
I like the xor based solution
oh bruh i just realized, sh is sort then head, thats so obvious yet didnt spot that lol
Desmos 14 bytes: f(l)=l.sort[1]
@AidenChow fun with mnemonics!™
 
3 hours later…
12:00
0
Q: Natural language vocabulary

Kai BurghardtSituation: Many high-level programming languages draw (a subset of) their vocabulary from natural languages (predominantly, but not exclusively English). However, the use of natural languages tend to put such languages at an disadvantage with respect to challenges scored on number of bytes (promi...

12:14
is it OK to either return a falsey value or throw an error when the result should be false?
i know if i just had one or the other it would be okay but is combining both also reasonable?
you know JS lets you throw false
or even throw 0, throw null, throw undefined
You can throw literally anything
firefox dev console skill issue
okay
i'm not sure that answers my question tho
in my case, the program throws a recursion error for a specific input where the output should be falsey. is this okay?
12:32
@Bbrk24 AAAAAAAAAA
WHYYYYYYYYY
@noodleman I was trying to answer that as "just throw false instead of return false"
@Bbrk24 i see but that's not applicable here; maybe i should have lead with the fact that this is TypeScript Types
ah right
i have primality test in 111 bytes but it throws an error for input 1
because the program recurses from 2 until the input going up
well i'm gonna post it and if anyone takes issue with it i'll add a hotfix but it might be expensive
Can't you just add 1extends T?0:...
12:40
@Bbrk24 yes but that's like 10 bytes
13 bytes i'd rather not add
 
2 hours later…
14:27
Is this comment correct? The spec says you may not use “1,2,3,4,5,6,7,8,9”. I avoided the digits 1–9 but I have a comma in there as a pop instruction. Months after I posted it, someone says I’m not allowed to use comma, either.
@Bbrk24 pretty sure they're wrong
some other submissions are using commas
this submission is pretty much just commas
Good point
@Bbrk24 They're probably joking
I can't imagine someone genuinely misunderstanding the challenge in such a way
@RydwolfPrograms It's not a very good joke in that case
Yeah it's the sort of deliberate misreading to be able to correct people that like a 5th grader finds clever
14:46
Hey - anyone here familiar enough with SE chat bots who can let me know how difficult something would be? (Not for this room, to be clear, but asking here 'cause I know a lot of botters hang out here.)
I was waiting for someone to throw that at me
Point is, I may or may not be able to answer your question directly
@Ginger Is the resident botting expert
MTN
MTN
@Mithical haven't made one myself, but you might want to check out sechat (made by Ginger). Couple examples if you want: github.com/Vyxal/VyxalBot2, github.com/PlaceReporter99/utility-bot
But yeah Ginger's the expert
14:56
@mousetail I was going to avoid pinging them if I knew -_-
you rang?
MTN
MTN
11 mins ago, by Mithical
Hey - anyone here familiar enough with SE chat bots who can let me know how difficult something would be? (Not for this room, to be clear, but asking here 'cause I know a lot of botters hang out here.)
@mousetail I'm flattered :p
yeah, what're you trying to do?
In essence, I'm looking to have a button that any one of a specific group of people can press, hosted on an external domain, which will send a message in a SE chat room. Does that play well with any of the SE chat libraries?
sending the message is easy
14:57
Yeah that should be fairly straightforward
(See, no need to ping Ginger about that)
wait, what account'd be sending it?
A bot account (I have a sock I can use)
Bot will be seen joining the room when the button is pressed and leaving afterwards
That's fine. I basically need a way for one of those specific people to be able to anonymously press the button, but not other people, which will require authentication with the API
That would be authentication on the site with the button, not on SE
15:00
Hello.
Chat login is a Whole Thing :tm: so it's easiest to just leave the bot logged in
0
Q: Pseudo-Quantum Bogosort

Pacmanboss256Pseudo-Quantum Bogosort Quantum Bogosort is as follows: Quantumly randomise the list, such that there is no way of knowing what order the list is in until it is observed. This will divide the universe into O(n!) universes; however, the division has no cost, as it happens constantly anyway. If t...

@Mithical yeah, that's pretty easy
Yea just use the normal OAuth flow for accessing the button, not the chat API
you'd have to deal with authentication like mousetail said ofc
but the sending of the message wouldn't be an issue
15:00
How do I make a StackExchange bot? (Is this the right place to ask?)
this is a place
Keeping the bot logged in without an "always on" server might be tricky
Cool. As long as it's pretty easy, now I need to figure out who to mug to build it (:
We're just talking about chatbots now lol
I'll do it if you want
15:01
@The_AH What would the bot do?
love me an excuse to mess with chat :b
@Ginger That'd be awesome, thank you :)
@Bbrk24 I have no idea, It would just be cool to make a bot?
spicy
I g2g for a bit, so I'll read any details you provide once I'm back
Coolio. I'll try to think of any specific details, but I think the gist of it is there
15:02
@The_AH Make sure you only use the bot in the sandbox rooms or rooms where you get explicit permission from the room owner. You shouldn't really need to say it but...
(yes, this has a specific purpose)
@mousetail Ok, that's obvious, how do I get started though?
@mousetail Thanks, will I need to make a new account for this?
Not strictly necessary but highly recomended
15:04
I think chatexchange is still better...
Perhaps not right away -- you can have the bot send messages via your account -- but if you're going to use it outside the sandbox then yes
Yea there are a ton of libraries, though note they all work by ugly reverse engineering and scrapping HTML etc. There is no pretty way to do it unfortunatly
I am using an alternative email for this account and I have signed up with other websites with that alternative email. It's to prevent spam.
I tried to do it in Swift but the cookies didn't work for some reason
I would recommend using an existing library over writing your own
Well I am going to use this account for now, later I'll make a new account if I begin well "playing more".
15:06
It's not that hard to do your own, if you know a little about HTTP and HTML and cookies etc. it's pretty doable
but that requires that your HTTP library respects cookies :P
All of them should, except maybe one
I am going to use the example bot code at this page: sechat.readthedocs.io/en/latest/example.html.
If you just want to send messages you need only a small fraction of the API, and a part that is much simpler than the reading messages part
@mousetail Jeremy was going to work on a chat API before he was laid off, but...
15:08
New API in 6-8 weeks?
What is room 1?

Sandbox

Where you can play with chat features (except flagging) and ch...
@mousetail considering that that was 2017, and nobody has picked up that project since...
Oh, okay. That seems good. I am going to test the example bot now.
They did post the feedback form about the API, so there is a very slim chance they have some budget to improve the APIs a little
15:11
Improving the main-site API doesn't involve chat, though
I get a login failed error, that's great!
:)
12 mins ago, by Bbrk24
Chat login is a Whole Thing :tm: so it's easiest to just leave the bot logged in
I am pretty sure the creds are correct since I just copied them from Google Password Manager.
SE has three login methods but I think only one of them works for a bot
I am using the example bot code from the sechat api docs which should work? Maybe my current session is colliding with the login attempt?
15:13
That shouldn't cause a problem -- I can log in on my laptop and my phone at the same time
@NewPosts isnt this just "sort a list" but with an unobservable requirement? or am i missing something
@Ginger re: specs;
On an external domain, there needs to be a button, able to be clicked. This is the STOP button. When clicked, the STOP button sends a message to the [PSE RPG chatroom](https://chat.stackexchange.com/rooms/info/118089/pse-dd-chatroom), in the format of `STOP: The stop button has been pressed.`

Any of the following four people need to be able to press the "STOP" button, but the person pressing it should not be logged:
https://chat.stackexchange.com/users/471270/sciborg
https://chat.stackexchange.com/users/28560/ancientswordrage
I have no idea why it isn't working?
Traceback (most recent call last):
  File "/Users/me/Desktop/bot.py", line 9, in <module>
    bot.login(email, password)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sechat/__init__.py", line 678, in login
    raise errors.LoginError(
sechat.errors.LoginError: Login failed. Bad email/password?
Open a new browser where you aren't logged in and try to log in with that exact email and password. Don't click "log in with google" or whatever the options are, log in on SE directly.
@The_AH if you're planning to use this bot for anything serious you might want to look into sechat v2
15:17
that too
it's only on the GH repo (v2 branch) and is completely undocumented, but it is far more stable and usable
@Bbrk24 Okay. I'll see that, maybe Google didn't capture my creds correctly when I originally made my account?
@Ginger That's awesome self-advertising.
👍
Okay so if I try to login on Opera, Google will use so many auth checks that it will break my mind. On Safari it could work but I am already logged in through Google there. I could just open a new Chrome window where I am not logged in.
@The_AH oh btw it only works for accounts that have username/password auth
Google SSO doesn't work
15:20
@Ginger Oh. That was the problem! I was using email instead of username? Why does the example say "<email>" then?
¯\_(ツ)_/¯
@Ginger It says that it needs my email, trying to login with my username didn't work.
@Mithical sounds good!
I was going to offer to host it, but if you can do it that works too
I mean, either way works, but I don't think it needs to be live all the time
(context: I'm running a horror game soon, this is a way to make sure things stop if someone's uncomfortable and doesn't have to expose themselves as being the one who's uncomfortable if they don't want to)
@Mithical Not a bot expert, but couldn't you just give each of the people who is allowed to use it a password, and they could use that password to press the button?
15:30
Maybe? I feel like authentication is easier (from a UX perspective), since you don't need to keep track of another password
if someone's on the go for instance, they'll be logged into their SE account but not necessarily have a password I sent over Discord or whatever lying around
@Mithical fair enough, i suspect SE auth is tricky but i haven't really used it myself
Oh wait, it requires a SO account, doesn't it?
SE auth?
I don't know if SE offers auth for other sites the way Google does
oh neat
that might not be the link you need, just the top google result
16:32
I am afraid that – as far as I have experienced it – PPCG is pretty conservative as regards to interpretation of specifications. The fact that submissions in 24 distinct languages used commas is beside the fact. — Kai Burghardt 31 mins ago
They bothered to count
I'd say my message captures the post better d:
@Ginger WHY
WHO
17:04
We'll just make our own winter bash
Sounds like a good idea
CMM Challenges for our own CGSE official winter bash
If every OS was plain and singular. If every OS was the same. If everything was good.

Which OS would you use? Which OS wouldn't you use?

Every OS would be the same then what's even the point of having multiple OSs?

If every OS was the same and every OS was good nobody would make new and better OSs.

If every OS followed the same standard which worked then nobody would challenge that standard.

If we had a world without bad OSs then why would we continue making OSs? Why would we continue pushing the limits?
What about a winter bash extension/userscript?
@mathscat Maybe, but it would be hard to get enough people to really make it a competition. Just a meta post with a list of challenges would make the most sense. People who want to install a userscript can of course but it shouldn't be a requirement to participate
17:17
yeah that might be a good idea
Then you can do something like just writing your name under a task if you beleive you have completed it
@mousetail should this be a meta post?
Yes, but I'd want at least a few basic ideas just so I know this has any merit at all
in SO Close Vote Reviewers on Stack Overflow Chat, 1 hour ago, by TylerH
Good riddance, I say. I can finally do away with a userscript or two!
umm
What's the significance of this quote in relation to the message you're replying to, other than that they both mention userscripts?
@mousetail I'm noob, what sort of stuff would this entail anyway? / where can i see past examples?
17:27
@thejonymyster both are about the winter bash
True.............................................. Cosigned
coincidence???
231
Q: Winter Bash 2020 hat list 👒 🎩

GlorfindelWinter Bash 2020 has started and the hats (and masks) are listed below. As always, there are only two answers: one for the secret hats, and one for the regular hats. The secret hat list will be updated as we learn them. Please, only edit the secret hat answer with definitive and correct triggers....

but how would it work on CGCC?
17:30
Challenges would need to be easier to externally verify, so nothing related to voting
Probably just similar things to the list of bounties with no deadline
would bounties be given for earning the hats?
i feel like not having the hat part kinda takes it away
nobody will see if you have a hat or not, unless you change your PFP
Probably a bounty for the winner
I'm just brainstorming here, I don't have anything concretely decided
Tasks should be easy, since they are meant to encourage participation by newcomers so giving bounties for all of them might be a bit much
maybe "I will upvote your post"
:p
I fully intend to but I can't officiate state that
Ok one idea: Answer 5 challenges in 5 different languages over the course of 5 days
Python 3.1, 3.2, 3.3, 3.4, 3.5
17:44
@mousetail that's a cool one
What about some challenges involving advent of golf?
@mousetail too hard for me
@PetəíŕdTheLinuxWizard You are not exactly the target audience
i think you could do it, it might be hard tho
@mathscat What are you thinking?
17:51
an easier idea: Comment a golfing suggestion on someone else's submission
@mousetail not entirely sure
Challenges should encourage participating here, not on some other site
I was talking about Code golf advent Calendar, not sure if those two events happen at the same time.
@noodleman maybe 3 golfing suggestions on 3 different submissions would be better, or maybe a golfing suggestion of 10% save or something
@mathscat Participate in CGAC for starters?
17:54
another easy-ish one: post a [tips] answer with a net score of at least 1
That's a good one
CGAC was a mediocre last year, if we do it again it needs better quality challenges
Post a non code-golf challenge maybe.
Good one, though probably need some requirement fors score >5
less solid idea: post a submission in a language made by a user of the site
Post a submission in a language never used on the site before
17:56
ooh good one
@mousetail time to invent a new language
@mousetail I made a new lang a few days ago, might use that.
Yea you can either make one or scour esolangs to find a new one, or prove something that isn't really a langauge Turing complete then solve a challenge in it
could i use a language that has never been used for on this site, but has been in other tags?
i have one in mind i've been meaning to check out
you still have a lot of time :P
17:59
yes but that would be a good opportunity and i don't feel like installing Common Lisp rn
Not for that challenge I think but I'd still think it would be really cool to see
and building from source and all that
@mousetail building off this: use a lang that hasn't been used on this site for at least a year
@noodleman That could be a different one, there is room for different versions of the same challenge with different levels of difficulty
i know it would be separate just building off that idea
another one could be. use a lang that less than five users on this site have used
since usually more obscure langs are dominated by like 1-3 users
Yea I want to see more submissions in CellTail
The issue is it's a bit of a pain to actually find who has used a given langauge
18:03
ForWhile and Trilangle come to mind
Banana-golf maybe lol
@mousetail probably can be solved with SE data explorer thing
SEDE can't really find if the language name is in the title easily
can it approximate?
Sure it can
For really short language names or language names that are common words it can be way off. It's better for longer unique names
If we do an optional userscript, twitch style badges could be cooler than hats (and easier to implement).
18:11
@mousetail I’ve used Python, it wasn’t hard to find me…
You don't really use the work python in everyday conversation though
I kind of do, actually.
Are you a snake charmer then?
@noodleman maybe <10 would be better
@mathscat they'd be kinda small though
also are you maths cat or math scat
I like the badges idea, like the staff and mod badges?
18:21
something like this?
Maybe, though we need to consider what would it look like if you have like 10 of them and have a smaller screen
multiple rows
flexbox
or maybe horizontal scrolling? that seems more inconvenient
Show one big, then one half size, next 1/8th size and so forth so the total size is limited no matter how many you have
The most prestigious one should be the biggest
@mousetail you mean 1/4 and so on?
It's 2d
So 1, 1/2, 1/2, 1/3, 1/3, 1/3, 1/4, 1/4, 1/4, 1/4, etc.
18:27
In mathematics, the infinite series 1/2 + 1/4 + 1/8 + 1/16 + ··· is an elementary example of a geometric series that converges absolutely. The sum of the series is 1. In summation notation, this may be expressed as 1 2 + 1 4 + 1 8 + 1 16 + ⋯ = ∑...
@mousetail yup
The space available will be wider than tall though, and all the badges will need to be square
i still think rows / columns is good
most prestigious one is closest to PFP
You could also just do a chaotic cloud style shape, if the challenge icons would be circular
18:41
@noodleman originally mathcat, but then changed it to math scat (I don't remember why anymore, I believe sbd suggested it)
who's sbd? scala build den?
"somebody" lol. it might have been user who probably is a scala build den.
So the userscript is going to fetch the badges based on the meta post?
Yea probably
Hey, I forgot, what happened to LOTM and the other cool TNB events?
LOTM didn't get any submissions for several months, so in January it was finally killed
19:06
ah, rip
I do think it'd be nice if we restart it though, I think we have enough languages for years.
19:32
@mousetail Make it 12 instead of 5 and call it "The Twelve Langs of Golfmas"
@mathscat I'd like to see LotM restarted someday, but I'm not sure we've waited long enough for interest to rebound yet. And you need buy-in for this sort of thing. Looking at the nominations post, you can see that all the nominations have pretty low scores, indicating a lack of interest and/or outright opposition (the current leader, Arn, is at +12/-7).
fair point
Honestly, it's quite surprising (and gratifying) that the second run lasted for over 2 years.
Given that the first one lasted 6 months
19:53
Huh, seems like both times, the last month of the run (SMBF, Elm) didn't see much participation, but the month before that (Japt, Pip) had typical or even above-average participation.
interesting
Probably a coincedence
Pip and Japt both had people willing to golf in them, and also they're golflangs which are decidedly more interesting that other languages
Also yikes, the Husk LotM had an order of magnitude more answers than usual
Whereas no one golfs in Elm, and almost no one golfs in SMBF
Also have you seen the vyxal lotm lol
What about it?
19:59
A lot of answers
Vyxal had 70, by my count. Husk had 297.
what.
I count 184 for vyxal although some of those are multi-language or tips
Did the husk lotm have bounties on it?
20:01
Unless I'm missing something. The formatting of the answers for the Husk month uses a stack snippet instead of a regular list, so I should probably double-check the number, but looking at the size of the list, it feels about right.
@mathscat It looks like there were several users who just really loved Husk and posted dozens upon dozens of answers in it.
In particular 177 of those were from razetime lol
I ... uh wow
And 77 were from legionmammal978
@emanresuA Ah, I'm just going by the lists of answers on the official posts. I'm sure there were quite a few that never got catalogued.
@emanresuA I've been on CGCC for 3 years and I've posted 48 answers.
20:04
217 answers in a single month is quite something
Number of officially recorded answers for each LotM:
Brachylog:  19
Brain-Flak: 17
MATL:       20
QBasic:     34
Japt:       50
SMBF:       5

R:          30
Husk:       297
Forth:      26
Rust:       7
Scala:      11
Whispers:   26
Factor:     33
Vim:        55
Vyxal:      70
Red:        45
ARM:        6
K:          12
jq:         38
Lean:       10
Zsh:        8
BQN:        30
Add++:      12
tinylisp:   44
PARI/GP:    20
Curry:      28
Desmos:     57
J-uby:      5
Piet:       14
Knight:     85
Prolog:     52
Nim:        12
J:          13
Pip:        34
Looking at the ones with fewer than 10 answers, I'm not surprised most of them didn't do well. SMBF and ARM are too low-level to be fun, Rust's syntax is a pain point even for people who love it, and learning J-uby is like learning two languages at once.
well, bring it back then!
is there anything stopping it from happening?
i guess now isn't the greatest time since it's the beginning of the school year
@noodleman Lack of interest, and particularly lack of interest in the current nominations
true, only like 2 of those interest me
going to start using them now :)
20:24
My personal favorites, besides the ones I nominated, were Brachylog, Husk, Vyxal, jq, BQN, and Piet. (I didn't even post any answers in the Piet one, but it was cool to see people using it and discussing it.)
most of those just don't feel approachable honestly
i feel like if LOTM was gonna happen again there would have to be much better documentation
@noodleman Which, my list, or the current nominations?
@DLosc both
@noodleman One of the good things about it was having people in chat who could answer questions
right
i mean Vyxal and Husk don't seem hard to approach but the others do
also - say i was going to nominate TypeScript's Type System. there's like no documentation for how to use that to achieve tasks, so almost nobody's going to be interested
same approachability problem goes for Arn, Trianguish, pure data, UCBLogo
><> seems easier to approach but for people who have only golfed in python its a bit of a stretch
20:40
@noodleman oh, I have 69 silver badges?
did not notice and yes indeed you do
20:58
nice
21:19
nice
21:36
@Mithical bot is done!
also, is there another room where it'd be more appropriate to discuss it?
21:57
@noodleman Yeah, I have different opinions on some of the particulars but I agree that there is a balance for LotM languages between "too standard/boring" on one hand and "too weird/hard to learn" on the other.
@DLosc that's kinda why i like TS types since it's a bit in between
another benefit is it looks a lot more impressive than it is so i get more upvotes :p
00:00 - 22:0022:00 - 00:00

« first day (4603 days earlier)      last day (537 days later) »