Re: [go-nuts] Flutter and golang

2018-04-09 Thread Linker
You can try to use gopherjs to bind a js/webui UI lib for go.

On Fri, Apr 6, 2018 at 12:35 PM, Tong Sun  wrote:

> Saw a recent discussion on Flutter and golang, which seems to me to be
> going the wrong way, because I didn't see the magic word "FIDL
> " being mentioned. So I'd like to
> share my finding about that,
>
> First of all, about the Flutter:
>
> On February 27, 2018, in Mobile World Congress 2018, Google announced the
> first beta
> 
> release of Flutter
> .
>
>
>
>- Flutter is Google's new mobile UI framework that helps developers
>craft high-quality native interfaces for both iOS and Android.
>- Flutter targets the sweet spot of mobile development: performance
>and platform integrations of native mobile, with high-velocity development
>and multi-platform reach of portable UI toolkits.
>
>
> There are loads of articles on Flutter
> 
> already, but let me just pick only two:
>
> What’s Revolutionary about Flutter
>
> https://hackernoon.com/whats-revolutionary-about-flutter-946915b09514
>
> Quote:
>
> traditional model layout could be simplified significantly:
>
>
>-
>
>Instead of having a large set of layout rules that could be applied to
>any widget, each widget would specify its own simple layout model.
>-
>
>Because each widget has a much smaller set of layout rules to
>consider, layout can be optimized heavily.
>-
>
>To simplify layout even further, we turned almost everything into a
>widget.
>
> Second,
>
> Why we chose Flutter and how it’s changed our company for the better
>
> https://medium.com/@matthew.smith_66715/why-we-chose-
> flutter-and-how-its-changed-our-company-for-the-better-271ddd25da60
>
> Quote:
>
> Our productivity on new feature development has roughly tripled. Here’s why
> :
>
>
>-
>
>Not only do we have the obvious gains from having only one code base
>between iOS and Android, we are able to share ~70% (at the moment of this
>writing it’s 67%) of our web client code with the mobile clients. But it
>doesn’t end there.
>-
>
>When we test a feature in any of the platforms, unless it’s a platform
>specific UI change, we are effectively testing across all three platforms
>at once. We did not expect this gain, but it’s real and it’s
>significant.
>-
>
>We also found that because we were able to merge what was a fragmented
>team into one team with a common skill set, we spend less time being
>blocked by each other and can more easily work together. And honestly, we
>are happier. While it’s fun to build a new feature, it becomes a chore to
>then have to recreate it two more times. Then have to write the platform
>specific unit tests. Then QA the same thing again.
>
>
> OK, enough about Flutter
> .
>
>
> We all know that recently Google lost its legal battle on using Java, so
> my personal view is that Android would be on the chopping board soon. One
> hint is that Google has silently changed its *Android* play store to
> *Google* Play Store  recently, which
> means a lot to me.
>
> Anyway, what I'm trying to say is that Flutter
> 
> is only a small part of Google's strategic planning to ditch Java, and also
> the two OSs for the mobile phone and pad, the Android & ChromeOS, because
> Flutter
> 
> is the center piece of Google's next generation OS, Fuchsia, which will be
> a cross-device OS for Phone, tablet, desktop, laptop, wearables, and more.
>
> Taken from https://9to5google.com/2018/01/23/what-is-google-fuchsia-os/
>
> Most of the Fuchsia's UI is written in Dart  (a
> language that is designed to feel familiar to JavaScript and Java
> developers), through the Flutter framework . Support
> for Go !. Systems
> developers will find comfort in the availability of Rust
> .
> Google is also targeting Apple’s developer base by introducing Swift
> support
> 
> .
>
> Once again, the Flutter framework  will support Go
> !
>
> It has native interoperability support for most of these languages,
> through the FIDL protocol , your
> Dart UI 

[go-nuts] Flutter and golang

2018-04-05 Thread Tong Sun
Saw a recent discussion on Flutter and golang, which seems to me to be 
going the wrong way, because I didn't see the magic word "FIDL 
" being mentioned. So I'd like to 
share my finding about that, 

First of all, about the Flutter:

On February 27, 2018, in Mobile World Congress 2018, Google announced the 
first beta 
 
release of Flutter 
.
 



   - Flutter is Google's new mobile UI framework that helps developers 
   craft high-quality native interfaces for both iOS and Android. 
   - Flutter targets the sweet spot of mobile development: performance and 
   platform integrations of native mobile, with high-velocity development and 
   multi-platform reach of portable UI toolkits.
   

There are loads of articles on Flutter 

 
already, but let me just pick only two:

What’s Revolutionary about Flutter

https://hackernoon.com/whats-revolutionary-about-flutter-946915b09514

Quote:

traditional model layout could be simplified significantly:


   - 
   
   Instead of having a large set of layout rules that could be applied to 
   any widget, each widget would specify its own simple layout model.
   - 
   
   Because each widget has a much smaller set of layout rules to consider, 
   layout can be optimized heavily.
   - 
   
   To simplify layout even further, we turned almost everything into a 
   widget.
   
Second, 

Why we chose Flutter and how it’s changed our company for the better

https://medium.com/@matthew.smith_66715/why-we-chose-flutter-and-how-its-changed-our-company-for-the-better-271ddd25da60

Quote:

Our productivity on new feature development has roughly tripled. Here’s why:


   - 
   
   Not only do we have the obvious gains from having only one code base 
   between iOS and Android, we are able to share ~70% (at the moment of this 
   writing it’s 67%) of our web client code with the mobile clients. But it 
   doesn’t end there. 
   - 
   
   When we test a feature in any of the platforms, unless it’s a platform 
   specific UI change, we are effectively testing across all three platforms 
   at once. We did not expect this gain, but it’s real and it’s significant. 
   
   - 
   
   We also found that because we were able to merge what was a fragmented 
   team into one team with a common skill set, we spend less time being 
   blocked by each other and can more easily work together. And honestly, we 
   are happier. While it’s fun to build a new feature, it becomes a chore to 
   then have to recreate it two more times. Then have to write the platform 
   specific unit tests. Then QA the same thing again.
   

OK, enough about Flutter 
.
 


We all know that recently Google lost its legal battle on using Java, so my 
personal view is that Android would be on the chopping board soon. One hint 
is that Google has silently changed its *Android* play store to *Google* 
Play Store  recently, which means a 
lot to me. 

Anyway, what I'm trying to say is that Flutter 

 
is only a small part of Google's strategic planning to ditch Java, and also 
the two OSs for the mobile phone and pad, the Android & ChromeOS, because 
Flutter 

 
is the center piece of Google's next generation OS, Fuchsia, which will be 
a cross-device OS for Phone, tablet, desktop, laptop, wearables, and more. 

Taken from https://9to5google.com/2018/01/23/what-is-google-fuchsia-os/ 

Most of the Fuchsia's UI is written in Dart  (a 
language that is designed to feel familiar to JavaScript and Java 
developers), through the Flutter framework . Support 
for Go !. Systems 
developers will find comfort in the availability of Rust 
.
 
Google is also targeting Apple’s developer base by introducing Swift support 
.

Once again, the Flutter framework  will support Go 
!  

It has native interoperability support for most of these languages, through 
the FIDL protocol , your Dart UI 
code can directly interface with your Go backend or any other combination. 



Again, the above are all of my finding, and my 2c view on them. 
All in all, I strongly believe that Flutter Will Take Off in 2018 

[go-nuts] Flutter and golang

2018-03-10 Thread alex . ewetumo
Am very much looking towards a straighter means to work with dart.The plugin 
system if possible would be a great start. I too would love any help that can 
be provided.  

-- 
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] Flutter and golang

2018-03-10 Thread Justin Israel
On Sun, Mar 11, 2018, 12:31 PM Nathan Fisher  wrote:

> Oh that’s awesome! I didn’t realise they were supporting desktop now. It
> sounded like it was abandoned in a push to focus on the mobile experience.
> On Sat, Mar 10, 2018 at 4:36 PM, Ged Wed  wrote:
>
>> I used QT for 6 months and Flutter is way ahead.
>> QT has a huge licensing issue. You can only use QT and not pay a yearly
>> fee of 3 k if you provide the ability for end users to recompile your app
>> against QT.
>> Also it's got a lot of rough edges once you get into the 80/20 situation
>> on real world apps.
>> It takes 20% of your time to get 80% of your app done, and 80% of your
>> time to get the last 20% of your app done.
>> Flutters plug-in system avoids you getting cornered in the 80/20
>> situation.
>>
>> I started to do an integration of botldb and some other golang code but
>> am half way through. From what I can see there are no roadblocks. There is
>> one issue with APK packing but I think it just need a script to fix it.
>> I have not published on GitHub yet because it's not done but will..gedw99
>> is my GitHub org
>>
>> There is a repo there called CI where I am also getting continuous build
>> going for flutter with golang for iOS and Android.
>> I intend to extend it for all Desktops too.
>>
>> https://github.com/gedw99/ci
>>
>
I didn't know flutter was also targeting desktops. I've got many years of
Qt experience on desktops, so teaching for a mobile Qt solution felt like a
natural first choice. But it is a real motivation to look at flutter if I
can use it in the desktop space as well.


>>
>>
>> On Sat, Mar 10, 2018, 10:16 PM Justin Israel 
>> wrote:
>>
>>>
>>>
>>> On Sun, Mar 11, 2018, 9:28 AM Ged Wed  wrote:
>>>
 I am starting to develop an app using flutter and golang.

 Flutter is the dumb GUI and everything else is written in golang.

 It is reasonably easy to compile your golang code using gomobile and
 then bind to flutter using the Method Channel API that flutter provides.

 Is anyone interested in this ?

>>>
>>> I was just recently considering getting some mobile dev practice in, and
>>> was thinking whether to use a flutter approach or something with Qt and
>>> gomobile. I would be very interested in reading a write up of your
>>> experience getting started with Flutter + gomobile
>>>
>>>
 Flutter now runs on all desktops and mobiles officially. The desktop
 version was announced 2 weeks ago and already Linux and macOS works, with
 Windows probably being a few weeks away from what I guesstimate.

 The cool thing about this is that you get a very well supported and
 high performance GUI engine for Forms and 2D. 3D is still not provided by
 has been stated by the team to be looked at later.

 Anyway I hope to spark some interest in this and I will be putting up
 some demo code on my git hub repo and hope others are interested enough to
 also give it a try and work through it.


 How to write a plug-in:

 https://flutter.io/platform-channels/

 Plugins already available :

 https://pub.dartlang.org/flutter/packages

 Printing.
 They have not yet officially committed to how cross platform out put to
 PDF and XPS ( for windows ) will be supported.
 Under the covers Flutter is using the same engine that Google Chrome
 browser uses; called Skia.

 Skia has an API for printing web pages and it uses pdfium under the
 hood.
 It seams logical that the Flutter team will also start using this
 method to provide built in PDF output and even print spooling but from what
 I can see it's not resolved yet.

 All other things like touch, keyboard, sound, gestures etc are all
 built into Flutter because it's built into Skia.

 Would be great to hear if there is a strong interest in this and to
 discuss .
>>>
>>>

 --
 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.
>>
> --
> - sent from my mobile
>

-- 
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] Flutter and golang

2018-03-10 Thread Nathan Fisher
Oh that’s awesome! I didn’t realise they were supporting desktop now. It
sounded like it was abandoned in a push to focus on the mobile experience.
On Sat, Mar 10, 2018 at 4:36 PM, Ged Wed  wrote:

> I used QT for 6 months and Flutter is way ahead.
> QT has a huge licensing issue. You can only use QT and not pay a yearly
> fee of 3 k if you provide the ability for end users to recompile your app
> against QT.
> Also it's got a lot of rough edges once you get into the 80/20 situation
> on real world apps.
> It takes 20% of your time to get 80% of your app done, and 80% of your
> time to get the last 20% of your app done.
> Flutters plug-in system avoids you getting cornered in the 80/20 situation.
>
> I started to do an integration of botldb and some other golang code but am
> half way through. From what I can see there are no roadblocks. There is one
> issue with APK packing but I think it just need a script to fix it.
> I have not published on GitHub yet because it's not done but will..gedw99
> is my GitHub org
>
> There is a repo there called CI where I am also getting continuous build
> going for flutter with golang for iOS and Android.
> I intend to extend it for all Desktops too.
>
> https://github.com/gedw99/ci
>
>
> On Sat, Mar 10, 2018, 10:16 PM Justin Israel 
> wrote:
>
>>
>>
>> On Sun, Mar 11, 2018, 9:28 AM Ged Wed  wrote:
>>
>>> I am starting to develop an app using flutter and golang.
>>>
>>> Flutter is the dumb GUI and everything else is written in golang.
>>>
>>> It is reasonably easy to compile your golang code using gomobile and
>>> then bind to flutter using the Method Channel API that flutter provides.
>>>
>>> Is anyone interested in this ?
>>>
>>
>> I was just recently considering getting some mobile dev practice in, and
>> was thinking whether to use a flutter approach or something with Qt and
>> gomobile. I would be very interested in reading a write up of your
>> experience getting started with Flutter + gomobile
>>
>>
>>> Flutter now runs on all desktops and mobiles officially. The desktop
>>> version was announced 2 weeks ago and already Linux and macOS works, with
>>> Windows probably being a few weeks away from what I guesstimate.
>>>
>>> The cool thing about this is that you get a very well supported and high
>>> performance GUI engine for Forms and 2D. 3D is still not provided by has
>>> been stated by the team to be looked at later.
>>>
>>> Anyway I hope to spark some interest in this and I will be putting up
>>> some demo code on my git hub repo and hope others are interested enough to
>>> also give it a try and work through it.
>>>
>>>
>>> How to write a plug-in:
>>>
>>> https://flutter.io/platform-channels/
>>>
>>> Plugins already available :
>>>
>>> https://pub.dartlang.org/flutter/packages
>>>
>>> Printing.
>>> They have not yet officially committed to how cross platform out put to
>>> PDF and XPS ( for windows ) will be supported.
>>> Under the covers Flutter is using the same engine that Google Chrome
>>> browser uses; called Skia.
>>>
>>> Skia has an API for printing web pages and it uses pdfium under the hood.
>>> It seams logical that the Flutter team will also start using this method
>>> to provide built in PDF output and even print spooling but from what I can
>>> see it's not resolved yet.
>>>
>>> All other things like touch, keyboard, sound, gestures etc are all built
>>> into Flutter because it's built into Skia.
>>>
>>> Would be great to hear if there is a strong interest in this and to
>>> discuss .
>>
>>
>>>
>>> --
>>> 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.
>
-- 
- sent from my mobile

-- 
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] Flutter and golang

2018-03-10 Thread Ged Wed
I used QT for 6 months and Flutter is way ahead.
QT has a huge licensing issue. You can only use QT and not pay a yearly fee
of 3 k if you provide the ability for end users to recompile your app
against QT.
Also it's got a lot of rough edges once you get into the 80/20 situation on
real world apps.
It takes 20% of your time to get 80% of your app done, and 80% of your time
to get the last 20% of your app done.
Flutters plug-in system avoids you getting cornered in the 80/20 situation.

I started to do an integration of botldb and some other golang code but am
half way through. From what I can see there are no roadblocks. There is one
issue with APK packing but I think it just need a script to fix it.
I have not published on GitHub yet because it's not done but will..gedw99
is my GitHub org

There is a repo there called CI where I am also getting continuous build
going for flutter with golang for iOS and Android.
I intend to extend it for all Desktops too.

https://github.com/gedw99/ci


On Sat, Mar 10, 2018, 10:16 PM Justin Israel  wrote:

>
>
> On Sun, Mar 11, 2018, 9:28 AM Ged Wed  wrote:
>
>> I am starting to develop an app using flutter and golang.
>>
>> Flutter is the dumb GUI and everything else is written in golang.
>>
>> It is reasonably easy to compile your golang code using gomobile and then
>> bind to flutter using the Method Channel API that flutter provides.
>>
>> Is anyone interested in this ?
>>
>
> I was just recently considering getting some mobile dev practice in, and
> was thinking whether to use a flutter approach or something with Qt and
> gomobile. I would be very interested in reading a write up of your
> experience getting started with Flutter + gomobile
>
>
>> Flutter now runs on all desktops and mobiles officially. The desktop
>> version was announced 2 weeks ago and already Linux and macOS works, with
>> Windows probably being a few weeks away from what I guesstimate.
>>
>> The cool thing about this is that you get a very well supported and high
>> performance GUI engine for Forms and 2D. 3D is still not provided by has
>> been stated by the team to be looked at later.
>>
>> Anyway I hope to spark some interest in this and I will be putting up
>> some demo code on my git hub repo and hope others are interested enough to
>> also give it a try and work through it.
>>
>>
>> How to write a plug-in:
>>
>> https://flutter.io/platform-channels/
>>
>> Plugins already available :
>>
>> https://pub.dartlang.org/flutter/packages
>>
>> Printing.
>> They have not yet officially committed to how cross platform out put to
>> PDF and XPS ( for windows ) will be supported.
>> Under the covers Flutter is using the same engine that Google Chrome
>> browser uses; called Skia.
>>
>> Skia has an API for printing web pages and it uses pdfium under the hood.
>> It seams logical that the Flutter team will also start using this method
>> to provide built in PDF output and even print spooling but from what I can
>> see it's not resolved yet.
>>
>> All other things like touch, keyboard, sound, gestures etc are all built
>> into Flutter because it's built into Skia.
>>
>> Would be great to hear if there is a strong interest in this and to
>> discuss .
>
>
>>
>> --
>> 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] Flutter and golang

2018-03-10 Thread Justin Israel
On Sun, Mar 11, 2018, 9:28 AM Ged Wed  wrote:

> I am starting to develop an app using flutter and golang.
>
> Flutter is the dumb GUI and everything else is written in golang.
>
> It is reasonably easy to compile your golang code using gomobile and then
> bind to flutter using the Method Channel API that flutter provides.
>
> Is anyone interested in this ?
>

I was just recently considering getting some mobile dev practice in, and
was thinking whether to use a flutter approach or something with Qt and
gomobile. I would be very interested in reading a write up of your
experience getting started with Flutter + gomobile


> Flutter now runs on all desktops and mobiles officially. The desktop
> version was announced 2 weeks ago and already Linux and macOS works, with
> Windows probably being a few weeks away from what I guesstimate.
>
> The cool thing about this is that you get a very well supported and high
> performance GUI engine for Forms and 2D. 3D is still not provided by has
> been stated by the team to be looked at later.
>
> Anyway I hope to spark some interest in this and I will be putting up some
> demo code on my git hub repo and hope others are interested enough to also
> give it a try and work through it.
>
>
> How to write a plug-in:
>
> https://flutter.io/platform-channels/
>
> Plugins already available :
>
> https://pub.dartlang.org/flutter/packages
>
> Printing.
> They have not yet officially committed to how cross platform out put to
> PDF and XPS ( for windows ) will be supported.
> Under the covers Flutter is using the same engine that Google Chrome
> browser uses; called Skia.
>
> Skia has an API for printing web pages and it uses pdfium under the hood.
> It seams logical that the Flutter team will also start using this method
> to provide built in PDF output and even print spooling but from what I can
> see it's not resolved yet.
>
> All other things like touch, keyboard, sound, gestures etc are all built
> into Flutter because it's built into Skia.
>
> Would be great to hear if there is a strong interest in this and to
> discuss .
>
> --
> 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.


[go-nuts] Flutter and golang

2018-03-10 Thread Ged Wed
https://github.com/flutter/flutter/issues/14231

It looks like it's doable and there is a bug to fix so that flutter can bind 
directly to flutter without having to go via a Java or Objective-c layer.

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


[go-nuts] Flutter and golang

2018-03-10 Thread Ged Wed
http://www.1500wordmtu.com/2018/bradfitz-if-we-could-make-flutter-work-with-gomobile-id

Just adding here for reference.

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


[go-nuts] Flutter and golang

2018-03-10 Thread Ged Wed
I am starting to develop an app using flutter and golang.

Flutter is the dumb GUI and everything else is written in golang.

It is reasonably easy to compile your golang code using gomobile and then bind 
to flutter using the Method Channel API that flutter provides.

Is anyone interested in this ?

Flutter now runs on all desktops and mobiles officially. The desktop version 
was announced 2 weeks ago and already Linux and macOS works, with Windows 
probably being a few weeks away from what I guesstimate.

The cool thing about this is that you get a very well supported and high 
performance GUI engine for Forms and 2D. 3D is still not provided by has been 
stated by the team to be looked at later.

Anyway I hope to spark some interest in this and I will be putting up some demo 
code on my git hub repo and hope others are interested enough to also give it a 
try and work through it.


How to write a plug-in:

https://flutter.io/platform-channels/

Plugins already available :

https://pub.dartlang.org/flutter/packages

Printing.
They have not yet officially committed to how cross platform out put to PDF and 
XPS ( for windows ) will be supported.
Under the covers Flutter is using the same engine that Google Chrome browser 
uses; called Skia.

Skia has an API for printing web pages and it uses pdfium under the hood.
It seams logical that the Flutter team will also start using this method to 
provide built in PDF output and even print spooling but from what I can see 
it's not resolved yet.

All other things like touch, keyboard, sound, gestures etc are all built into 
Flutter because it's built into Skia.

Would be great to hear if there is a strong interest in this and to discuss .

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