jordwalke / rehp

ReHp
Other
224 stars 15 forks source link

Using native OCaml C stubs with compiled languages? #32

Open Lupus opened 4 years ago

Lupus commented 4 years ago

I'm still dreaming about Go backend, and got an idea - since Golang interfaces nicely with C, may be there is little benefit in reimplementing C stubs in Go, but instead bind them and call directly? Two garbage-collected runtimes in one process, what could go wrong? :)

jordwalke commented 4 years ago

Yeah, two garbage collectors tend to be very difficult to integrate with each other. However garbage collectors and C also do not interop well together. Nothing interops well together :D