<div dir="ltr">On 2 June 2013 01:19, Paulo Pinto <span dir="ltr"><<a href="mailto:pjmlp@progtools.org" target="_blank">pjmlp@progtools.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 01.06.2013 16:24, schrieb Benjamin Thaut:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 01.06.2013 01:30, schrieb Manu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 1 June 2013 09:15, bearophile <<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.com</a><br>
<mailto:<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.<u></u>com</a>>> wrote:<br>
<br>
    Manu:<br>
<br>
        On 1 June 2013 01:12, bearophile <<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.com</a><br>
        <mailto:<a href="mailto:bearophileHUGS@lycos.com" target="_blank">bearophileHUGS@lycos.<u></u>com</a>>> wrote:<br>
<br>
            Manu:<br>
<br>
<br>
              Frankly, this is a textbook example of why STL is the<br>
            spawn of satan. For<br>
<br>
                some reason people are TAUGHT that it's reasonable to<br>
                write code like<br>
                this.<br>
<br>
<br>
            There are many kinds of D code, not everything is a high<br>
            performance<br>
            ray-tracer or 3D game. So I'm sure there are many many<br>
            situations where<br>
            using the C++ STL is more than enough. As most tools, you<br>
            need to know<br>
            where and when to use them. So it's not a Satan-spawn :-)<br>
<br>
<br>
        So why are we having this conversation at all then if faster<br>
        isn't better in this instance?<br>
<br>
<br>
    Faster is better in this instance.<br>
    What's wrong is your thinking that the STL as the spawn of Satan in<br>
    general.<br>
<br>
<br>
Ah, but that's because it is ;)<br>
Rule of thumb: never use STL in tight loops. problem solved (well,<br>
mostly)...<br>
</blockquote>
<br>
I have to agree here. Whenever you have a codebase that has to work on 9<br>
platforms and 6 compilers the S in STL vanishes. Also the<br>
implementations are so varying in quality that you might get really good<br>
performance on one platform but really bad on another. It seems like<br>
everyone in the games industry avoids STL like the plague.<br>
<br>
Kind Regards<br>
Benjamin Thaut<br>
</blockquote>
<br></div></div>
I used to have that experience even with C, when I started using it around 1994. C++ was even worse between CFront, ARM and ongoing standardization work.<br>
<br>
As for STL, I can assure that HPC guys are huge fans of STL and Boost.<br></blockquote><div><br></div><div style>The funny thing about HPC guys though, at least in my experience (a bunch of researchers from Cambridge who I often give _basic_ optimisation tips), is they don't write/run 'high performance software', they're actually pretty terrible programmers and have a tendency to write really low performing software, but run it on super high performance computers, and then call the experience high performance computing...</div>
<div style>It bends my mind to see them demand an order of magnitude more computing power to run an algorithm that's hamstrung by poor choices of containers or algorithms that probably cost them an order of magnitude in performance ;)</div>
<div style>And then the Universities take their demands seriously and deliver them more hardware! O_O</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

At least when I did my traineeship at CERN (2003-2004) that was the case.<br></blockquote><div><br></div><div style>I hope CERN has better software engineers than Cambridge University ;)</div><div style>Most of these guys are mathematicians and physicists first, and programmers second.</div>
</div></div></div>