« first day (4745 days earlier)      last day (395 days later) » 

00:04
0
Q: The TAK function

BubblerThe TAK function is defined as follows for integers \$x\$, \$y\$, \$z\$: $$ t(x, y, z) = \begin{cases} y, & \text{if $x \le y$} \\ t(t(x-1,y,z), t(y-1,z,x), t(z-1,x,y)), & \text{otherwise} \end{cases} $$ Since it can be proved that it always terminates and evaluates to the simple function below, ...

00:37
0
A: Sandbox for Proposed Challenges

Alan BreadelHow many ways does this string conform to this expression? Given an expression, decide in how many ways could an inputted string consisting of only printable ascii conforms to that expression. The best way to explain how the expression works is with an example, so here is one. Let's say the expre...

01:00
Sandbox posts last active a week ago: Battle Simulator KOTH
 
6 hours later…
07:23
@AaroneousMiller holy shit thats so cool
 
2 hours later…
09:00
CMC Output the numbers 1-1000 in the order that minimizes the total Levenshtein distance between each successive element in roman numberals
@mousetail interesting challenge!
It might just be normal order but I'm not sure, interested in proof or counterexample
CMQ Given a 2d numpy array, what is the goofiest way to find the 2d coordinates of the maximum along with the value of the maximum?
@mousetail what is 49 to 50 in Roman numerals?
XLIX and L, so a diff of 3 chars
Also 8 to 9
09:12
The issue is that 49 and 8 are kind of far from anything else too
Maybe better to go from 49 to 51? XLIX → LI
39 to 40 looks bad
89 to 90 too
Will not terminate for a long time
@Adám Interesting, sadly if that was true it reduces the likelihood the the correct answer having a nice numerical pattern since 49 and 51 are close more by coincidence than any numerical properties
Right.
09:15
Can you do 1-20 to start with?
I think the best ordering is not just the normal order. Since numbers far away from each other can be close in Roman. E.g. I is close to II, IX, XI, IL, LI etc.
This is basically the traveling sales man problem btw
There are great libraries for that
Although 1000 is maybe too large
100 should be ok to start with
I might ask on puzzling se if that is ok with you
That would be fine, as long as you credit me
@mousetail of course. In Euros?
09:22
In bytes
@mousetail :)
Done
I submitted an edit
0
Q: List Roman numerals to minimize total distance

SimdThis is based on a challenge invented by @mousetail. List the numbers from 1-100 in Roman numerals in the order that minimizes the total sum of the Levenshtein distances between consecutive numbers.

 
3 hours later…
12:45
@mousetail and we have a definitive answer!
Nice
Wonder if the same pattern could be extended for longer ranges
They would know :)
CMQ: did y'all ever go through a phase where you absolutely had to use the lightest weight font variant possible and nothing else would suffice?
Like I'm talking in terms of avenir next ultralight
Back in 2015 is was the main font I used for everything
That's very specific but also that exact thing happened to me
Especially loved ultralight headings
you can still see them in some of my old websites
Something about really thin text was just so appealing
At the cost of not being able to read it clearly ofc :p
12:57
Bold titles are just very uncivilized
I blame Apple for it in hindsight
Gosh dang Helvetica Neue
Looking all modern and elegant making me go down the rabbithole of thin text
Good thing variable type didn't exist back then
One year too early
Or late depending on how you calculate the relativity
@lyxal i choose whatever looks the best, usually medium to somewhat bold
@lyxal yes! I had a phase in which all my text was FiraGO Two, which is very very thin
13:09
Good to know it wasn't just me :p
I do not know C spoiler
14:13
2
A: Sandbox for Proposed Challenges

Alan BreadelHow quickly can you type this string? code-golf string Given a string consisting of only printable ascii, how many keystrokes are required minimally to type out this string from scratch? The allowed keystrokes are: one character from printable ascii (1 keystroke) Ctrl-C any contiguous substring ...

Feedback?
You say more coming soon but I'd suggest not adding more. Seems like it's now at the best level of complexity
Not sure what the point of cntl-A is since you say you can select text for free already
i meant as in an example and test cases
Yea test cases would be good
Can you backspace any character or must it be the last?
just the last
maybe ctrl-v should be just one keystroke?
 
2 hours later…
16:16
> You scored 0 points, sorry. You don't know what you don't know.
i got 1 point only because im too lazy to do the bitwise operations in problem 4.
lol
i also forgot overflows are undefined
0
A: Sandbox for Proposed Challenges

Alan BreadelTile the untileable Only triangles, squares, and hexagons can tile perfectly with no gaps. With any other polygon, there will always be gaps. But what if you could tile with say, a pentagon? You just have to cheat, with other shapes. Given two integers a and b, how many x-sided polygons where a !...

17:02
@AlanBreadel The bitwise operations all cancel out though
17:34
slightly easier for those of use who are old enough to have used 16-bit int
i hate how c just specifies "minimum" and not concrete sizes
kinda hard not knowing how big ure number is
at least do something like java where int is 32 and long is 64 bits, or better yet, like rust when you have explicit i32, i64, etc
At least better than no minimum at all
all integers are single bytes
All integers are single bits
in The Garbage Collector, Jun 22, 2023 at 20:56, by Seggan - On Strike
wait... thats just a bool
also TIL rust has int and uint, for pointer width types
wait im dumb of course ive seen those before
theyre called size and usize these days
18:06
There was a lot of debate about the name
We could have had upointer. Just u was also considered
 
4 hours later…
22:27
Got access to the stack overflow ai search today and it looks like it should be relatively easy to get it to play chess with me
When you try to ask it a non-programming question, it says "yeah no sorry that's not what I can answer"
But if you say "how would I print $question and a response to it in python" it gives you an actual response
im going to try it too
It's like how you can say "in minecraft" and the FBI immediately stops investigating you for tax evasion
@AlanBreadel do you have access to it?
It's a waitlist thing
the ai labs one right?
oh ok i got e4 e5 in
@AlanBreadel yeah
wait what no it suddenly broke
it was going well for 4 moves :(
i guess i have to play more common openings
22:44
Never change LLM technology
Never change :p
I'll work on a chess game when I get to my computer a bit later
i couldnt get it to work with alan breadel
i meant alan breadel is cool, but this is also cool

« first day (4745 days earlier)      last day (395 days later) »