wrt the compilation slowdown issue, the cgo code that I adapted from shiny in the “as native as you can reasonably get in Go" GoGi GUI (https://github.com/goki/gi) is certainly the slowest part of the build, but even so, it is a *tiny* fraction of the compilation time of Qt (which can take over an hour!). Just a few secs. Fast enough to not get distracted and start reading reddit or whatever.. :) Btw it does use the xgb package for X under linux.
ps. I fixed the closing-the-windows bug in linux and added a font browser and a file viewer / chooser / dialog, so things are moving along with GoGi / GoKi — hoping to get to the rasterx integration very soon... - Randy > On May 27, 2018, at 5:26 PM, Tyler Compton <xavi...@gmail.com> wrote: > > I did a bit more research and found https://github.com/BurntSushi/xgb which > interacts with X directly without the need for C bindings, so it is possible > to at least open a window without any cgo. However, I don't know of a way > that you can have cross-platform accelerated graphics without using OpenGL, > which will require cgo. Unfortunately, I'm not sure if what you want is > really feasible, and if it is you may not be very happy with the results. > > There are GUI libraries out there for Go that require cgo but support all > major platforms. What is it about cgo that you're hoping to avoid? > > On Sun, May 27, 2018 at 2:57 PM <ati...@mail.ccsf.edu> wrote: > I just do not want it to have cgo and it should be perfect. > > > On Sunday, May 27, 2018 at 2:55:06 PM UTC-7, Tyler Compton wrote: > I'm not sure if it's actually feasible to write a GUI library without > external libraries. A GUI that runs Linux will need to interact with an X > server or a Wayland compositer, and the library will have to interact with > their APIs somehow. > > On Sun, May 27, 2018, 14:19 <ati...@mail.ccsf.edu> wrote: > Yeah, the ones suggested all use cgo though. > > > On Sunday, May 27, 2018 at 2:08:17 PM UTC-7, Sebastien Binet wrote: > There was very recently a thread about this on Reddit: > > https://www.reddit.com/r/golang/comments/8m5icy/cross_platform_native_gui_library/ > > sent from my droid > > On Sun, May 27, 2018, 22:51 <ati...@mail.ccsf.edu> wrote: > Hello, > > I would like you guys to suggest some GUI libraries that do not have any > HTML/CSS or C bindings, are cross platform and require no dependencies. > > When I say native, I mean no dependencies. I do not mean native to the OS. > This would be great but I don't see any available that have no C bindings. I > understand that to create a native to the OS experience there must be calls > to the OS API which in most cases use the C language. > > Before anyone asks why I do not want C bindings, it is because they do not > have good cross compilation support or good compile speeds. > > Suggestions appreciated, Thanks so much! > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.