My Golang UI package: lessons learned about threading and plans for the future
1–10 of 16 posts
Re: My Golang UI package: lessons learned about threading and plans for the future
#2Re: My Golang UI package: lessons learned about threading and plans for the future
#3Note: since writing that article I have now started, and am now mostly finished with, this rewrite, having only one last ink to work on... dialog boxes. This was always a big disaster ecause every OS has a wildly different model, and now I'm sitting on a Stack Overflow question related to Cocoa thinking if I should just force all dialogs to be application modal but then need a way to make them always on top on all pl…
Re: My Golang UI package: lessons learned about threading and plans for the future
#4Re: My Golang UI package: lessons learned about threading and plans for the future
#5Note: since writing that article I have now started, and am now mostly finished with, this rewrite, having only one last ink to work on... dialog boxes. This was always a big disaster ecause every OS has a wildly different model, and now I'm sitting on a Stack Overflow question related to Cocoa thinking if I should just force all dialogs to be application modal but then need a way to make them always on top on all pl…
[dialog setLevel:NSStatusWindowLevel];
It's probably not a viable solution long-term because users will expect more Mac OS X-like behaviour and non-modal dialogs, but it would help you do what you want I think.
Re: My Golang UI package: lessons learned about threading and plans for the future
#6Note: since writing that article I have now started, and am now mostly finished with, this rewrite, having only one last ink to work on... dialog boxes. This was always a big disaster ecause every OS has a wildly different model, and now I'm sitting on a Stack Overflow question related to Cocoa thinking if I should just force all dialogs to be application modal but then need a way to make them always on top on all pl…
I am curious to know if you spent any time studying the eXene ( http://alleystoughton.us/eXene/future.pdf ) approach? I ask because it is the an ML CSP informed UI toolkit. If so how would you contrast that with your current (new api) approach?
Re: My Golang UI package: lessons learned about threading and plans for the future
#7Disclaimer: I don't think I have a clear idea of what you're trying to do here in the cross platform sense, except that I've also used channels to build Ui components.
Re: My Golang UI package: lessons learned about threading and plans for the future
#8ex11 is available on Github (https://github.com/baryluk/ex11) and there is a presentation (http://www.erlang.org/workshop/2004/ex11.pdf)
Re: My Golang UI package: lessons learned about threading and plans for the future
#9It almost seems like what you're looking for is a "React for Go". Channels may be used for the underlying machinery, but the core abstraction is the Observable (explicit model of values that change in time). For example, your label's text value would be an observable and not an "object property" that you set/get. Disclaimer: I don't think I have a clear idea of what you're trying to do here in the cross platform sens…
I would be very interested to see efforts to implement React.js ideas on the desktop.
Re: My Golang UI package: lessons learned about threading and plans for the future
#10Some time ago, Joe Armstrong wrote a thread-based binding to the X11 protocol called ex11. Every widget would run in its own thread and listen for messages. I keep on thinking about implementing something like that for the web. ex11 is available on Github ( https://github.com/baryluk/ex11 ) and there is a presentation ( http://www.erlang.org/workshop/2004/ex11.pdf )
Object oriented, multi-threaded PostScript FTW!