Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-28 Thread atighe
I just do not like the slow compile speeds and the inability to cross compile 
easily. It just sucks to have a language with such power and to have a 
libraries kill it. Thanks for the comment though!

-- 
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.


Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread Randall O'Reilly
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  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  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  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  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.


Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread Wojciech S. Czarnecki
On Sun, 27 May 2018 14:57:34 -0700 (PDT)
ati...@mail.ccsf.edu wrote:

> I just do not want it to have cgo and it should be perfect.

You may wait for the OS written entirely in Go then.

With such one the "native" half of your ponywish ["native(no dependencies)"]
will be real. The latter might not, as such an OS will likely expose
its API through some system package you will need to depend on.

PS. The "qml ui" way is IMO closest to your expectations.
Do a local connection to the viewer and make your ui in qml.
QML viewer AFAIR allows for limited javascript what in turn allows
for communication between your ui markup and your go code.

Hope this helps,

-- 
Wojciech S. Czarnecki
 << ^oo^ >> OHIR-RIPE

-- 
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.


Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread Tyler Compton
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  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  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  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.


Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread atighe
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  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  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.


Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread Tyler Compton
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  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  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+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.


Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread atighe
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  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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread Sebastien Binet
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  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+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.