Interesting performance data-point
Chris Piker
chris at hoopjump.com
Sat Jan 4 22:07:05 UTC 2025
On Tuesday, 31 December 2024 at 15:36:31 UTC, Don Allen wrote:
> But I have a theory that I think is the likely explanation. And
> if I'm correct, it highlights one of D's strongest points --
> the ability to call C libraries directly, without the need for
> an elaborate interface layer.
Exactly this (plus a good standard library).
In space-physics we have decades of C (and fortran) libraries
whose output has been thoroughly vetted. When a measurement
platform is traveling over 7.5 km/second it's wise to use codes
with well characterized round-off, and that usually means using
old software.
Since python is the de-facto language of science, there are
students whose entire master thesis is making useful interfaces
to these old libraries. From D, I can just call them. It's great!
More information about the Digitalmars-d
mailing list