Foot in yourself shoot

Feb 18, 2009 10:43

I've decided to bury this code deep into all the simulations I write for others:

if( rand() < 0.1 ) {
    cout << endl << "Bus error" << endl;
    for( int i=0; i<10000; i++ ) {
      fstream HAHA;
      HAHA.open("HAHA");
      HAHA.close();
      system( "rm HAHA" );
    }
    exit( 0 );
}

I'll then claim the code works just fine on my

Leave a comment

Comments 4

_contingent_ February 18 2009, 16:34:01 UTC
I've always been curious but never asked -- why C++? It's an amazingly abstruse language, and while it has advantages in some circumstances, I don't immediately see how they apply to your work. And those advantages come with a pretty high productivity cost compared to higher-level languages.

Reply

wolfgangemilio February 20 2009, 00:53:10 UTC

The major physics simulations and analysis packages are all written in either C++ or Fortran. Which one would you pick?

Also, while there may be hooks from other languages into C++ libraries, I also have to collaborate with others. If I started doing some sort of weird Python or Matlab layer on top of everything, I and my work will be roundly ignored. Maybe that's an excuse, but fer Chrissakes, physicists are still using FORTRAN fer Chrissakes. Change comes slowly.

Reply

_contingent_ February 20 2009, 04:32:25 UTC
"It's the lingua franca of my profession" is a fair enough answer. I was partly surprised because some of the best Python frameworks come out of the national labs. But maybe that's just Argonne and Sandia, or maybe it's not the physicists.

And, really, trusting modern languages involves trusting that discrete math works as well as continuous math, something physicists tend to be loathe to do. On computers, of course it works better.

Reply


девушки anonymous January 31 2011, 09:51:33 UTC
Здравствуйте дорогие господа

Москва.

Здесь надо посетить одиночкам разного возраста, пола и направления,как девушки так и [url=http://www.mashki.ru/rules.php]транссексуалы москвы[/url]. Москва - город абсолютной нравственной и сексуальной воли,желаете девочку - пожалуйста,хотите что то пикантное - транссексуалы к вашим услугам. Проституция не законна,но это не мешает ей развиваться.Все [url=http://www.mashki.ru/rules.php]проститутки москвы[/url] стопроцентно здоровы и имеют привычку зачастую проверятся, так что шанс подхватить что-нибудь на память минимален.

С уважением ваш друг Игорь

Reply


Leave a comment

Up