<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>wasm on krtffl.dev</title>
    <link>https://krtffl.dev/tags/wasm/</link>
    <description>Recent content in wasm on krtffl.dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>© [krtffl](https://krtffl.dev)</copyright>
    <lastBuildDate>Mon, 20 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://krtffl.dev/tags/wasm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>rust &#43; wasm canvas2d charts with zero javascript libraries</title>
      <link>https://krtffl.dev/posts/rust-wasm-canvas-charts/</link>
      <pubDate>Mon, 20 Apr 2026 00:00:00 +0000</pubDate>
      
      <guid>https://krtffl.dev/posts/rust-wasm-canvas-charts/</guid>
      <description>&lt;p&gt;lights out. one car jumps another off the line, and forty laps later a strategist on the pit wall wins the whole race with a single number: &lt;em&gt;when to box&lt;/em&gt;. i don&amp;rsquo;t have a pit wall. i have a laptop, a &lt;a href=&#34;https://openf1.org&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;free public api ↗&lt;/a&gt;
, and an unreasonable urge to see tire strategy as a &lt;em&gt;picture&lt;/em&gt; instead of a table of lap times.&lt;/p&gt;
&lt;p&gt;so i wanted a chart. the boring way to get one is &lt;code&gt;npm install&lt;/code&gt; something with a d3 buried in its dependency tree, feed it an array, and move on with my life. i did not do the boring way. i drew the whole thing in rust, compiled it to webassembly, and painted it onto a &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt; pixel by pixel with zero javascript charting libraries in the bundle.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
