Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3963764
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:15:14+00:00 2026-05-20T03:15:14+00:00

I am about to start a new project in scientific computing, which will run

  • 0

I am about to start a new project in scientific computing, which will run on a computer cluster using from 8 up to 32 CPUs. I will use MPI to distribute the calculations. The last thing is which language is better to use C or C++? I will do some serious number crunching, and I will need a smooth and well-distributed parallelization. I have no experience using MPI, but I am aware that it suits C much more than C++, even if libraries like boost::MPI are used. Taking into account that performance is crucial, what language is better to use?

Note: Of course, one could write C-style code on C++, but that wouldn’t be C++ after all. When I speak of C++ I mean to use lots of OOP and generic programming.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:15:15+00:00Added an answer on May 20, 2026 at 3:15 am

    You can write slow code in any language. MPI is a message-passing library so it simply does not care whether you call it from C or C++ — use whichever language you are better at.

    Which you should determine by profiling and measuring.

    The Language Shootout comparison between C and C++ is pretty even about size, speed and memory use.

    Lastly, there is also the underestimated importance of ‘time to code’. You may get to a working program faster in C++ than in C simply because you have more high-level tools at your disposal. Or you may not, so I would try to measure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

About to start a new project in VS2010 which will have a few windows
I'm about to start a new project which should have a rather large database.
We are about to start a new project. It will be a group of
I am about to start a new project and would like to document its
We're about to start a new project, and our client's current application is .NET
I'm about to start a project that will record and edit audio files, and
I'm starting on a new scientific project which has a lot of data (millions
I am about to start a new project and am deciding what data access
We are about to start a new project, and an outsourced developer has come
I am about to start a new project, a facebook app. There are two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.