Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Clutter Toolkit 1.0.0 Is Released

  1. #11
    Join Date
    Aug 2008
    Posts
    99

    Default

    Regarding Clutter being written in C, it's actually possible to do object-oriented design in C. Gtk+ is OO in C. It's a tiny bit more tedious than in C++, but it works. I'm working on a project now that would be much easier in C++ (and a language with functions as objects would be even easier than that), but it needs to run on an embedded system with limited CPU and memory bandwidth as quickly as possible, so C it is.

    IIRC, another reason C++ was avoided in the earlier Linux days was that there wasn't an LGPL-compatible C++ standard library.

  2. #12
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    510

    Default

    Quote Originally Posted by unix_epoch View Post
    Regarding Clutter being written in C, it's actually possible to do object-oriented design in C. Gtk+ is OO in C. It's a tiny bit more tedious than in C++, but it works. I'm working on a project now that would be much easier in C++ (and a language with functions as objects would be even easier than that), but it needs to run on an embedded system with limited CPU and memory bandwidth as quickly as possible, so C it is.
    That system you're using for OO in C is the GObject system, right? You'll be pleased to know that Vala is an OO language that uses the GObject system to generate object-oriented C code. In Vala it is very easy to create a subclass of a class. If you compile it into C, you'll see the GObject code, which is very tedious to write manually.

Posting Permissions

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