<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Matsuzaki Yosuke</title>
    <description>The latest articles on Forem by Matsuzaki Yosuke (@matsuzaki_yosuke_3f74f648).</description>
    <link>https://forem.com/matsuzaki_yosuke_3f74f648</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3710082%2F57885611-cc24-4258-ac8c-242c889c3cf9.png</url>
      <title>Forem: Matsuzaki Yosuke</title>
      <link>https://forem.com/matsuzaki_yosuke_3f74f648</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/matsuzaki_yosuke_3f74f648"/>
    <language>en</language>
    <item>
      <title>Rust vs RSI: How I calculated that I lift 500kg/day with my fingers</title>
      <dc:creator>Matsuzaki Yosuke</dc:creator>
      <pubDate>Wed, 14 Jan 2026 03:30:07 +0000</pubDate>
      <link>https://forem.com/matsuzaki_yosuke_3f74f648/rust-vs-rsi-how-i-calculated-that-i-lift-500kgday-with-my-fingers-3ana</link>
      <guid>https://forem.com/matsuzaki_yosuke_3f74f648/rust-vs-rsi-how-i-calculated-that-i-lift-500kgday-with-my-fingers-3ana</guid>
      <description>&lt;p&gt;Hello devs!&lt;br&gt;
I am a former Series B engineer who developed RSI (Repetitive Strain Injury).&lt;/p&gt;

&lt;p&gt;To visualize the invisible manual labor of coding, I built a desktop widget using &lt;strong&gt;Rust&lt;/strong&gt; and &lt;strong&gt;Tauri v2&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Shocking Data
&lt;/h2&gt;

&lt;p&gt;I did the math based on a standard mechanical switch actuation force (80g):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1 Keystroke&lt;/strong&gt; = 80g&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1 Day of Coding&lt;/strong&gt; = ~500kg (1.7 Grand Pianos) 🎹&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I realized I was lifting a car every week with just my fingers. No wonder my wrists hurt.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1k5u6qw32rt9viiff88s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1k5u6qw32rt9viiff88s.png" alt=" " width="672" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tech Stack: Why Polling over Hooks?
&lt;/h2&gt;

&lt;p&gt;This was the most interesting technical decision.&lt;br&gt;
Most key-loggers use OS hooks (like &lt;code&gt;rdev&lt;/code&gt;). However, I chose a &lt;strong&gt;low-level polling strategy&lt;/strong&gt; (checking key states every 50ms) for this tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Stability:&lt;/strong&gt; Hooks can crash the input chain if they bug out. Polling is isolated.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Permission Hell:&lt;/strong&gt; macOS requires intrusive "Input Monitoring" permissions for hooks. Polling bypasses some of this friction.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Privacy:&lt;/strong&gt; I only needed to know &lt;em&gt;if&lt;/em&gt; a key is pressed to calculate the "weight", not &lt;em&gt;which&lt;/em&gt; key was pressed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It’s a tradeoff: I sacrificed nanosecond precision for rock-solid stability.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Result
&lt;/h2&gt;

&lt;p&gt;I implemented a "Health Bar" system that drains as you type, treating coding energy like HP in a video game.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftez1mh78c7fxbeikell6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftez1mh78c7fxbeikell6.gif" alt=" " width="320" height="67"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are curious about the implementation or want to see your own "Daily Tonnage", I've put the tool up here.&lt;br&gt;
&lt;strong&gt;&lt;a href="https://booby.dev" rel="noopener noreferrer"&gt;The Burnout Meter (booby.dev)&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(It's free and runs locally, no data is sent to the cloud)&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Discussion
&lt;/h2&gt;

&lt;p&gt;Have you ever dealt with RSI? I'd love to hear your thoughts.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>tauri</category>
      <category>healthydebate</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
