CodeMusings Logo CodeMusings

Gosub Browser Progress, pt49

2026-07-07 · 6 hours ago

I have bought a refurbished Mac M1 so I can compile and test some of the gosub code on a real machine. The Rust examples works nicely enough (after some small fixes here and there), but i wanted to have some kind of native experience as well. Since I do not know anything about appkit or swift, I asked Claude for me to generate a simple browserlike app that will use the Gosub engine as a dynamic library (dynlib).

It worked pretty much straight out of the box. Gosub itself compiled nicely to arm64, and a very simple appkit that display multiple tabs, a url bar, back/forward buttons, a nice menu and such.

Since the Gosub engine is mostly about message passing, we only needed a very small ffi layer on top of the engine's API in order to connect it. So, now i have a native running switf/appkit application that runs the Gosub engine in the background. Neat!

This also means that it would be easy enough to connect other languages. C++ and python comes to mind. We already did some small experiments with when creating the new engine api proof of concept. So, expect some more work on this later!

Nobody amused yet.