什么适用于Web开发在C + + [英] What works for web dev in C++

查看:100
本文介绍了什么适用于Web开发在C + +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个运行非常少的RAM的Web应用程序,我认为C ++可以帮助我实现。

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

现在,很多人说C ++不适合因为:

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


  • 没有简单的字符串操作

  • 是一种不安全的语言


但是我确定C ++社区已经找到了缓解所有这些(也许不是编译时间)的方法,但是因为我不是一个常规,所以我很难把一个值我的发现在Google中。

But I'm sure the C++ community have found ways to alleviate all those (maybe not the compile time) however since I'm not a regular so it is hard for me to put a value on what I find in Google.

所以我要求一些指导。我会感激,如果你分享什么工作,什么工具/ libs是最新的和活着。什么策略可以帮助Web开发在C + +? FastCGI或嵌入式服务器(Asio / POCO / Pion /等)?如何解决安全问题?

So I'm asking for some guidance. I would appreciate if you share what works, what tools/libs are current and alive. What strategies can help with web dev in C++? FastCGI or embedded server (Asio / POCO / Pion / etc.)? How do you address security concerns?

非常感谢任何帮助

推荐答案

http://www.tntnet.org/ 。他们创建了一个...让我从他们的网站剪切和粘贴:

Have you looked at http://www.tntnet.org/. They have created a... well let me cut and paste from their website:


Tntnet是一个模块化的多线程,
高性能web应用服务器
for C ++。创建Web应用程序
Tntnet有一个类似于php,jsp或mason,
的模板语言
ecpp,您可以在
html页面中嵌入c ++代码以生成活动内容。
ecpp文件被预编译为
c ++ - 类称为组件,
编译并链接到共享
库。这个过程在
compiletime完成。

Tntnet is a modular, multithreaded, high performance webapplicationserver for C++. To create webapplications Tntnet has a template-language called ecpp similar to php, jsp or mason, where you can embed c++-code inside a html-page to generate active content. The ecpp-files are precompiled to c++-classes called components and compiled and linked into a shared library. This process is done at compiletime.

我使用它,它有相当小的开销,快速动态页面生成。比较PHP,Ruby等蜗牛,因为使用tntnet运行编译的C / C ++代码。

I've used it and it has quite a small overhead plus it has screamingly fast dynamic page generation. Makes PHP, Ruby etc snails in comparison because with tntnet you are running compiled C/C++ code.

这篇关于什么适用于Web开发在C + +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆