News for hackers. Stuff that matters.
Re:The future of Clang-based tooling by mathisfun123 on Saturday July 29, 2023 @04:59PM (#36924507)
Have you seen https://github.com/RosettaCommons/binder ?

python aside, having gone down this rabbithole, and still not infrequently revisiting said rabbithole, I don't believe using *clang like this is a winning strategy. Because of the number of corner cases there are in eg C++17, you will end reimplementing effectively all of the "middle-end" (the parts that lower to llvm) for your target language. At that point you're building bindings anymore but a whole-ass transpiler. Binder fails to be complete in the way.

My current theory is to try "synthesize" bindings from the llvm ir (a much smaller representational surface). Problems abound here too (ABI).

Alternatively there is https://cppyy.readthedocs.io/en/latest/, which I don't completely understand yet.

There are no comments on this comment yet.