Looking at the excellent support for GTK in GtkAda over the past many years, which I have enjoyed using, I was looking for (aka googling) references to any initial thoughts/work on having GtkAda to also support GTK4.
I know, GTK4 has only been "out" for little over a year, but it would be interesting to know if anyone considering doing this. I would be glad to participate, although with limited know-how of the inner workings of GtkAda, but at least testing perhaps.
Well, they might, but it is still based on C, which is easier to interface to from Ada, than say C++ (which I have found cumbersome).
On 2022-02-13 16:32, Andreas Almroth wrote:
Looking at the excellent support for GTK in GtkAda over the past many years, which I have enjoyed using, I was looking for (aka googling) references to any initial thoughts/work on having GtkAda to also support GTK4.Well, knowing GTK's disastrous history it cannot be "also", it must be either 3 or 4. GTK 4 breaks basically everything one could ever think of.
To me new features in GTK 4 do not look worth changing the API again,
not even useful, just fancy stuff. It seems that GTK team keep on
breaking the API rather out of fun than necessity. Instead of hardening
the code. GTK 3 is still buggy as hell.
Of course, at some point one will have to migrate, but how about sitting
GTK 4 over and going straight to GTK 5? Unless they lose remaining users...
perhaps.I know, GTK4 has only been "out" for little over a year, but it would be interesting to know if anyone considering doing this. I would be glad to participate, although with limited know-how of the inner workings of GtkAda, but at least testing
GtkAda is maintained by AdaCore, so it is them to ask.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
On Sunday, 13 February 2022 at 17:46:09 UTC+1, Dmitry A. Kazakov wrote:
On 2022-02-13 16:32, Andreas Almroth wrote:
Looking at the excellent support for GTK in GtkAda over the past many years, which I have enjoyed using, I was looking for (aka googling) references to any initial thoughts/work on having GtkAda to also support GTK4.Well, knowing GTK's disastrous history it cannot be "also", it must be
either 3 or 4. GTK 4 breaks basically everything one could ever think of.
Well, they might, but it is still based on C, which is easier to interface to from Ada, than say C++ (which I have found cumbersome). Most other GUI frameworks are based on C++, for instance QT. QTAda is as far as I know not maintained (I haven't seenmuch in a very long time).
GtkAda bindings are generated by a tool designed by AdaCore. This tool
might require massive changes when migrating to GTK 4.
On 13/02/2022 20:26, Andreas Almroth wrote:seen much in a very long time).
On Sunday, 13 February 2022 at 17:46:09 UTC+1, Dmitry A. Kazakov wrote:It's almost like wxAda would've been better...
On 2022-02-13 16:32, Andreas Almroth wrote:
Looking at the excellent support for GTK in GtkAda over the past many years, which I have enjoyed using, I was looking for (aka googling) references to any initial thoughts/work on having GtkAda to also support GTK4.Well, knowing GTK's disastrous history it cannot be "also", it must be
either 3 or 4. GTK 4 breaks basically everything one could ever think of. >>
Well, they might, but it is still based on C, which is easier to interface to from Ada, than say C++ (which I have found cumbersome). Most other GUI frameworks are based on C++, for instance QT. QTAda is as far as I know not maintained (I haven't
Can confirm, binding C++ is too easy to burn out on, having done so on wxAda.
GtkAda bindings are generated by a tool designed by AdaCore. This tool might require massive changes when migrating to GTK 4.I wrote that python script years ago, when the XML files that describe the gtk+ API were actually pretty bad type-wise.
The script is full of special cases, and very ugly. I don't think anyone should use it as a basis for binding to gtk 4, it
would likely be much better to restart from scratch. I believe the XML files have improved significantly since then, and
are used by more languages bindings, too, so that could likely be simplified.
Emmanuel
I wrote that python script years ago, when the XML files that
describe the gtk+ API were actually pretty bad type-wise. The script
is full of special cases, and very ugly. I don't think anyone should
use it as a basis for binding to gtk 4, it would likely be much
better to restart from scratch. I believe the XML files have improved significantly since then, and are used by more languages bindings,
too, so that could likely be simplified.
Emmanuel
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:20:00 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,953 |