Preamble
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...
@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
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.
Situation:
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...
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.
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.)
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.)
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?
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
Pseudo-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...
@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...
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
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
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.
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.
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?
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
I am afraid that – as far as I have experienced it – PPCG is prettyconservative as regards to interpretation of specifications. The fact that submissions in 24 distinct languages used commas is beside the fact. — Kai Burghardt31 mins ago
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?
@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
Winter 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....
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
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 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).
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.
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.
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.
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.)
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
@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.