6 hours ago · Tech · hide · 0 comments

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.

No comments yet. Log in to reply on the Fediverse. Comments will appear here.