简体   繁体   English

对C ++编写Web前端脚本的建议

[英]Suggestions of scripting web front end for C++

Im currently learning C++ and Im interested in a web front end that can be fast as its C++ back end part. 我目前正在学习C ++,而我对Web前端(它的C ++后端部分可能很快)感兴趣。 Which front ends does make a good combination? 哪个前端组合良好?

Not looking for the best just the ones that can join cpp without using cgi. 不只是寻找可以不使用cgi就能加入cpp的人。 So please dont vote down. 所以请不要拒绝。

---Update------ ---更新------

I actually develope my web applications in Java and is nice. 我实际上是用Java开发我的Web应用程序,并且很好。 Im looking at the C++ side since I want to give it a try. 我正在考虑C ++方面,因为我想尝试一下。 I learn a little of C++ on a college class 3 years ago and now Im reading the Deitel 8th Edition book to cover what I miss and review what I previosly learned. 我3年前在大学课堂上学习了一些C ++,现在我正在阅读Deitel第8版书,以介绍我​​错过的内容并回顾我以前学到的内容。 I'll read all your suggestions and will select a balance between productivity and speed. 我将阅读您的所有建议,并在生产率和速度之间寻求平衡。 I admit it I am a performace addict that's the reason of my interest on this. 我承认我是一个表演迷,这就是我对此感兴趣的原因。 Before asking this I thought Python could be used as a web front end. 在问这个之前,我认为Python可以用作Web前端。 But maybe its not near C++ performance and thats why you didnt mentioned it. 但是也许它与C ++的性能不尽相同,这就是为什么您没有提到它。

-----Update #2------ -----更新#2 ------

What behaivor could have using python web frameworks or java servlets for the web engine and then connect it to C++? 使用python web框架或java servlet作为Web引擎,然后将其连接到C ++,会有什么行为? Will tomcat or the python server be a bottleneck? tomcat或python服务器会成为瓶颈吗?

I think it's hard to find a web front end in C++ (probably what you are looking for is a C++ equivalent of GWT ). 我认为很难在C ++中找到Web前端(可能您正在寻找的是GWT的C ++等效产品)。 Back ends are more common and there're some frameworks to create web apps in C++. 后端更常见,并且有一些框架可以用C ++创建Web应用程序。 Facebook has Hiphop for converting PHP code to C++ to speed up. Facebook拥有Hiphop ,可将PHP代码转换为C ++以加快速度。 But everything mostly boils down to HTML(5)/JavaScript/CSS. 但是,大多数情况都可以归结为HTML(5)/ JavaScript / CSS。 However, Qt framework has integration with WebKit and you can build applications using this framework which leverages HTML5/JavaScript/CSS3 in a C++ app (I'm not too familiar with it, so may be wrong). 但是,Qt框架已与WebKit集成,您可以使用此框架来构建应用程序,该框架在C ++应用程序中利用了HTML5 / JavaScript / CSS3(我不太熟悉,所以可能是错误的)。 Take a look at this by the way. 顺便看看这个

EDIT: On further googling, found Wt , this might look interesting. 编辑:在进一步的谷歌搜索中,找到Wt ,这可能看起来很有趣。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM