<story><title>Deno 1.39: The Return of WebGPU</title><url>https://deno.com/blog/v1.39</url></story><parent_chain><item><author>kiwicopple</author><text>This is exciting&lt;p&gt;&amp;gt; &lt;i&gt;The WebGPU API gives developers a low level, high performance, cross architecture way to program GPU hardware from JavaScript. It is the effective successor to WebGL on the Web. The spec has been finalized and Chrome has already shipped the API. Support is underway in Firefox and Safari.&lt;/i&gt;&lt;p&gt;Interestingly, the Deno team previously attempted[0] this and rolled it back due to instability. Once this is stable, it means that ML&amp;#x2F;AI workloads will be accessible to JS developers:&lt;p&gt;&amp;gt; &lt;i&gt;These days, most neural networks are defined in Python with the computation offloaded to GPUs. We believe JavaScript, instead of Python, could act as an ideal language for expressing mathematical ideas if the proper infrastructure existed. Providing WebGPU support out-of-the-box in Deno is a step in this direction. Our goal is to run Tensorflow.js on Deno, with GPU acceleration. We expect this to be achieved in the coming weeks or months.&lt;/i&gt;&lt;p&gt;[0] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;deno.com&amp;#x2F;blog&amp;#x2F;v1.8#experimental-support-for-the-webgpu-api&quot; rel=&quot;nofollow noreferrer&quot;&gt;https:&amp;#x2F;&amp;#x2F;deno.com&amp;#x2F;blog&amp;#x2F;v1.8#experimental-support-for-the-webg...&lt;/a&gt;</text></item></parent_chain><comment><author>throwawaymaths</author><text>&amp;gt; We believe JavaScript, instead of Python, could act as an ideal language for expressing mathematical ideas if the proper infrastructure existed&lt;p&gt;Outside of &amp;quot;everyone uses js&amp;quot;, why do we believe this?  What makes JS &amp;quot;ideal&amp;quot;.&lt;p&gt;I would think for machine learning one would want:&lt;p&gt;- generally default to non-mutating, functional representation of ideas, with convenient escape hatches&lt;p&gt;- treats the GPU as a concurrent (or better yet, distributed) resource&lt;p&gt;- can seamlessly run ML code as either immediate or an optimized graph.&lt;p&gt;- could swap out compute resources as asynchronous rpc, like, flex out to something more powerful if available and needed&lt;p&gt;Certainly most of these are possible in JS, but I would hardly call it &amp;quot;ideal&amp;quot; for these bullet points, not to mention other general concerns like a highly questionable dependency management ecosystem.</text></comment>
<story><title>Deno 1.39: The Return of WebGPU</title><url>https://deno.com/blog/v1.39</url></story><parent_chain><item><author>kiwicopple</author><text>This is exciting&lt;p&gt;&amp;gt; &lt;i&gt;The WebGPU API gives developers a low level, high performance, cross architecture way to program GPU hardware from JavaScript. It is the effective successor to WebGL on the Web. The spec has been finalized and Chrome has already shipped the API. Support is underway in Firefox and Safari.&lt;/i&gt;&lt;p&gt;Interestingly, the Deno team previously attempted[0] this and rolled it back due to instability. Once this is stable, it means that ML&amp;#x2F;AI workloads will be accessible to JS developers:&lt;p&gt;&amp;gt; &lt;i&gt;These days, most neural networks are defined in Python with the computation offloaded to GPUs. We believe JavaScript, instead of Python, could act as an ideal language for expressing mathematical ideas if the proper infrastructure existed. Providing WebGPU support out-of-the-box in Deno is a step in this direction. Our goal is to run Tensorflow.js on Deno, with GPU acceleration. We expect this to be achieved in the coming weeks or months.&lt;/i&gt;&lt;p&gt;[0] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;deno.com&amp;#x2F;blog&amp;#x2F;v1.8#experimental-support-for-the-webgpu-api&quot; rel=&quot;nofollow noreferrer&quot;&gt;https:&amp;#x2F;&amp;#x2F;deno.com&amp;#x2F;blog&amp;#x2F;v1.8#experimental-support-for-the-webg...&lt;/a&gt;</text></item></parent_chain><comment><author>oritsnile</author><text>Just yesterday I was looking to play around with webGPU and found the 1.8 release page. I had no idea it was removed. I hope that webGPU will gain adaptation as the best cross platform system. The incompatibility between platforms for openGL or Vulkan always made me not want to learn it.</text></comment>