« first day (4544 days earlier)      last day (597 days later) » 

02:34
lyxai
The one and only LLM trained on our favorite code golfer
03:33
Dude GH codespaces is so fast compared to my laptop I almost don't believe it
 
2 hours later…
05:18
Is it just me or does chatgpt largely produce code that doesn’t run?
05:34
you expected anything more from word salad? :p
 
1 hour later…
06:56
0
Q: Landmine Number II

Jeremy CollpravBackground You have again been given the task of calculating the number of landmines in a field. However, we have now travelled into the flatlands. You must calculate the landmine score given a list/string of numbers (which will be 2D) and the landmine number. The landmine number tells you where ...

07:08
@lyxal :)
0
Q: Optimize moving data segment for size

pgp1I want to move the entire data segment 2 bytes to the right while optimizing for size in nasm, My best Idea is: std pusha push es push ds pop es mov si, bp lea cx, [bp+0x1] lea di, [bp+0x2] rep movsb pop es popa But it takes 17 bytes...

 
6 hours later…
13:28
who knew that writing an explanation for a program would help save 7 bits
13:58
@lyxal Tbf, I've found the best way to golf an answer is to explain it
But today was the first time writing an explanation showed me a way to keep the sbcs byte count the same while shortening the bit count
I had a } which is less frequent hence taking up more bits when I only needed a ; which is more frequent hence taking up less bits
14:44
Oh is Vyxal using Huffman coding now?
Also petition to rename Huffman codes to something harder to mistake with Hamming codes
I'm cool with "Rydwolf coding" if y'all are
@RydwolfPrograms Have you not heard of Vyncode?
I knew lyxal was working on it a while back
I'm not super up-to-date on the meta tho :p
 
2 hours later…
16:44
CMC output the number that occurs most frequently in a list
If there are two that have the same frequency then output any of those
17:24
0
Q: How to solve this problem using stack or queue in c++?

AtikProblem Statement John, the magician is putting some magic colors in a box serially. But he is not providing any divider between the colors. So, the color may be mix up instantly. There are three types of colors- Red, Green and Blue. How they could mix up is given below - Red+Blue = Purple Red+Gr...

17:35
@l4m2 yes
@l4m2 I wonder why Python's mode command isn't there as an answer
18:07
posted on July 09, 2023 by WheatWizard‭

Given a number $n \geq 3$ as input output the smallest number $k$ of modular residues of $k$ by the first $n$ primes is exactly $\{-1,0,1\}$. That is there is a prime in the first $n$ pr...

18:42
looking for a golfing language that has easy access to arbitrary OEIS sequences, anybody know some?
18:55
i don't think there is one
the idea has been floated but it would either be a huge pain to fully implement or rely on internet access (and be limited in how far it can compute sequences that aren't exhaustively listed)
hmm okay
i don't mind if there is some experiment that requires using the api and doesn't work after the last available numbers
I just need to do A920[x]/A400[x]
19:15
a000920 doesn't seem too hard to sort of brute force if nothing else
19:37
@UnrelatedString A third option that's still difficult and limited, but less so of either, is scraping the programs listed to generate the sequence, predicting their I/O format, and using installed copies of Mathematica, Sage, Python, etc. to run them
@RydwolfPrograms this is so cursed, I want to try it
Have fun :p
do not tempt me
At least the b files provide good test cases
20:33
@UnrelatedString sure I have a 19 byte implementation of A000920[x]/6^x in dyalog apl
but this might be shorter if we can just reference the sequence
(this one for reference)
21:03
Conor O'Brien had something like that, don't remember where
21:18
looks like it's statically implemented (unless it mixes static and web requests?) I'll look into it tomorrow, thanks
Ooh, D
You don't see that very often
Except after exams
22:06
@RydwolfPrograms since the end of April, and not Huffman but range coding
Also technically speaking vyx-µ has been around for longer (like a year or so) but for some reason it never got used
22:37
thanks copilot
22:47
lol
Did you not learn how to ulus in elementary school? :P
First you learn how to ulus, then you learn how to calc, then you learn calculus
3
Hey at least it isn't deleting your entire webpage :p
Feb 9 at 12:55, by lyxal
user image
That's certianly a way to make the page load faster

« first day (4544 days earlier)      last day (597 days later) »