dmlc/tl2cgen

Implementing Go API

bourbaki opened this issue · 3 comments

What's your opinion on creating Go API? I think it would be cool to create golang toolchain so we could then use models as plugins https://golang.org/pkg/plugin/.

hcho3 commented

@Ma3aXaKa I have no expertise in Go. Does Go have a good binding with C?

There is cgo (part of the default tooling) to call C code.
This is known to work well (used in many packages) but it is also known to not be super performant, meaning you are not supposed to call it very often.

FYI, I created Go binding for treelite and treelite_runtime 2.3.0.
https://github.com/getumen/go-treelite