Sign in to follow this  

Massive Computation: C++ vs C#

This topic is 4814 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If real-time is out of the question then go ahead and use C#, if that's what you wan't to use and gets the job done better and quicker. If you wan't best of both worlds just create a DLL with all your math computations in C++ and link to it from C#.

Share this post


Link to post
Share on other sites
IIRC C# is somewhat slower at floating point. It was, anyway; that may have changed.

But if you're not working in real time, I don't know how much it matters, and if you're writing managed code anyway, you may as well go for C#.


Although the DLL idea is not a bad one...I'm not sure how much comparative overhead the dynamic linking will cause.

Share this post


Link to post
Share on other sites
Quote:
Original post by MaulingMonkey
Quote:
Original post by Sagar_Indurkhya
Ok. Remember what I said about the project I am doing?


Nope. And I hate it when people assume I do. You should provide a link next time.


Sorry, I meant for the people who posted last time to post again. Umhhh, it is just a project that does huge calculations. It isn't in real time. It records variables into a log, and can play them back like a movie.

Share this post


Link to post
Share on other sites
You won't be able to run it in a data center if you use .NET..
But unless you need truly massive calculations then that shouldn't be an issue, so use whatever language gets the job done faster.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sagar_Indurkhya
What is a data center? I meant for it to run on my home cpu. It records a log file, so that I can stop and start it at any time.
I meant a super computer.
Your local university might be able to donate/lease you some cpu time for research projects.
But it'll probably take weeks to setup so unless the simulation would take months to complete on a home computer it's not really an option.

Share this post


Link to post
Share on other sites

This topic is 4814 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this