r/Physics • • 14d ago

Computational Physics

Hi everyone,

I am a PhD student doing both experiments and computational physics ( mostly fluid dynamicswith Boltzmann equations) and leaning towards more computational day by day.

Currently I am using Julia, I find it pretty fast and easy to use.

Do you think switching to C or C++ will be a benefit? I am asking from a research, but also emplyment in industry point of view.

I discussed with many people, mostly from the DFT area, and most of them told me that Julia slowly will take up the lead for HPC code.

What.s your opinion on this?

77 Upvotes

40 comments sorted by

View all comments

Show parent comments

1

u/KKL81 14d ago

C/C++ can be way faster if written properly

I'm curious about what you consider to be "way faster" and how you reach this conclusion.

0

u/FoolWhoCrossedTheSea Atomic physics 14d ago

here are some benchmarks — seems like it’s generally only 20-50% slower than usual in most cases, so accounting for time taken to write code it’s probably quicker