<story><title>Recording and visualising the 20k system calls it takes to &quot;import seaborn&quot;</title><url>http://blog.mattstuchlik.com/2024/02/16/counting-syscalls-in-python.html</url></story><parent_chain><item><author>dmwilcox</author><text>I&amp;#x27;ve been writing python for going on 20 years now and while it was a good language to cut my teeth on thus sort of analysis brings only horror. Many thanks to the author for dropping into plain view.&lt;p&gt;I&amp;#x27;m going to go back to learning more C and Forth... And shake my fist at passing clouds :)</text></item></parent_chain><comment><author>josephg</author><text>Yeah. I recently worked on a small web project being developed at a university. The project is written in flask, and it presents a reasonably simple UI on top of some data living in a mysql database.&lt;p&gt;When I started on the project, page loads often took 10 seconds or more. The web application is used by about 20 people and that was enough to bring their single beefy server to its knees. Someone in NY tried scraping the site the other week and the site became completely unresponsive. They resorted to banning the IP to keep the website up. The reasons it was slow were all the usual culprits - a misused ORM being the main one.&lt;p&gt;It’s a nice language, but I really felt like I’d been transported back in time a few decades working in it. It feels like I’m using a computer from the 90s where performance choices matter again because the language is so slow. And where dependency management is a circus of half working tools and half hearted attempts at versioning. Packages conflict with one another. Some “pinned” package versions have apparently rusted and won’t actually install on my computer. And the system to install packages locally was obviously bolted on, badly, long after the horse had left the gate.&lt;p&gt;It reminds me of working in C in the early 2000s. I never thought I’d say this but it makes server side JavaScript with npm look positively modern and fast by comparison.</text></comment>
<story><title>Recording and visualising the 20k system calls it takes to &quot;import seaborn&quot;</title><url>http://blog.mattstuchlik.com/2024/02/16/counting-syscalls-in-python.html</url></story><parent_chain><item><author>dmwilcox</author><text>I&amp;#x27;ve been writing python for going on 20 years now and while it was a good language to cut my teeth on thus sort of analysis brings only horror. Many thanks to the author for dropping into plain view.&lt;p&gt;I&amp;#x27;m going to go back to learning more C and Forth... And shake my fist at passing clouds :)</text></item></parent_chain><comment><author>GuestHNUser</author><text>ImPlot is small and worth checking out if you don&amp;#x27;t want to make the plotting functions yourself. &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;epezent&amp;#x2F;implot&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;epezent&amp;#x2F;implot&lt;/a&gt;</text></comment>