<story><title>Show HN: Cannoli – A compiler for a subset of Python written in Rust</title><url>https://github.com/joncatanio/cannoli</url></story><parent_chain><item><author>sandGorgon</author><text>I still don&amp;#x27;t understand why Pypy hasn&amp;#x27;t been adopted by Google or Dropbox (the standard bearers of the Python ecosystem) as a forward looking investment.
It is constantly underfunded (&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pypy.org&amp;#x2F;py3donate.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pypy.org&amp;#x2F;py3donate.html&lt;/a&gt;) and given the potential for the work that&amp;#x27;s happening, I don&amp;#x27;t understand why these guys don&amp;#x27;t write cheques for a few hundred k.</text></item><item><author>joncatanio</author><text>I recently finished the code for my thesis and wanted to share with you all :). The goal of the thesis was to evaluate language features of Python that were hypothesized to cause performance issues. Quantifying the cost of these features could be valuable to language designers moving forward. Some interesting results were observed when implementing compiler optimizations for Python. An average speedup of 51% was achieved across a number of benchmarks. The thesis paper is linked on the GitHub repo, I encourage you to read it!&lt;p&gt;This was also my first experience with Rust. The Rust community is absolutely fantastic and the documentation is great. I had very little trouble with the &amp;quot;learning curve hell&amp;quot; that I hear associated with the language. It was definitely a great choice for this work.&lt;p&gt;I also included PyPy in my validation section and &amp;quot;WOW&amp;quot;. It blew both Cannoli and CPython out of the water in performance. The work they&amp;#x27;re doing is very interesting and it definitely showed on the benchmarks I worked with.</text></item></parent_chain><comment><author>joncatanio</author><text>After I ran the experimental evaluation, I had similar thoughts. If PyPy ever matches the current version of CPython I&amp;#x27;m not sure why one wouldn&amp;#x27;t use PyPy over CPython. The biggest hurdle is matching support for popular libraries like NumPy, Tensorflow, Pandas, Scipy etc. I know they&amp;#x27;re working on supporting these, it&amp;#x27;s definitely a lot of work to do, easier said than done.</text></comment>
<story><title>Show HN: Cannoli – A compiler for a subset of Python written in Rust</title><url>https://github.com/joncatanio/cannoli</url></story><parent_chain><item><author>sandGorgon</author><text>I still don&amp;#x27;t understand why Pypy hasn&amp;#x27;t been adopted by Google or Dropbox (the standard bearers of the Python ecosystem) as a forward looking investment.
It is constantly underfunded (&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pypy.org&amp;#x2F;py3donate.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pypy.org&amp;#x2F;py3donate.html&lt;/a&gt;) and given the potential for the work that&amp;#x27;s happening, I don&amp;#x27;t understand why these guys don&amp;#x27;t write cheques for a few hundred k.</text></item><item><author>joncatanio</author><text>I recently finished the code for my thesis and wanted to share with you all :). The goal of the thesis was to evaluate language features of Python that were hypothesized to cause performance issues. Quantifying the cost of these features could be valuable to language designers moving forward. Some interesting results were observed when implementing compiler optimizations for Python. An average speedup of 51% was achieved across a number of benchmarks. The thesis paper is linked on the GitHub repo, I encourage you to read it!&lt;p&gt;This was also my first experience with Rust. The Rust community is absolutely fantastic and the documentation is great. I had very little trouble with the &amp;quot;learning curve hell&amp;quot; that I hear associated with the language. It was definitely a great choice for this work.&lt;p&gt;I also included PyPy in my validation section and &amp;quot;WOW&amp;quot;. It blew both Cannoli and CPython out of the water in performance. The work they&amp;#x27;re doing is very interesting and it definitely showed on the benchmarks I worked with.</text></item></parent_chain><comment><author>sanxiyn</author><text>I am hoping Facebook to fund PyPy given that Instagram runs on Python.&lt;p&gt;It seems Google and Dropbox are not interested. Google is working on Grumpy, Dropbox worked on Pyston.</text></comment>