I think I need more coffee, I just wrote this code:
line=line.rstrip(line)
I think I need more coffee, I just wrote this code:
line=line.rstrip(line)
@foone Mich more efficient than an empty string literal
@misty @foone
It's funny because it's true.
Back in the bad old days of big iron (S/370 family), loading a (constant folded) literal 0 was slow as it was a non-local memory fetch. (A local literal would be _space_ inefficient, which back then was even more sacred, and still slow.)
So we had performance matrix of which register-register op was least number of microcode ops to zero a register for each model, and a Macro would use the best one for the target CPU model.
SUB Rn, Rn
XOR Rn, Rn
etc
@foone this feels like a zen koan
@foone get that whole line outta here
this takes the string line and removes from the right side all characters that appear in the string line, and overwrites itself with the new, (and empty) string
@foone I support it.
I was running my keysmash detector (which has working code for everything except keysmashes) against a dictionary file and it only found three false positives:
"maw", "moop", and "mop" were detected as meows
EDIT: removed "mow", enough cats have argued that it's a valid meow that I'm keeping it
@foone mow is a valid meow
@astraleureka yes, I've recorded it as such
my current data-drive test reports 132 failed, 43 passed
129 of those failures are the lack of any implemented keysmash detection code, and the remaining three are "maw", "moop", and "mop", which shouldn't be detected by is_meow (I decided to let "mow" slide)
next step: keysmash heatmaps!
FUCK I forgot to ask about keyboard language.
QWERTY-US and QWERTY-UK are different, and I only noticed because someone managed to keysmash a € in there
@foone someone managed to search the web for "Euro symbol" and copy and paste the symbol from the results? I'll be honest, that's the easiest way I know to type that on a UK keyboard!
That's PC-858 rather than PC-850, isn't it.
(It's been years since this moose wrangled CCSIDs for $Dayjob.)
3:O(>
@foone You might also want to account for Canadian multilingual standard, not that I've ever actually met someone that uses it. Probably only used in Quebec?
lord only knows how. are you keysmashing with alt-gr?
ugly but I have a sort of heatmap based on my current test corpus
N is surprising
I have to do slices manually right now, but it does look like most of the reason N is on there is because of one specific transfem who includes a lot of B and N in her keysmashes.
136 of those 274 "N"s come from her.
It does deeply bother me (as a programmer) that [ shows up 29 times but ] zero times.
YOU PEOPLE AREN'T CLOSING YOUR BRACKETS WHEN YOU KEYSMASH
also I went and contacted the person who was dropping £s and €s and it turns out they're on US-QWERTY, but keysmashing on mobile, thus a virtual keyboard
@foone
keysmash heatmaps TTTO nutbush city limits?
@foone You can find out if someone is a gamer, vim user, or normal this way.
have seen plenty of cats type 'mow' when they make cat noises.
@VulpineAmethyst good to know. I'll add it to the test corpus