简体   繁体   English

ASP.NET 5 vs Node.js 作为 C++ 数学库的接口

[英]ASP.NET 5 vs Node.js as interface to C++ math library

I have a closed source C++ math library for solid modeling and I want to write SPA to display and edit objects in WebGL.我有一个用于实体建模的闭源 C++ 数学库,我想编写 SPA 来显示和编辑 WebGL 中的对象。 Math library and WebGL SPA will have a huge traffic between them using WebSockets数学库和 WebGL SPA 将使用 WebSockets 在它们之间产生巨大的流量

Which server technology is easier to develop, debug and support in this scenario?在这种情况下,哪种服务器技术更容易开发、调试和支持? Does anyone has the performance impact passing data between SPA and C++ through web sockets?有没有人对通过 Web 套接字在 SPA 和 C++ 之间传递数据有性能影响?

PS: As I can understand there is no way to use existing C++ libraries from C#. PS:据我所知,无法使用 C# 中的现有 C++ 库。 So I need to convert them to plain C API.所以我需要将它们转换为普通的 C API。 And writing Node.js extensions seems to be much easier.编写 Node.js 扩展似乎要容易得多。 On the other hand debugging Node.js extensions looks harder另一方面,调试 Node.js 扩展看起来更难

You can try to make a bridge library with C++ for CLR (managed C++).您可以尝试使用 C++ 为 CLR(托管 C++)制作桥接库。 It is kind of a hybrid that can call to native C++ code and .NET.它是一种可以调用本机 C++ 代码和 .NET 的混合体。 Then you can reference this bridge library in C# project.然后你可以在 C# 项目中引用这个桥库。

This is complex thing on its own, so do some research to see if it will work for you.这本身就是一件复杂的事情,所以做一些研究,看看它是否适合你。 For example, see this .例如, 请参阅此

Also, take a look at this .另外,看看这个

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

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