News for hackers. Stuff that matters.
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by ygnasygnoimqwb on Friday May 24, 2024 @04:24PM (#40470190)
> runtime.LockOSThread()

> https://github.com/roblillack/spot/blob/main/ui/init_fltk.go...

Does this imply GOMAXPROCS needs to be set to at least 2?

Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by da_rob on Friday May 24, 2024 @04:51PM (#40470393)
No, it just means that the main goroutine should not be moved onto another OS thread to ensure that it is always the same OS thread which will run UI updates.

This is necessary for most UI libraries and in Spot's case implemented for both the FLTK and the Cocoa backend.