« first day (4588 days earlier)      last day (552 days later) » 

00:06
0
A: Sandbox for Proposed Challenges

BubblerZeckendorf to F(4k+2) representation code-golf fibonacci math Background Fibonacci numbers are defined as follows: $$ F_0 = 0, F_1 = 1, F_n = F_{n-1} + F_{n-2} $$ The Zeckendorf representation is a representation of positive integers as a sum of one or more non-adjacent Fibonacci numbers, using i...

@mousetail As someone who can anecdotally give evidence for both before and after: Redwolf's review scripts changed the way CGCC reviews happen. We get regular reviews in all queues. I think I do about 2/day, not including ones I skip due to mod, and my reviews are binding. Before Redwolf's script, the queues almost always had something in them, if the site was active, cause people who only do them when they remembered the queues existed
Now, Lyxal, Redwolf and I do a lot of the reviewing and I believe we all have a script that opens review tasks within seconds of them entering the queue. Given that my review actions are binding, and the rest typically require 1-3 users to review, it's not surprising that reviews are handled quickly
99% of the time I don't use the script because mobile
True, mobile's another thing
If I'm aware from my laptop, usually one of the first thing I do on my phone is to open the site
and sure I could use kiwi browser but that acts goofy in terms of running in the background
Firefox for android allowing userscripts again soon will be nice though
Nowadays, I check the flag queue before the reviews, but I typically check the reviews 1-4 times a day
00:15
imagine getting flags to handle
Every time I've reloaded main today, the flag queue counter has changed :P
I got used to being the only mod for a couple of months, I had to get back to being used to flags being handled by other people :P
The PLDI mod team is so efficient at handling flags that even the flag dashboard gives up on trying to calculate the average flag handling time
it just says N/A because it's so impressed at the flag handling speed
clearly it stands for Not Actually gonna try
 
4 hours later…
04:35
@cairdcoinheringaahing FWIW my script wasn't a novel product; it was a massively simplified rearchitecting of RSR, which I think several people here already used
04:49
0
Q: Piecing Paired Primes

3.14Problem You've stumbled upon a paradoxical mathematical phenomenon related to prime numbers. Consider the following scenario: You have an infinite list of prime numbers: $$2, 3, 5, 7, 11, 13, 17, 19, ...$$ Now, you decide to pair up these prime numbers in a way that each prime is paired with its ...

@OldSandboxPosts I have 11 bytes for Repeat Fibonacci
@Bubbler breuh arent u like not supposed to solve it until out of sandbox
 
2 hours later…
06:47
Is there a challenge in the theme of
solving a well-known moderately hard chess endgame
e. g. KBNvK, KQvKR
It would be interesting to find out which approach is the easiest to describe in code in which language
(Preferrably time restricted? to prevent a theoretical brute force search program being shorter than everything)
There doesn't seem to be one.
We don't really like time restricted programs. Time depends on too many variables. You can restrict by complexity, but I don't know how you would even measure the complexity for such a program
not sure about other endgames, but I once heard that it is damn hard to squeeze KPvK within 50,000 bytes
(that is not using golflangs, but still)
(also you need to encode possible promotions, and there are cases where e.g. only N works)
 
1 hour later…
W D
W D
08:06
Looking for help with sandbox post
2
A: Sandbox for Proposed Challenges

W DAll possible chess moves in algebraic notation Generate a list of all chess moves that could ever be valid in any position [META: or change it to check if a move could be valid]; use algebraic notation to describe the moves. Your program should take no input. Example moves Na1, Na2, ..., Nh8 Ka1,...

Generate a list of all chess moves that could ever be valid in any position [META: or change it to check if a move could be valid]; use algebraic notation to describe the moves.
 
1 hour later…
09:09
0
A: Sandbox for Proposed Challenges

bsoelchHalf even rounding Pythons round function will round values of the form \$k+\frac{1}{2}\$ with \$k\$ being an integer to the nearest even integer, which apparently is the better than the usual rounding method Your task is to recreate this functionality: write a program of function that given an n...

 
3 hours later…
11:39
I can't get inline mathjax such as \$x=y\$ to work. Displayed mathjax such as $$x=y$$ does work. Both work if I edit an old challenge, but the former does not work for me in a new challenge I am typing. Have you experienced something similar? Is it not working anymore?
I mean \$x=y\$ doesn't give the correct preview while writing (before posting). $$x=y$$ does
11:59
@LuisMendo on some sites you use $ instead.
12:36
@LuisMendo I got the same problem recently, I think they might have changed something
Maybe submit a bug report?
13:12
@TheEmptyStringPhotographer doesn’t work either :-/
@mousetail thanks!
If I find some time later I’ll post it on meta. Feel free to do it yourself. In fact, you found the problem first :-)
first screenshot is firefox, second is edge
Even duckduckgo renders it properly :p
13:34
Maybe it's specific to our meta?
I can repo it
It does break on Firefox for Android though
I can repo on main too
I'm on Firefox on Windows
@mousetail odd, works for me on FF for Windows
Maybe some extension?
It's odd it's only for new posts, I can edit old ones that have MathJax with no issues
I don't think I have any mathjax extensions
Does it work in edge for you?
Broken in the new question preview over on pldi on ff for Android too
Oh wait no it rendered
13:41
My edge is locked down with company policy
That's on pldi
Edge and Chrome have a bunch of dumb filters, but I can install Firefox to bypass them no problem
fwiw it works for me on Chrome, Edge, and Safari (on Mac)
> Edge on Mac
13:43
Renders properly on Vivaldi browser on Android
Renders properly in chrome, but not in kiwi browser
I do see this message:
why do you have so many browsers lol
Could be related (?)
Samsung Internet renders it properly
@TheThonnu I used to use Vivaldi, then I switched to Firefox. Chrome comes preinstalled on android, kiwi browser allows for userscripts and Chrome extensions on mobile, and Samsung Internet is on my phone because I think it needs to be there in order for the galaxy watch companion app to work
Despite the fact that I do not have a Samsung phone :p
I just have Samsung Internet and Chrome
@lyxαl lol
13:49
It's funny because I can't stand the Samsung UI on a phone and tablet display, but I seem to be okay with it on a watch :p
How on earth do I keep missing the letter p
Samsung Internet is so bad :p
How is it that hard for me to tap a single part of the phone keyboard
@TheThonnu that's why I only use it on my watch. It's the only watch browser that's actually bearable. I used to use another app but it wouldn't log me into SE
I should check the mathjax thing to see if it renders properly on wearos
you use a browser on your watch?!
what do you even see on a 2" screen?
I made an RNG that passed most of the dieharder tests (just a few weak results):
#=============================================================================#
        test_name   |ntup| tsamples |psamples|  p-value |Assessment
#=============================================================================#
   diehard_birthdays|   0|       100|     100|0.88528879|  PASSED
      diehard_operm5|   0|   1000000|     100|0.15772713|  PASSED
  diehard_rank_32x32|   0|     40000|     100|0.99991936|   WEAK
    diehard_rank_6x8|   0|    100000|     100|0.19368384|  PASSED
   diehard_bitstream|   0|   2097152|     100|0.92623865|  PASSED
Bad news is that it doesn't open the keyboard to type :p
13:53
@TheEmptyStringPhotographer That's legit impressive
@mousetail strange...
@lyxαl connect a bluetooth keyboard :p
then carry that around with you everywhere
@lyxαl Use your voice :p
then shout everywhere
@TheEmptyStringPhotographer nice! Is it the one you linked here earlier?
@TheEmptyStringPhotographer Doesn't even bring up the prompt to do so
13:54
@TheThonnu yes, probably
@TheThonnu sometimes, yes :p
I just had numbers pre generated from the programme and ran the tests
@TheEmptyStringPhotographer that is genuinely really cool
now, just as a joke, i will do the tests on a constant stream
@TheThonnu the cookies modal
Which can't be dismissed in the other browser
14:02
rofl
But the other browser does let you enter text in the question box
However it doesn't render any preview
If you zoom out enough
So it's unknown whether it renders probably on odd browser for wearos
@TheThonnu btw I used sha256 in the RNG
and i reseed using the stack overflow webpage
Hashing and a seeded RNG are very similar
If SHA didn't pass diehard something would be worng
in fact i sha256 the stack overflow webpage xd
14:19
0
A: Sandbox for Proposed Challenges

bsoelchComplex logarithm We have challenges for the regular real logarithm and the matrix logarithm, but we do not yet have a challenge for computing the logarithm of a complex number. ... I will add a challenge body if there is interest Meta Is this different enough from the other two challenges ? As ...

Ugh ffs the Discord CDN 5-minute disconnect regression is back in my school's internet filtering
Just sent an email yelling at the IT people maybe they'll fix it
14:37
Maybe I should be nicer to the IT people
6
I usually write my emails to them in two passes, the second one being to turn as much of the profanity as possible into something else
They're the bane of my existence
Like come on, just do the bare minimum, get your CIPA check, and leave me tf alone. Internet filtering in schools is, maybe with the exception of porn, 100% a technical solution to a social problem. I've had to spend dozens of hours developing and maintaining a custom proxying system just to be able to do my school work reliably
"maybe" lol?
MDN, some of GitHub, and every single one of my servers (minus an exception for one domain) is blocked
Your internet gets randomly cut for 5 minutes if you stumble across a page with the wrong CDN
the filtering system I'm having to contend with at the moment blocks Imgur, including SE's subdomain
at least it doesn't block all of Commons like the last one did
I can send you the SOCK² source if your device runs Linux :p
it's a Chromebook, and boy does it suck
14:44
(Assuming one of the domains pointing at rustdrop is unblocked)
@Ginger Is it modern enough to have Crostini?
I routinely go to press Delete and then cry because I do not have Delete
@RydwolfPrograms the Linux environment is disabled
Tbf most laptops lack Delete right?
@Ginger smh
if that's what you mean
@RydwolfPrograms no, I've used a few that had it
mine has a delete button
I mean I'm slightly nicer to the IT people than I was in middle school
14:46
but yeah Internet filtering is frankly stupid
Whenever I'd get a block page I'd just change the subdomain to YOUREALLFASCISTS and reload a couple of times
Good times
good filtering systems (of which there are approximately zero) behave more like Google's SafeSearch
block the NSFW stuff, leave the rest alone
@RydwolfPrograms I initially read this as "you real L fascists"
Yeah. The only things that should be blocked are those that're actively harmful to students or otherwise NSFW
of course, NSFW blocking can get out of hand too (see: filtering system that blocked all of Commons, thereby removing images from Wikipedia)
The job of keeping people off messaging apps and games will always still have to be done by teachers; might as well minimize the false positives and just not bother with blocking those
14:48
@Ginger You don't want people wandering into illegal drug websites.
Those don't tend to be on the clearweb
@Ginger but the Google's SafeSearch is a good filtering system so there is one.
@RydwolfPrograms Yes, true.
and at that point why would it even matter if that happens to be on school wifi
you don't find that shit by accident
And blocking that sort of thing doesn't keep students from doing it, just keeps them from doing it on school wifi. Like, "go buy coke on your own time, Timmy"
^
like blocking porn is sensible because it's easy to stumble into, you're going to have lots of people who might want to look for it, and you really don't want other students happening to see it
part of it is the collateral damage avoiding bit
nobody's going to be messed up by seeing dark web drug marketplaces unless... they have porn ads on them :P
14:56
Yeah I just wanna be able to buy drugs in school come on
15:19
@mousetail @lyxαl It works for me now (??)
CMP: what do you think is the word with the most words a Levenstein distance 1 from it?
my current winner is cat, at least 15 words a levenstein distance 1 from it
that sounds likely :P
my official count is 26
cat ->
at
cam
can
cab
cad
car
caw
cap
cot
cut
bat
eat
fat
gat
hat
mat
oat
pat
qat
rat
sat
tat
vat
wat
scat
cats
what about act and cast
oh nvm no swaps
what's the edit distance that has swaps
(but yeah cast and chat should still be in there)
damerau-levenshtein
of course
cart, cant
cbat
15:39
@UnrelatedString cant doesnt count
@UnrelatedString oh yeah forgot about middle insertions
@Seggan Running this on a dict of 60k words rn
Very unoptimally tho :p
@WheatWizard Can you please unfreeze MATL CHATL when you have time?
For a question with the radiation-hardened tag, I assume that any byte can be removed right? Not just visible characters, but newlines, tabs, etc as well?
Okay this is running too slowly
My computer is hot and for an i5-1135G7 in a chromebook that's unusual
15:55
@RydwolfPrograms Let me take care of that takes computer and throws it in the freezer now we wait...
@RydwolfPrograms tio.run/…
oh you mean for the whole dictionary
wow yeah good luck
16:24
@JPeroutek Usually, yes, unless the challenge states otherwise
Not all languages even use any visible characters
@UnrelatedString I think what I'll have to do is sort the words into buckets by length
Even with an is_levenshtein_1 function optimized specifically for that (instead of levenshtein(...) == 1), it ends up being too slow
0
Q: Otteretto Classic game scoring method

Luis MendoBrief description of the game In the game Otteretto Classic (which you can test directly in your browser; try it!) the player has to form palindromic sequences using adjacent cells on a square grid. Each cell has one of five possible colours, which we will denote by the letters \$\mathrm A, \ldot...

Unicode shenenigans
24 characters, 28 bytes sus
@Seggan I get mare with 26
@RydwolfPrograms if abs(s1.len - s2.len) > 1 { continue } should help
Code could be buggy tho
@RydwolfPrograms cat still has at least 28 tho
16:51
Ones like caw and wat definitely aren't in my dictionary
I only get 20 for cat
Oh hm, scat isn't included tho...
wat is archaic form of wet, and caw is the sound a raven makes
So could be a bug
17:05
Okay should work now
I get 28 for cat:
> (28) ['bat', 'cab', 'cad', 'cam', 'can', 'cap', 'car', 'caw', 'cot', 'cut', 'eat', 'fat', 'hat', 'mat', 'oat', 'pat', 'rat', 'sat', 'tat', 'vat', 'at', 'cant', 'cart', 'cast', 'cats', 'chat', 'coat', 'scat']
Top is pat with 34
Followed by bat and lad
Oh but actually those tie with a ton for 31
cares is the first with more than three letters (31), tied with a bunch
bating is the first 6-character, with 20
searing also has 20
And once you get to 8 with starling, it goes way down to just 11
cool
i was thinking of writing a program myself
outsourcing go brr
Mine's super fast now
var words = document.body.textContent.split("\n").slice(0, -1);

var buckets = new Map([...Array(words.reduce((x, w) => Math.max(x, w.length), 0))].map((_, i) => [i + 1, []]));

for (var word of words) buckets.get(word.length).push(word);

var adj_counts = new Map(words.map(w => [w, 0]));
var adj = new Map(words.map(w => [w, []]));

var bucket, i, k, ii, d;

for (bucket of buckets) {
    console.log(bucket[0]);

    for (i = 0; i < bucket[1].length - 1; i++) {
        for (k = i + 1; k < bucket[1].length; k++) {
Runs in a couple seconds
cool
should i make a challenge out of this
Not a code golf one, but maybe FC
yeah FC i was thinking
18:02
> cant, n.1. An argot, the jargon of a particular class or subgroup.
0
Q: The rectangle spanned by two numbers

bsoelchOne way to generalize the concept of a range from the integers to the Gaussian integers (complex numbers with integer real and imaginary part) is taking all numbers contained in the rectangle enclosed by the two ends of the range. So the range between two Gaussian integers a+bi and c+di would be ...

0
Q: Repeat your program to print Fibonacci numbers

mousetailWrite a program fragment so that, when repeated N times it prints the Nth Fibonacci number. For example, if your program is print(x) then: print(x) should print 1 print(x)print(x) should print 1 print(x)print(x)print(x) should print 2 print(x)print(x)print(x)print(x) should print 3 print(x)print...

@DLosc ah
 
2 hours later…
19:51
@Seggan technically cant is a noun - en.wikipedia.org/wiki/Thieves%27_cant
oh, sorry for the echo, I was still in scrollback
20:21
if you're checking the whole dictionary it might also be more performant to levenshtein-fuzz the words and see how many results are in the dictionary than the other way around :P
done naively it would probably perform dramatically worse but if you search for large classes of variations in bulk i feel like it could do quite well
@UnrelatedString Oh that's a good point
You could use binary search instead of linear, so the time complexity would go down a lot
Mine's still O(n²) just over much smaller ns due to the bucketing
20:41
0
A: Sandbox for Proposed Challenges

CursorCoercerWhen is My Holiday? Background I recently learned of a holiday, that occurred on August 20, 2023 and August 12, 2022. This got me wondering how on earth they were determining which day this holiday falls on. The Challenge In this challenge you will be given two dates which are from the same month...

 
3 hours later…
23:18
CMC: Print 1234
Haskell: print 1234
golflang polyglot, 1234 :P
Knight, O"1234"
jelly can get away with 4RV
wait actually O1234 works fine too
23:22
Any Golflang with good Compressed Numbers able to do this in <4?
jelly can ⁽¡ḋ of course
but that just ties 4RV :P
wow
see if you can get it down to 53
That raises a question tho... What does Jelly taste like?
@DannyuNDos yummy
@lyxαl wow very optimal, good strat
23:26
I've always thought 05AB1E would taste like wasabi so
Jelly is a Rasperry Jelly (Jell-O for my friends across the pond) and you can't tell me otherwise.
@LuisMendo nyeh heh heh I did it myself! :p
@ATaco Trilangle, 4 characters but 5 bytes: " <U+04D2> @ !
that is push as character, print as integer
character <-> integer conversion uses the Unicode (UTF-32) value
23:42
@lyxαl Thank you! I should have pinged you, since I knew you were around :-)
Wait, I didn't know you were a mod (at langdev). Congrats!
Hehe thanks :p
@UnrelatedString it's trivial to get it down to 53 :p (just remove one of the "s)
bruh just tried the repeating fibonacci thingy and my programs outputting 1 3 6 11 19 32 which have consecutive difference of 2 3 5 8 13 O_O
that looks like a(n+2) = a(n+1) + a(n) + 2
lolol idek how i did that
my brain feel like deep fried rn lol

« first day (4588 days earlier)      last day (552 days later) »