Re: The Future of the GtkDcoding Blog
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
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
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
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
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
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
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
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
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
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
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
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
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
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.