Re: The Future of the GtkDcoding Blog

2020-01-14 Thread Ferhat Kurtulmuş via Digitalmars-d-announce

On Tuesday, 14 January 2020 at 10:09:39 UTC, Ron Tarrant wrote:
On Monday, 13 January 2020 at 13:17:53 UTC, Ferhat Kurtulmuş 
wrote:


I've just tried broadwayd with a very simple window (only a 
few widgets in it). Actually it is very straghtforward.


After further pondering on the implications of this, I'm 
getting rather excited about where it could go. Have you tried 
this with a D-app on a remote site? Is that even possible?


No, I did it on my local computer. I also wonder if it can do it 
on remote. But I read something that it could do it (don't 
remember where). But I guess one has to deal with some 
boilerplate code like cookies, local storage etc.


Re: The Future of the GtkDcoding Blog

2020-01-14 Thread Ron Tarrant via Digitalmars-d-announce
On Monday, 13 January 2020 at 13:17:53 UTC, Ferhat Kurtulmuş 
wrote:


I've just tried broadwayd with a very simple window (only a few 
widgets in it). Actually it is very straghtforward.


After further pondering on the implications of this, I'm getting 
rather excited about where it could go. Have you tried this with 
a D-app on a remote site? Is that even possible?


Re: The Future of the GtkDcoding Blog

2020-01-13 Thread Ron Tarrant via Digitalmars-d-announce
On Monday, 13 January 2020 at 13:17:53 UTC, Ferhat Kurtulmuş 
wrote:


I've just tried broadwayd with a very simple window (only a few 
widgets in it). Actually it is very straghtforward.


Well, that's pretty cool, Ferhat.


Re: The Future of the GtkDcoding Blog

2020-01-13 Thread Ferhat Kurtulmuş via Digitalmars-d-announce

On Friday, 22 November 2019 at 12:14:58 UTC, Ron Tarrant wrote:
On Friday, 22 November 2019 at 11:05:24 UTC, Antonio Corbi 
wrote:


My goal is to write X-plat apps in the simplest way possible, 
using one language  (D) and one toolkit (GTK). The world is 
complicated enough these days in very many ways and this is how 
I fight back.




I've just tried broadwayd with a very simple window (only a few 
widgets in it). Actually it is very straghtforward.


- compile your gtkd program as normally you do.
- run broadwayd in your terminal (broadwayd comes with gtk 
installation) and keep it open like "broadwayd :2".
- ":2" represents display number, I don't know the things under 
the hood though.

- run your gtkd program with some extra environment variables:
  GDK_BACKEND=broadway BROADWAY_DISPLAY=:2 ./mygtkdprogram
- open your browser window http://127.0.0.1:9090

I have tested it on Ubuntu 16.04. It is amazing, there is a D 
program running on my browser and no webassembly involved :D







Re: The Future of the GtkDcoding Blog

2019-11-22 Thread Ron Tarrant via Digitalmars-d-announce

On Friday, 22 November 2019 at 11:05:24 UTC, Antonio Corbi wrote:

I suppose you know about Gtk's Broadway backend, it seems to do 
its job so a Gtk desktop-app can be a web-app in a very simple 
way:


Yup, I know about it, but I strive for simplicity in the demos I 
post and talk about. It may seem like a narrow focus, but one of 
the reasons I went this way was because I'm terrible at juggling 
multiple languages/paradigms. It's the reason I decided against 
using Electron and went for D instead. It's the reason I resist 
using dub (at least until it's either fixed or replaced). And 
it's the reason I stick to OOP as much as possible, even though I 
have yet to learn enough about D's take on OOP for my code to be 
considered a true application of the paradigm.


My goal is to write X-plat apps in the simplest way possible, 
using one language  (D) and one toolkit (GTK). The world is 
complicated enough these days in very many ways and this is how I 
fight back.


Also, Electron is—to my way of thinking—an indicator that desktop 
apps are coming back, or at least, holding strong. Why else would 
they have come up with a way to harness web tools to build them? 
Electron's very popularity seems like an obvious indicator to me.


But I do appreciate you bringing this up, Antonio, even if I only 
used it to clarify my stance on all this. :)


Re: The Future of the GtkDcoding Blog

2019-11-22 Thread Ron Tarrant via Digitalmars-d-announce

On Friday, 22 November 2019 at 01:33:22 UTC, mipri wrote:

On Thursday, 21 November 2019 at 16:14:48 UTC, angel wrote:



Github sponsorship is very good right now though, since Github
matches the donations, but what I'd suggest is a "Desktop
Applications in D" booklet similar to:


I do have something like that in mind. It's still in the early 
stages, though. Finding the time is the main stumbling block, but 
I've got a plan to get around that.


Re: The Future of the GtkDcoding Blog

2019-11-22 Thread Antonio Corbi via Digitalmars-d-announce

On Friday, 22 November 2019 at 10:42:33 UTC, Ron Tarrant wrote:

On Thursday, 21 November 2019 at 18:56:25 UTC, SashaGreat wrote:



Second the timing, at least today "everything is WEB APP", and 
I'm not saying desktop is dead applications is dead, but most 
of my current work is converting to WEB.


I've also been keeping an eye on this trend, too, and even 
though development is currently centred around web apps, 
scuttlebutt has it that the desktop is making a comeback. Even 
if it doesn't, it certainly won't disappear during my lifetime.


Hi Ron:

I suppose you know about Gtk's Broadway backend, it seems to do 
its job so a Gtk desktop-app can be a web-app in a very simple 
way:


https://developer.gnome.org/gtk3/stable/gtk-broadway.html

Antonio


Re: The Future of the GtkDcoding Blog

2019-11-22 Thread Ron Tarrant via Digitalmars-d-announce

On Thursday, 21 November 2019 at 18:56:25 UTC, SashaGreat wrote:


I think you have 2 problems:

First and unfortunately this community is very very small, 
it'll be hard to make money over here, I think with Rust you 
could get more attraction.


Yup, it's a small community. I've been keeping an eye on the 
numbers and, in fact, I've noticed a bit of an increase in 
'population' (if I can use that word) since I started this blog 
almost a year ago. D showed up on a Top 20 list (can't seem to 
find it ATM) earlier this month and this gives me hope that the D 
community is growing.


Second the timing, at least today "everything is WEB APP", and 
I'm not saying desktop is dead applications is dead, but most 
of my current work is converting to WEB.


I've also been keeping an eye on this trend, too, and even though 
development is currently centred around web apps, scuttlebutt has 
it that the desktop is making a comeback. Even if it doesn't, it 
certainly won't disappear during my lifetime.


So, yes, your points are well taken, but I've always believed in 
bucking trends and if I can help drive more interest toward D, 
then I'll feel like I've done something worthwhile.


Re: The Future of the GtkDcoding Blog

2019-11-22 Thread Ron Tarrant via Digitalmars-d-announce

On Friday, 22 November 2019 at 00:17:33 UTC, Doc Andrew wrote:

Ron, for what it's worth, I was doing some work using GtkAda 
recently, and your blog was one of the better references for 
just understanding the Gtk libs. I don't use Gtk all that 
often, but I appreciated the reference!


Well, it's worth a lot to me. I'm glad I could help.


Re: The Future of the GtkDcoding Blog

2019-11-22 Thread Ron Tarrant via Digitalmars-d-announce

On Thursday, 21 November 2019 at 16:14:48 UTC, angel wrote:

I think you should set up a "Donate" page on your site, so that 
an occasional visitor can say thank you.


Hi angel,

I actually do have a link at the bottom of every post. Just look 
for the big red heart. :)


Re: The Future of the GtkDcoding Blog

2019-11-21 Thread mipri via Digitalmars-d-announce

On Thursday, 21 November 2019 at 16:14:48 UTC, angel wrote:

On Tuesday, 19 November 2019 at 19:37:41 UTC, Ron Tarrant wrote:
In 2006, I started a blog on PHP-GTK 2.x that ran for 40 posts 
before the blog site I was using closed its door. By then, I 
was caught up in writing Corkboard, the first full-featured 
application I'd written for my own amusement in nearly 20 
years, and so I just let it slip away.


I think you should set up a "Donate" page on your site, so that 
an occasional visitor can say thank you.


Github sponsorship is very good right now though, since Github
matches the donations, but what I'd suggest is a "Desktop
Applications in D" booklet similar to:

https://www.amazon.com/Ray-Tracing-Weekend-Minibooks-Book-ebook/dp/B01B5AODD8/

A 47-page book about raytracing with examples in very simple C++.
And after more blog posts you can add another book, like the
sequels to this one. A longer book like this is:

https://www.amazon.com/Writing-Interpreter-Go-Thorsten-Ball/dp/3982016118/



Re: The Future of the GtkDcoding Blog

2019-11-21 Thread Doc Andrew via Digitalmars-d-announce

On Tuesday, 19 November 2019 at 19:37:41 UTC, Ron Tarrant wrote:




Ron, for what it's worth, I was doing some work using GtkAda 
recently, and your blog was one of the better references for just 
understanding the Gtk libs. I don't use Gtk all that often, but I 
appreciated the reference!


-Doc


Re: The Future of the GtkDcoding Blog

2019-11-21 Thread SashaGreat via Digitalmars-d-announce

On Tuesday, 19 November 2019 at 19:37:41 UTC, Ron Tarrant wrote:

...


I think you have 2 problems:

First and unfortunately this community is very very small, it'll 
be hard to make money over here, I think with Rust you could get 
more attraction.


Second the timing, at least today "everything is WEB APP", and 
I'm not saying desktop is dead applications is dead, but most of 
my current work is converting to WEB.


Sasha.


Re: The Future of the GtkDcoding Blog

2019-11-21 Thread angel via Digitalmars-d-announce

On Tuesday, 19 November 2019 at 19:37:41 UTC, Ron Tarrant wrote:
In 2006, I started a blog on PHP-GTK 2.x that ran for 40 posts 
before the blog site I was using closed its door. By then, I 
was caught up in writing Corkboard, the first full-featured 
application I'd written for my own amusement in nearly 20 
years, and so I just let it slip away.


I think you should set up a "Donate" page on your site, so that 
an occasional visitor can say thank you.




The Future of the GtkDcoding Blog

2019-11-19 Thread Ron Tarrant via Digitalmars-d-announce
In 2006, I started a blog on PHP-GTK 2.x that ran for 40 posts 
before the blog site I was using closed its door. By then, I was 
caught up in writing Corkboard, the first full-featured 
application I'd written for my own amusement in nearly 20 years, 
and so I just let it slip away.


Last year, when I decided to update my knowledge to GTK 3.x, the 
resources I found were few. Each had a handful of examples and 
most went overboard, cramming dozens of GTK features into 
single-app demos. Prying relevant code from such crowded demos 
isn't my cup of tea, so I decided to write my own.


So, using D as my newly-adopted favourite language, I wrote 
single-purpose GTK demos for every feature I thought I might find 
useful for creating cross-platform desktop applications. The idea 
was to make single-file demos that incorporated no more than 
absolutely necessary to demonstrate the feature of the day. While 
I was at it, I made notes as a memory aid so I could re-grasp the 
details as quickly as possible because I knew it might be months 
before I got around to using this resource, the idea being to 
preemptively cut down on wasted time when I did get back to 
serious coding.


And that's what ended up becoming the GtkD Coding Blog. I was 
sure I wasn't the only person who would benefit from this, so I 
bought a domain and set up a schedule to post twice per week.


Coming up on the end of 2019 and quickly approaching the 100th 
posting, I'm contemplating the future of this blog. Will I 
continue to post? And if so, will those posts still go up twice 
per week? Or maybe I'll move on and write the killer screenplay 
outlining utility I've been mulling over for the last few years. 
Or maybe I'll finally retire and go power-watch old episodes of 
Star Trek or something. So many choice!


But the small audience I have managed to attract has given me 
encouragement, suggestions, and more than a little moral support. 
I can't tell you how grateful I am for that. And even if I don't 
continue to post or only post from time to time, I'd like to keep 
it easy to find (i.e. continue to use the https://gtkdcoding.com 
domain name).


So if you like the blog and would like it to be available for 
future reference, please sign up as a sponsor. I've revamped the 
sponsor tiers so they aren't so scary. (I don't know what I would 
have done with a $500 sponsor anyway!) You'll be helping me cover 
costs as well as give me the feeling that it's all been 
worthwhile.


Thanks,
Ron Tarrant