【发布时间】:2014-07-25 02:58:47
【问题描述】:
看看这个答案 (https://stackoverflow.com/a/2856961/1793629) 我认为 Ur/Web 是相当安全的平台。
现在查看这个基准 (http://www.techempower.com/benchmarks/#section=data-r9&hw=peak&test=json),我发现 cpoll_cppsp 框架在大多数用例中排名第一或前 5。
来自 (http://xa.us.to/cppsp/documentation.cppsp) 的示例代码是
<%#
#include <vector>
#include <string>
vector<string> hello() {
return {"hello", "world", "!"};
}
%>
<html>
<body>
<table>
auto a = hello();
for(int i = 0; i < a.size(); i++) {
%>
<tr>
<td><%=a[i] %></td>
</tr>
<%
}
%>
</table>
</body>
</html>
文档相当差,所以也许有人可以解释这个东西是类型安全的并且具有与 Ur/Web 相似的功能(在此处列出:https://stackoverflow.com/a/2856961/1793629)?
提前谢谢你。
【问题讨论】:
标签: c++ web frameworks type-safety