<?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>DEV Community: Joel</title>
    <description>The latest articles on DEV Community by Joel (@joelb).</description>
    <link>https://dev.to/joelb</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%2F1858594%2Fea149ed9-9ea9-429d-86f3-d876e828d4ac.png</url>
      <title>DEV Community: Joel</title>
      <link>https://dev.to/joelb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joelb"/>
    <language>en</language>
    <item>
      <title>Well-typed, accelerated tensors</title>
      <dc:creator>Joel</dc:creator>
      <pubDate>Mon, 29 Jul 2024 22:13:56 +0000</pubDate>
      <link>https://dev.to/joelb/well-typed-accelerated-ml-alpha-5cme</link>
      <guid>https://dev.to/joelb/well-typed-accelerated-ml-alpha-5cme</guid>
      <description>&lt;p&gt;Runtime shape and device errors in tensor code can be costly and tiresome. &lt;a href="https://github.com/joelberkeley/spidr" rel="noopener noreferrer"&gt;spidr&lt;/a&gt; eliminates these problems.&lt;/p&gt;

&lt;p&gt;spidr uses the programming language &lt;em&gt;Idris&lt;/em&gt; to catch all potential shape errors before the code is run. For example, the compiler will reject this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;append : Tensor [m, n] F64 -&amp;gt; Tensor [m, p] F64 -&amp;gt; Tensor [m, n + p] F64
append x y = concat 0 x y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;because we're concatenating along the wrong axis (0 not 1).&lt;/p&gt;

&lt;p&gt;spidr's not just well-typed, it's fast. Like JAX, it uses OpenXLA, and runs on CPU, GPU etc. We are already working on vectorization and autodiff, and have plans for distributed computing, including static checks that your tensors are on the right device.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>showdev</category>
      <category>numerical</category>
    </item>
  </channel>
</rss>
