Take the 2-minute tour ×
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
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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