Object oriented language that is compiled to C and can seamlessly integrate with C

Object oriented language that is transpiled to C and can seamlessly integrate with C

Hey, while I love working with C sometimes i miss having some niceties like containers and async, as a joke I programmed an object oriented library in c, so I can create lambdas, interfaces, functions, etc in c and then I was getting bogged down with the boilerplate, so I decided to make a language out of it. It kinda looks like dart but has an extern keyword that allows me to implement some function, method or even an entire class (data struct + methods) in C. I already made every pass until the ir and started working on the C backend. This way I can structure my program, async stuff, etc with an high level language but perform the business logic in C + and call code from either language in either language. For the memory model I am thinking on using refcounting with either an microtask based cycle detection that checks the object pool + on allocation failure or placing this responsibility on the programmer, using weak refs. While I am making it, I can't stop thinking that it probably is fast as fuck (if I get the memory model right), and it kinda left me wondering if someone already tried something like this. Anyways, I wanted to get some feedback from people more experienced, I always wanted to make an programming language but this is my first one. Also if anyone has an idea of name, I would be glad to hear! I don't have an name for it yet and I'm just naming the files .fast