Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts

    PHP-GTK 2 Opinions

    Is this worth diving into or should I use something like c instead? Does it have a thirst for memory, slow on responses or any other downsides to it? I'm needing to build a gui for a client and trying to find the best route to do it

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,084
    Thanks
    11
    Thanked 100 Times in 98 Posts
    depends

    It will not be as fast as a compiled application (in whatever language) , but in my experience it is not really an issue, startup is longer but after that its not really an issue (IME)

    PHP-GTK2 has less memory issues since it is built in PHP5 without all those object copies floating around, and I have built daemon app's with a GTK front end that do not suffer from memory leaks etc that were common with PHP-GTK1

    For me its all about PHP itself, given any task I know I will be able to code it faster and more efficiently in PHP (because thats the language I am most comfortable with) and unless there are compelling issues to use something else (heavy text processing/file parsing etc) then I go with my preferred tools

    I can code GUI stuff in PHP I would not dream of trying in C or Python etc and whilst I would not even think about say a fully-blown spreadsheet or word processor in any interpreted language, most anything else then yes!
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Ahh knew I could rely on you for a reply It's good to know there's less memory leaks as before, that's one of the main things I was 'worrying' about as the client's machine isn't that powerful.

  • #4
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,084
    Thanks
    11
    Thanked 100 Times in 98 Posts
    I think the most compelling reason to avoid PHP-GTK2 is the lack of documentation ... but the GTK+ documentation itself + some of the python GTK docs often have answers.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #5
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Yeah I've noticed it's lack of everything at the moment lol. I've installed it today and just starting to have a play with it right now. No doubt there'll be a few questions from me later on


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •