What works for web dev in C++

后端 未结 9 1320
一整个雨季
一整个雨季 2020-12-31 17:24

I want to create a web application that runs with very little RAM and I think C++ can help me achieve that.

Now, many people say C++ is unsuited for web development

相关标签:
9条回答
  • 2020-12-31 18:04

    You can try Cutelyst a C++11 built with Qt, with one of the best positions on TechEmpower Benchmarks.

    Even though it requires Qt 5.6+ a full CMS (CMlyst) uses around 6MB of RAM while serving around 3000 requests per seconds on a single core.

    And for your string manipulation issue QString is just an amazing class for that.

    0 讨论(0)
  • 2020-12-31 18:10

    There's the Wt Project. It uses a paradigm similar to Qt's signals/slots.

    0 讨论(0)
  • 2020-12-31 18:19

    There is nothing wrong with trying to build a web app in C++. It's actually a lot of fun. What you need is a:

    • Templating system
    • A CGI lib
    • A database API wrapper, most likely, to avoid dealing with something like the low-level MySQL API
    • A logger
    0 讨论(0)
提交回复
热议问题