Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I'm interested in working with the D programming language for simulating physics. How suitable is it? Is DMD's floating point code generation mature enough to compete with compilers available for c++ and fortran? Have fast matrix libraries been ported to D (or are they accessible from D)? Is there anything in the language itself that would inhibit/improve the floating point performance of the language?

I love programming in the language, however I'm worried that the compilers/libraries might not be suitable yet for numerical work.

share|improve this question

put on hold as off-topic by MichaelT, Kilian Foth, durron597, Snowman, gnat Oct 1 at 5:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about what language, technology, or project one should take up next are off topic on Programmers, as they can only attract subjective opinions for answers. There are too many individual factors behind the question to create answers that will have lasting value. You may be able to get help in The Whiteboard, our chat room." – MichaelT, Kilian Foth, durron597, Snowman, gnat
If this question can be reworded to fit the rules in the help center, please edit the question.

I think the safest bet is to use wherever is most common in your department. It's great being able to leverage existing code (and a practice not done as often as it should, at least where I studied). –  Vitor Jun 20 '11 at 18:21

1 Answer 1

If you don't know in advance, do what you need in it until you hit a wall. By then you'll know more about the problem you're trying to solve, and where the bottleneck is.

Maybe you'll be able to do it all in D, and there will be no reason to cross to a different language.

Without knowing anything apart from "simulating physics" this is really the generic answer, which goes for pretty much every programming language.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.