« first day (3622 days earlier)      last day (1214 days later) » 

12:13 AM
CMQ: How do I PCRE match from a until the next a, not counting any as that are between quotes? E.g. (brackets indicate match): [abr'acad'a]bra?
 
@Razetime why'd you number all the languages on the ELO question?
Especially seeing as how I'm yet to update it with December results
 
 
1 hour later…
1:44 AM
0
Q: Golf the smallest sphere!

KeithMadisonInspired by this challenge, as well as a problem I've been working on Problem: Given a non-empty set of points in 3D space, find the diameter of the smallest sphere that encloses them all. The problem is trivial if the number of points is three or fewer so, for the sake of this challenge, the num...

 
 
2 hours later…
3:19 AM
@Lyxal just thought it made sense to
 
4:02 AM
@Razetime well you might need to do it again
 
oh lol
Mainly just wanted to see Pip ranking
which probably tanked heavily since I've been using it on recent questions
 
4:36 AM
Anyone planning on doing this?
 
So basically AoC continued?
 
Sounds like similar format but less problem-solving-oriented and more open ended
 
@Adám idk why it has a geneva convention theme
the good thing is I can try out BQN here
 
5:02 AM
> Please respect the Geneva Conventions.
what if i don't
 
@HyperNeutrino I beg of you
 
for legal reasons
that is a joke
 
@HyperNeutrino but the geneva convention is for jokes
 
"geneva convention more like geneva checklist" ~ my brother quoting someone, probably from reddit
 
aren't brothers the best
 
5:08 AM
This Genuary seems to be a more relaxed version of AOC
@Razetime I wouldn't know I'm an only child without siblings
@HyperNeutrino prolly r/oof
And the joke is "Geneva conventions? More like Geneva suggestions"
 
i've seen that before but i found the checklist one funny too
 
 
3 hours later…
8:07 AM
0
Q: Twist on words to numbers

myjobistobehappyThe Goal The goal of this question is to put a twist on this question. Your answer should be able to convert an array of words associated with integers into those integers. As an extra challenge, allow support for , +, -, and _ in between numbers such as sixty seven, sixty+seven, sixty-seven, or...

 
 
1 hour later…
9:37 AM
@HyperNeutrino Pretty sure “I accept the Geneva Convention” is part of the mod agreement :P
 
10:36 AM
@Razetime python sounds like a good plan
hi all
 
10:55 AM
hi
 
11:09 AM
ah oops.. wrong nick sorry
I meant @ReedsShorts
but hi anyway :)
 
11:21 AM
0
A: Sandbox for Proposed Challenges

Command MasterPartial sums of the kempner series code-golf math sequence The Kempner series is a series which sums the inverse of all positive integers which doesn't contain 9 in their base 10 representation (\$\frac{1}{1} + \frac{1}{2} + \frac{1}{3} + .. + \frac{1}{8} + \frac{1}{10} + ...\$). It can be shown ...

 
@cairdcoinheringaahing it is? Dang.
What a shame
;p
Disclaimer: I do not condone or commit war crimes. The above messages are a very cringe and edgy attempt at humour and should not be taken seriously. Please don't cancel me on twitter
 
12:20 PM
@ASCII-only also did I mention that the deverbosifier switches s and v? Try it online!
 
*astifier?
 
12:36 PM
if it's the astifier then Map consumes the s and v variables in the wrong order
ah, the documentation for Map has them in the right order, but the syntax page has s and v swapped
 
 
3 hours later…
3:10 PM
quite tempting to have a challenge to unravel C macros for bpa.st/GMWA :)
 
 
2 hours later…
5:36 PM
1
Q: Split a number in every way possible way within a threshold

DanielMKTask Given a positive integer number and a threshold, split into every possible way without generating any numbers above the threshold. Examples Input: 15008 Threshold: 400 Valid Output: [[1, 5, 0, 0, 8], [15, 0, 0, 8] [1, 50, 0, 8], [150, 0, 8]] Invalid outputs: [[1, 5, 0, 0, 8], [15, 0, 0, 8...

 
6:16 PM
@ngn how does your solution to the close strings work?
 
ngn
@ReedsShorts it's recursion, 2 levels deep. at each level i make all possible levenshteiny edits.
 
thanks
 
ngn
@ReedsShorts at the bottom of the recursion i append to a large buffer, and i write() it all at once at the end
there are no clever optimizations when making the levenshtein edits - i just go through all of them
 
Yeah i just wanted to know what was going on with that c code
gonna try that in python as it might be faster
 
I doubt Python would be faster than C at something like that
 
6:25 PM
I also just want to try solving it in general
 
It would be cool to have a solution people can understand
 
yeah thats what im doing
 
@ReedsShorts how close are you?
 
Close
 
@RedwolfPrograms the bounty allows for a winner in a slower language
@ReedsShorts cool!
I suspect Julia would be the fastest language for this
 
6:36 PM
tf is julia
 
What is tf?
 
"the f***"
 
It's a great language
 
yeah that seems fast
 
Very good for python programmers
 
6:38 PM
im gonna speed test real quickly
so theres a problem with using bash to redirect to /dev/null
input does not work
on tio
got past it nvm
 
thanks
 
There is also cython which is even easier (maybe) for python users although I don't know how to use it with tio
 
i tested my answer with obenquillo and it was like 70ms
@fomin posted
 
Do you get the right number of distinct strings?
 
6:49 PM
im pretty sure
if not then ill delete my answer but its basically the same as ngn
ill check
 
sort|uniq|wc -l will tell you
Or sort -u|wc -l probably too
 
Im just writing code to put all unique strings in a list
 
Ok.
 
nope my code does 1036 strings
 
Sadly that's a bug
 
6:52 PM
theres supposed to be 1871366
oh i see why
 
It's easy to see 1036 is far too few just by looking at substitutions
 
yeah i think it only did the function once
oh im dumb
 
7:10 PM
ok now it works but i have like 11 duplicates of each string
 
hmm...
would using a set speed it up?
 
ok but since im using a list of lists when it uses set i get an error
 
why a list of lists?
why not just a list?
 
so i can use insert()
trying something else real quickly
```Traceback (most recent call last):
File "C:\Users\kidss\Desktop\leveshain.py", line 20, in <module>
print(len(a(a(strs))))
File "C:\Users\kidss\Desktop\leveshain.py", line 18, in a
new = set(new)
TypeError: unhashable type: 'list'```
nvm figured it out
its even slower
half the dupes now tho
still likle 4x
 
7:30 PM
posting it anyway
 
@ReedsShorts For future reference, we usually recommend editing your existing, deleted answers the fix them, then undeleting them, rather than posting a new answer
 
thanks
 
8:18 PM
What timing do you get?
 
 
2 hours later…
10:41 PM
@Adám /a([^'a]|'[^']*')*a/
 
10:56 PM
i think i might also try the string distance using 05ab1e
 
11:54 PM
@Wezl Thanks. Yeah, I got that answer in the Orchard too.
 

« first day (3622 days earlier)      last day (1214 days later) »