News for hackers. Stuff that matters.
Re:Carbon’s most exciting feature is its calling convention by phire on Sunday July 31, 2022 @04:37AM (#32294238)
It's complicated to call a c++ library from rust.

You actually have to wrap all the c++ functions in c functions, and then call those c functions from rust. Which requires either making manual wrappers, or automated wrapping tools that handle the specific idiosyncrasies of the library you are calling.

Which is a massive barrier; Gamedev standardised on c++ and there are so many c++ libraries.

In comparison, Carbon is designed from the ground up to automatically have bi-directional inter-op with c++. It's what the language is designed to do.

There are no comments on this comment yet.