Remix.run Logo
gilgoomesh 6 days ago

Swift can also 2-way operate with C++. Its coverage of the C++ language is incomplete but I suspect it might outpace Carbon.

troad 6 days ago | parent | next [-]

I really struggle to imagine an organisation that shepherds a large and venerable C++ codebase migrating over to Swift.

For all of C++'s faults, it is an extremely stable and vendor-independent language. The kind of organisation that's running on some C++ monolith from 1995 is not going to voluntarily let Apple become a massive business risk in return for marginally nicer DX.

(Yes, Swift is OSS now, but Apple pays the bills and sets the direction, and no one is seriously going to maintain a fork.)

pjmlp 5 days ago | parent | next [-]

I saw organizations in the past do that with Java and .NET, moving away from C++.

It is perfectly feasable for companies that are full commited into Apple ecosystem.

philwelch 6 days ago | parent | prev | next [-]

Maybe not, but an Objective-C++ codebase might be a good candidate.

volemo 5 days ago | parent [-]

Do you have projects with huge code bases of Obj-C++ in mind?

I guess, some Mac apps? In that case I think most platform independent "guts" would be in C or C++, and the Obj-C++ part is tied to the frameworks, so the devs would have to rewrite it anyway.

saagarjha 5 days ago | parent [-]

Facebook iOS

saagarjha 5 days ago | parent | prev [-]

I think Apple is largely doing this for themselves.

LeFantome 6 days ago | parent | prev [-]

I need to learn more about that. I know that the Ladybird folks want to use it inside their C++ project.