Announcement

Collapse
No announcement yet.

Cutelyst 0.2.0 Released: A Web Framework Powered By Qt 5

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cutelyst 0.2.0 Released: A Web Framework Powered By Qt 5

    Phoronix: Cutelyst 0.2.0 Released: A Web Framework Powered By Qt 5

    Nearly a half-year after the original release of Cutelyst, the second version is now available of this web framework powered by Qt5...

    http://www.phoronix.com/vr.php?view=MTczNTM

  • #2
    Can't even find screenshots, let alone a demo website. Is this really a web framework?

    Comment


    • #3
      After reading this article i have no idea what cutelyst does and what is it for.

      Comment


      • #4
        Re

        Originally posted by Kemosabe View Post
        After reading this article i have no idea what cutelyst does and what is it for.
        Well, then it's not for you...
        It's clear Cutelyst is to Qt/C++ what is Express to NodeJS...
        And I looked at the example and seems that the way of deploying your server is very similar to Express on NodeJS...

        Comment


        • #5
          Yay for hosting on Gitorious (not sarcasm).

          Comment


          • #6
            Originally posted by Alliancemd View Post
            Well, then it's not for you...
            It's clear Cutelyst is to Qt/C++ what is Express to NodeJS...
            And I looked at the example and seems that the way of deploying your server is very similar to Express on NodeJS...
            Well okay. And I'm familiar/code with Qt5 so that's a plus. But is there a compelling reason to use Cutelyst rather than say the (somewhat) more mature Wt webtoolkit?

            Comment


            • #7
              C++ should get a great and rock solid framework based on the MCV pattern and stop trying to develop websites like a desktop application, which is really different. Even though I think PHP is a horrible language, it has currently the best tools for web development (symfony2, Doctrine2 and twig)

              Comment


              • #8
                But apart from the web site, what of complex and/or compute intensive web applications that might (conceivably) be better written in C++? And if such are to be server-side (where else?), does one needs must host-one's-own server in order to get the library support, or will a commercial hoster e.g. Wordpress or Bluehost install these, or can you place the libraries in your personal account directory hierarchy? I ask because my personal homepage is hosted by Bluehost, and although Bluehost is a popular Wordpress host, I currently write all my site's pages in php and upload. But there's one or two web applications I've thought about writing, where C++ would make most sense at least at the lowest level.Or is that what Java was invented for?

                Comment


                • #9
                  Originally posted by pipe13 View Post
                  But apart from the web site, what of complex and/or compute intensive web applications that might (conceivably) be better written in C++? And if such are to be server-side (where else?), does one needs must host-one's-own server in order to get the library support, or will a commercial hoster e.g. Wordpress or Bluehost install these, or can you place the libraries in your personal account directory hierarchy? I ask because my personal homepage is hosted by Bluehost, and although Bluehost is a popular Wordpress host, I currently write all my site's pages in php and upload. But there's one or two web applications I've thought about writing, where C++ would make most sense at least at the lowest level.Or is that what Java was invented for?
                  Complex web applications use virtual or dedicated servers and can have software they want. They can also compile at deploy or whatnot. On PHP shared hosting that's not possible. Writing an web application in C++ won't probably add much or anything when compared to nicely written application in a dynamic language like Python or even PHP. Specific performance gains would be usable only to Qt/C++ experts that know the platform, and C++ developers are rather more expensive than Python or PHP as the required knowledge level is higher. This is not the first C or C++ web framework, and none of them actually gain any momentum. This one may be used by Qt developers that do not know any existing web development platforms.

                  Comment


                  • #10
                    Ever heard about Wt?

                    I will hardly move away from Wt.
                    It's much more mature, better documented. And it works!

                    Comment


                    • #11
                      Originally posted by gufide View Post
                      C++ should get a great and rock solid framework based on the MCV pattern and stop trying to develop websites like a desktop application, which is really different. Even though I think PHP is a horrible language, it has currently the best tools for web development (symfony2, Doctrine2 and twig)
                      Hi, Cutelyst ain't about writing websites like desktop applications, QtCore and QtNetwork are great modules which don't require any GUI code, Qt is mainly used due to it's very convenient classes, and your HTML can be written with a templating system.

                      I've written a small FAQ https://gitorious.org/cutelyst/pages/Home

                      Comment


                      • #12
                        FAQ

                        Hi all,

                        since some of you are confused, I wrote this small FAQ to help out sorting out WTF is this project about :P
                        https://gitorious.org/cutelyst/pages/Home

                        Best

                        Comment


                        • #13
                          Thanks dantii. I had seen your FAQ, and also "yum info'd wt". Wt is much more mature and has way more documentation and examples (yeah, I know). OTOH, Qt is what I'm increasingly basing the rest of my (desktop) apps on. While I cringe at the prospect of writing anything non-trivial in php/javascript, there's also the issue of hosting whatever when its done. But I'll probably look into Cutelyst -- there's some advantage to starting small. Thanks for your effort!

                          Comment


                          • #14
                            Originally posted by dantti View Post
                            Hi, Cutelyst ain't about writing websites like desktop applications
                            I think what gufide means is that this is a Component based framework, which implies an approach to developing web applications similar to desktop applications (UI object trees). A common problem with Component based frameworks is that styling and theming is very hard to keep separated from code (see for instance the addStylingClass calls in the examples). Another is that the definition and structure of the UI elements are defined in code. In Desktop UI frameworks this is often externalized (e.g. think QML for Qt) after years of maturation. A third issue is that in order to process event callbacks on UI objects, the whole object tree needs to be reconstructed on every request, which leads to relatively much overhead.

                            Comment


                            • #15
                              Originally posted by accumulator View Post
                              I think what gufide means is that this is a Component based framework, which implies an approach to developing web applications similar to desktop applications (UI object trees). A common problem with Component based frameworks is that styling and theming is very hard to keep separated from code (see for instance the addStylingClass calls in the examples). Another is that the definition and structure of the UI elements are defined in code. In Desktop UI frameworks this is often externalized (e.g. think QML for Qt) after years of maturation. A third issue is that in order to process event callbacks on UI objects, the whole object tree needs to be reconstructed on every request, which leads to relatively much overhead.
                              Sure that's what I'm telling Cutelyst is not. One of the reasons I don't like wt and other frameworks is that I don't like the idea of generating HTML from code, I'd rather use a template system. However Cutelyst doesn't even enforce a templating system, you can think of Cutelyst as a nice API for dealing with HTTP protocol, with helper plugins to deal with session cookies (that can be stored anywhere), authentication, authorization and so on, so if you want to use wt to render HTML and Cutelyst to have the processing requests logic that's something possible.

                              So far I use Grantlee (Django) templating for my websites, the logic to connect to DB and what to pass for the template is done in the C++ code using the nice Qt classes (QtDatabase, QtCore, QtNetwork...).

                              Best.

                              Comment

                              Working...
                              X