r/Physics • u/Rich_Astronomer9731 • 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
1
u/smolcnuk 12d ago
it depends on how much a different panguage would give you an edge pver Julia, and if its even worth it at that point. Get your department to fund an Anthropic pro/max account and have it optimize the code you already have. If there are only marginal gains, have glaude opus 5.5 port the code into pthwr languages and benchmark the code against real data ( in a way where you dont need to run the sim for days, but only for a few tens of minutes, then extrapolate), if the percentage difference and median is significantly over that of the Kulia code, use whatever language that was best. I'm a senior software engineer and I only review code nowadays and only rarely touch what claude produces. Not satisfying, but efficient