dmlc / tl2cgen

TL2cgen (TreeLite 2 C GENerator) is a model compiler for decision tree models
https://tl2cgen.readthedocs.io/en/latest/
Apache License 2.0
17 stars 6 forks source link

Implementing Go API #16

Open bourbaki opened 5 years ago

bourbaki commented 5 years ago

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 5 years ago

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

pommedeterresautee commented 5 years ago

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 2 years ago

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