We definitely have had an uptick in rational-numbers challenges recently. With my latest, and Bubbler's soon-to-be-posted challenge, we'll have 5 within 2 weeks
Quote notation is a way of expressing rational numbers based on the concept of \$p\$-adic numbers, written in the form \$x'y\$.
The quote indicates that the number to it's left (\$x\$) is "repeated" infinitely to the left, then prefixed to the number on the right (\$y\$). For example \$3' = \: .....
@pxeger apparently if my name doesn't fit fully, some people just can't see it at all, so I added a hyphen just so when it gets cut short it at least shows the "hyper" lol
If I make a code page change to my language because I'm realising a new version, how do I go about editing all the answers in that language that exist?
Asking because I'm close to releasing a new version of Vyxal and the 80 or so existing answers will have to be edited to be valid.
And obviously I'm not going to edit them all at once because that would flood the active page, causing disruption
I don't want to cause disruption but I also don't want invalid answers.
If you release it as Vyxal 2.0, then all of the current Vyxal answers can stay valid, and new answers posted in the new version follow the new standard
given a probability distribution written as a list of 10 floating point numbers . What is the expected time to sample half of them if you sample uniformly and independently
CMQ: I've just had the pleasure of implementing the Dracula theme, which was quite easy because it is fully specified. Do you know of any other well-specified modern themes?
@Wezl No, I looked at that. Lots of themes specify what their colours are, but not what syntactic elements they should be used for. Solarized falls in this group.
I can't remember if it's in the Python docs or in the IDLE help, but I think Python's default IDLE dark mode (and the light mode) specify what colours each "thing" should be
nothing annoys me more than the fact that many colour schemes have some different keywords in different colours, e.g. in my colour scheme for Python, all keywords are red, except class, import, and from for no apparent reason
@ChartZBelatedly Yeah, that's enough info for in implementation, but that's hardly a spec, is it? Looks more like a specific set of choices for using the given palette.
@Adám I wanted to do it in a way that was a lot more flexible for weird software with a fragile environment - where e.g. bash is not necessarily available. Most of the TIO wrappers can be pretty easily converted though
maybe I should have tested things more before posting in chat
I just rashly assumed that the Docker python:3 image would include Python 3 in $PATH by default
The issue seems to be that it's not preserving any environment variables from when the Docker image is extracted (in this case $LD_LIBRARY_PATH I think). I now need to know how to do that...
Something interesting I've noticed: after the bug was fixed with the Best Of being in the side bar yesterday, the "Introducing OSP" post showed up under Hot Meta Posts at +5/6 with HN's answer being at around +8/9. It's currently at +11 (question) and +17 (answer)
That's a substantial increase over such a short period of time
looks like we'll be going ahead with new TNB room owners; nobody has disagreed so far which i pretty much expected lol, and I don't want to bother doorknob if he's busy
i'll probably put up the nominations post at UTC midnight
Background:
Take this input as an example:
1 1 2 1 1 2 1 3 1 3
If you look only at the first few digits, between 1 1 2 and 1 1 2 1 1 2 1, this input appears to consist of the pattern 1 1 2 repeating indefinitely. This would make its period 3, as there are 3 numbers in the pattern.
Given only the...
People submit bots. Those bots are typically functions that receive a number of arguments from a controller, usually relating to game data. They then send a response of some kind back to the controller who then moves the game forward based on those responses. Whichever bot does best wins
One way of thinking about an example would be: you are playing a chess match against Bob. However, you and bob can't see the board, or interact with it. Instead, Alice tells each of you what the board looks like, and you tell Alice what move you want to do
whenever I can, I like to have my controllers interact using STDIO using python's subprocess so as long as the submission can be run through a bash command i can control it
i have so many pending sandbox posts and so little motivation to clean them up enough to post / actually remember what they're about since it's been so long, lol
I'm worried it will end up being too trivial after one person finds a closed form and it just becomes "implement an equation in every golfing language ever made"
Fixed point is good if you need the same precision over a very wide range of numbers
I mean a 64 bit integer with a 64 bit floating point part is way more precision than most people will ever need, and you don't have to worry about 2 ** 53 == 2 ** 53 + 1
if you know you're going to be working closely with huge integers then you probably want to just use integers if you know you're going to be working closely with huge non-integers then yeah you probably do want fixed point if not some kind of bigfloat representation
I was wondering if i could schedule the TNB room owners nominations for UTC midnight but a) i'll almost certainly be online to do it myself b) it really doesn't matter if it's a bit or even hours early or late
What's the best way to check if a character is only contained within 2 delimiters with a regex? e.g. for H and "" delimiters: Habc, H"abHc" and H"H" would not match, but "Habc", "H" and abc"abcHdef"def would?
For context, I'm trying to write a program which takes in an arbitrary regex and returns True for cases where the only time that regex is matched is within a Jelly string (“...[”»‘’])
hmmmmmmmmmmmm is there any way to break the multiple of 10 without downvoting cuz downvoting just for spite is not exactly what votes are to be used for