Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

That sounds really cool.

I did some searching to see people's experiences substituting other languages for C++ through LLVM, and didn't find much other than samples of translated calls.

Given that there would be a big benefit to this (not having to learn a new language, less manual memory management), are there good reasons this isn't way more common?



view as:

I thought it was pretty common?

If you use the C ABI you can just link a bunch of object files together.

Rust people are doing it a lot for graphics/game stuff, and there's lots of production MacOS apps mixing ObjC/Swift (because they're transitioning), or consuming C/C++. Of course in this case it's mostly Xcode doing the magic, but behind the scenes it's just calling clang.


Legal | privacy