The Kronk SDK

In the previous article we took yzma apart and found a very disciplined bridge: purego finds the functions inside libllama.so, libffi makes the calls, and no C compiler is involved anywhere. What you get out the other end is llama.cpp’s API almost exactly as C sees it — which is wonderful for understanding what’s going on, and rather raw for building an application on.

Today we climb one level up, to Kronk’s SDK: a Go layer that takes that C-shaped API and turns it into something you’d actually want to hand to a team. The public surface is genuinely tiny — Init, New, and a couple of dozen methods — and behind it sits a lot of machinery.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论