86 days ago · Tech · hide · Fediverse post

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.

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town