Consider creating a channeled windowing package

18 views
Skip to first unread message

jrago...@gmail.com

unread,
Dec 6, 2014, 3:48:40 AM12/6/14
to go...@googlegroups.com
I read this article before I even started doing graphics stuff in Go, but I feel like it's been staring us in the face all this time. There an article from Rob Pike about a window system using channels, implemented in NewSqueak rather than Go, but still[1]. I figure most people are probably familiar with it.

I don't have much experience with the whole querying OpenGL/interacting with low-level windowing APIs thing, but it's possible a first draft could be over GLFW. Of course, the needs of windowing systems, especially when it comes to interacting with OpenGL and issues like the OS X event pump needing to be on a main thread, have gotten more complex since 1989, but it may be possible to design around the limitations as much as possible.

I'm not sure it'd be extremely useful (for component-based game programming, for instance, I tried to replace the traditional event management system with channels and it failed pretty spectacularly, so it would be kind of silly to use a channeled manager just to replace the channels with events again), but it may be "fun". :)
Reply all
Reply to author
Forward
0 new messages