So I decided to change tact a bit with GoNIX and instead of trying to build apure Go browser from scratch (which I kinda of half succeeded, in at least it was able to render most static ssr sites), Iβve instead decided to write a new browsered using the Chromium Embedded Framework, otherwise known as CEF. So now I have a fully working browser in GoNIX π β However since my goal is to keep GoNIX pretty lcean and mostly written in Go, I delegated the cef part(s) to an OCI container image and run that with GoNIXβs box (command-line container runtime). It works great π
@prologic@twtxt.net Ah, the joy of making your own browser β welcome to the club. π (I chose WebKitGTK back then and that was not super compatible with websites β¦ CEF would have been better, but also harder to use.)
@movq@www.uninformativ.de CEF turns out to be pretty easy. I had to write a bit of C and Go to bridge, but once that got going I was able to write it into my pure Go go-wayland wlui library for final rendering. The delegating the entire CEF part was a good idea though because it keeps all the complexity in a container Image, leaving me with just the Go + C stubs/interface and SHM/IPC parts.
@prologic@twtxt.net (I havenβt checked out CEF recently. Back then (over 10 years ago), just using a GTK widget was certainly much easier than CEF. π )