Today I'm looking at yzma and how it calls llama.cpp without cgo. It binds at ru...

@jespino@social.tinygo.org

Today I'm looking at yzma and how it calls llama.cpp without cgo.

It binds at runtime, so two libraries split the work:

→ purego: dlopen/dlsym, finds the function's address
→ libffi: builds the call plan from a signature you describe in Go

The blog post will be available tomorrow.