Notices
Results 1 to 3 of 3

Thread: Python & C++ in Physics

  1. #1 Python & C++ in Physics 
    Forum Freshman fred91's Avatar
    Join Date
    May 2013
    Location
    Cagliari (Italy)
    Posts
    19
    Hi,
    I'm about to prepare a thesis for my Bachelor in Physics and I'm going to need some programming skills to do it. The thesis will be probably about data analysis of LHCb experiment and my teacher suggested to learn the basics of Python. "Unfortunately", I happen to prefer C++, so I'd like to know which do you think is the best (or the most used) language in experimental high energy physics?
    I know that I didn't give you many details, but I don't know them either
    Just tell me if you know something about the usage of these two languages in high energy physics and it will be enough!
    Thanks!


    Reply With Quote  
     

  2.  
     

  3. #2  
    Forum Freshman
    Join Date
    Oct 2010
    Posts
    98
    I know nothing about usage of this languages in your area of interest but I did a lot of C++ and some Python programming.

    Generally speaking these languages are similar and you should choose one which better fits your environment. Say if you are going to compute something in multiple threads on a cluster you should choose a language with better multi-threading capabilities. (This is probably Python). If you need top performance, choose C++. If you are expecting multiple modify-run phases, choose Python.

    Also consider tools you have (IDE, compiler) and dependencies, that is any existing code.


    Reply With Quote  
     

  4. #3  
    Forum Freshman fred91's Avatar
    Join Date
    May 2013
    Location
    Cagliari (Italy)
    Posts
    19
    Quote Originally Posted by BlasW View Post

    Generally speaking these languages are similar and you should choose one which better fits your environment. Say if you are going to compute something in multiple threads on a cluster you should choose a language with better multi-threading capabilities. (This is probably Python). If you need top performance, choose C++. If you are expecting multiple modify-run phases, choose Python.

    Also consider tools you have (IDE, compiler) and dependencies, that is any existing code.
    I see, well I still don't know what kind of needs a physicist of that type has, but probably the most important thing for the programming language chosen is to allow very rapid operations. Generally experimental physicists have to manipulate a big amount of data (and therefore operations) but the single calculations are not very complicated. As IDE, I started with Dev C++ and now I've moved to Visual Studio. For Python, I downloaded the IDE suggested from the official site, can't really remember the name
    Reply With Quote  
     

Similar Threads

  1. 안녕하새요
    By Plank in forum Introductions
    Replies: 1
    Last Post: February 25th, 2013, 04:05 PM
  2. Python
    By CavalierAlex in forum Computer Science
    Replies: 1
    Last Post: August 10th, 2011, 11:39 AM
  3. Python?
    By GiantEvil in forum Computer Science
    Replies: 6
    Last Post: April 19th, 2011, 03:27 AM
  4. 2008IEEE信息技术&
    By bluesky in forum Education
    Replies: 0
    Last Post: May 7th, 2008, 09:53 PM
  5. 2008 信息技术&#1
    By julie_yh in forum Computer Science
    Replies: 0
    Last Post: February 25th, 2008, 02:50 AM
Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •