←back to thread

155 points samuell | 1 comments | | HN request time: 0.001s | source
Show context
JonChesterfield ◴[] No.44751587[source]
One could presumably compile arbitrary C++ to rust or D without changing semantics, then slowly go through the result making it look more native to the new language.

That would either be a wholesale conversion or emitting a translation shim style thing at the boundary between legacy c++ and the new language.

I'm not sure Carbon is necessary to achieve such a conversion.

replies(3): >>44751803 #>>44751964 #>>44752137 #
1. miguel_martin ◴[] No.44751964[source]
Nim would be the best choice for this at the moment, imho

importcpp what you need. exportcpp for the other way around