« first day (4453 days earlier)      last day (687 days later) » 

00:42
yeah
capital letter variables, fucked-up line breaks, framing narrative, long-form example with no explanation
01:00
Sandbox posts last active a week ago: Selection and Prediction
01:34
@UnrelatedString yeah it's reminiscent of some leetcode or hackerrank problem
01:57
0
A: Sandbox for Proposed Challenges

Huỳnh Trần KhanhString Comparison code-golf You are given two strings \$a\$ and \$b\$ consisting of characters from a to z in lowercase. Let \$n\$ be the length of \$a\$. Let \$m\$ be the length of \$b\$. Let \$a'\$ be the string \$a\$ repeated \$m\$ times. Let \$b'\$ be the string \$b\$ repeated \$n\$ times. Ch...

 
3 hours later…
05:17
0
A: Sandbox for Proposed Challenges

Parcly TaxelDetermine NBA conference seedings code-golfkolmogorov-complexity Heading into the final day of regular season games for the 2023 NBA season, the fifth to ninth seeds in the Western Conference were still very undecided. Four games would determine the seeding: New Orleans (N) at Minnesota (M) Utah...

06:15
Who wants to review my sandbox post above?
 
5 hours later…
10:56
0
Q: How Super is this Prime?

LecdiHow super is this prime? A super prime is a prime whose index in the list of primes is also a prime: 3, 5, 11, 17, 31, 41, 59, 67, 83, 109, 127, 157, 179, 191, 211, 241, 277, 283, 331, 353, 367, 401, 431, 461, 509, 547, 563, 587, 599, 617, 709, 739, 773, 797, 859, 877, 919, 967, 991, ... For thi...

 
1 hour later…
12:11
The copy.sh brainfuck interpreter is approximately 3 times slower than a plain compiler without any optimizations, and ??? times slower than a plain compiler with -O3.
I don't know how fast is the TIO compiler, but when I run C++ code with TIO the time used doesn't seem to be very stable.
12:25
Wait, the TIO interpreter seems to work differently.
It only outputs two characters for the program I'm testing. I speculate that's because its array size is too small.
 
3 hours later…
15:03
0
Q: The Jaccard Index

solid.pyThe Jaccard index / similarity coefficient, also known as the Tanimoto index / coefficient, is a statistic used for gauging the similarity and diversity of finite sample sets. It was developed by Grove Karl Gilbert in 1884 for the field of weather forecasting [1] and later independently developed...

 
1 hour later…
16:25
New in python 3.12:
Variables used in the target part of comprehensions that are not stored to can now be used in assignment expressions (:=). For example, in [(b := 1) for a, b.prop in some_iter], the assignment to b is now allowed. Note that assigning to variables stored to in the target part of comprehensions (like a) is still disallowed, as per PEP 572. (Contributed by Nikita Sobolev in gh-100581.)
This seems useful for golfing, unfortunatly nobody would golf past 3.10 because of the spacing issues
How often have you seen the target part of a for loop store to anything other than a local variable? I don't think that will almost ever be used
16:54
0
Q: Determine NBA conference seedings

Parcly TaxelHeading into the final day of regular season games for the 2023 NBA season, the fifth to ninth seeds in the Western Conference were still very undecided. Four games would determine the seeding: New Orleans (N) at Minnesota (M) Utah at LA Lakers (L) Golden State (G) at Portland LA Clippers (C) at...

17:21
0
Q: Zahlen auf Deutsch! (Numbers in German)

Creative NameYour task is to write a program that recieves a base 10 number from 0 to 99 and outputs the German name of that number with non-ASCII characters replaced with ASCII equivelants. German number names 0 -> null 1 -> eins 2 -> zwei 3 -> drei 4 -> vier 5 -> fuenf 6 -> sechs 7 -> sieben 8 -> acht 9 -> ...

 
1 hour later…
18:34
can a submission take input using a data type that is added by a library?
i know the submission would be listed as language + lib
IMHO yes but not sure if there is a official rule. As long as the data structure is a reasonable interpretation of what is required in the challenge. Something like a numpy array for a list would be OK
ok cool
@mousetail What are these spacing issues past 3.10?
@solid.py You can no longer do [1for i in range()], you need to put a space between numbers and keywords
18:50
@mousetail Oh that's bad... thanks for letting me know.
Yea it basically means 3.10 onward is not really viable for golfing, since language versions still compete against eachtother. Except in very special situations.
19:35
What useful stuff was actually in 3.10?
There was match case but that's easily replaced with if elif
25
Q: pairwise traversal of a list or tuple

Boba = [5, 66, 7, 8, 9, ...] Is it possible to make an iteration instead of writing like this? a[1] - a[0] a[2] - a[1] a[3] - a[2] a[4] - a[3] ... Thank you!

@TheThonnu This one I think is useful.
1
Q: Determine NBA conference seedings

Parcly TaxelHeading into the final day of regular season games for the 2023 NBA season, the fifth to ninth seeds in the Western Conference were still very undecided. Four games would determine the seeding: New Orleans (N) at Minnesota (M) Utah at LA Lakers (L) Golden State (G) at Portland LA Clippers (C) at...

Right, the actual games are live now. Who do you think will win?
I love how you linked your own golfing challenge as well for self promo...
20:11
@mousetail that's still only a SyntaxWarning in Python 3.11 and 3.12 (3.12.0 alpha 7, at least)
 
1 hour later…
21:30
@pxeger SyntaxWarning? That's a new one

« first day (4453 days earlier)      last day (687 days later) »