Implementing Go API
bourbaki opened this issue · 3 comments
bourbaki commented
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/.
pommedeterresautee commented
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.
getumen commented
FYI, I created Go binding for treelite and treelite_runtime 2.3.0.
https://github.com/getumen/go-treelite