currently looking into actual C++ integration for comune. anyone know if libclang is a viable candidate for implementing C++ interop in an LLVM-based compiler?

looking into it a bit, this feels like it should work? at least for basic interop. template support is another matter entirely, but i should be able to expose types and functions from C++ using a wrapper around libclang, and... generate C++ headers to expose my language's interface to C++? maybe? would have to look into how to deal with includes though

Follow

could i re-implement (a subset of) the preprocessor to scan source files for includes of comune files, and generate the appropriate headers? is that a reasonable thing to do? probably not but it doesn't SOUND particularly gruelling

actually what the hell am i thinking. i can just regex search for includes of comune files and replace them with their equivalent C++ headers directly, that's the point of an include directive lmao

@barrow AT *WORST* IT WOULDN'T SUPPORT THE THIRD FORM, WHICH IS A LIMITATION I'M WILLING TO LIVE WITH. THIS IS A VERY EASY, NON-INTRUSIVE WAY OF IMPLEMENTING AUTOMATIC BINDINGS BETWEEN C++ AND COMUNE THAT, IMPORTANTLY, DOESN'T INVOLVE *REIMPLEMENTING THE FUCKING C++ PREPROCESSOR FROM SCRATCH*

@estroBiologist BUT U HAVE TO REIMPLEMENT THE PREPROCESSOR EVERYBODY KNOWS THIS

@barrow WELL THEM I'M DEFINITELY NOT FUCKING DOING IT!!!!!!!!!!!!!

Sign in to participate in the conversation
SHRIKE CLUB

ONLY CREATE ACCOUNT IF YOU PERSONALLY KNOW AN ADMINISTRATOR, AND IDENTIFY YOURSELF IN YOUR APPLICATION. YOU DO NOT NEED A SHRIKE CLUB ACCOUNT TO FOLLOW SHRIKE CLUB USERS. A PERSONAL FEDERATED SOCIAL MEDIA INSTANCE FOR SMALL CARNIVOROUS BIRDS BY SMALL CARNIVOROUS BIRDS