如何评估改变语言的利弊

发布于 2024-07-08 18:27:36 字数 669 浏览 4 评论 0原文

我在一家开发计算内核的公司工作。 他们的设计很简单:它是一个 C++ 库,只有一个函数可用于根据可用数据计算结果。

这些内核中的每一个本质上都有四个步骤:

  • 检索 xml 内容(格式已在 XSD 文件中定义)并存储到对象中

  • 使用上述对象定义一个数学问题

  • 使用求解器找到解决方案(或最佳解决方案)

  • 将结果导出到新的 xml 文件

目前,我们的资源在能力和兴趣方面非常面向模型(而不是这样)非常注重编程)。 显然,我们希望使环境尽可能友好和高效。 我们正在评估使用 LinQ 和 Microsoft Solver Foundation 来替代 c++ 和 home 的 c# 的使用自制工具。

我的问题是:

  • LinQ 和 Solver Foundation 可以做到这一切吗? 使用起来有多容易?

  • 改变我们的资源环境(学习和重写的时间、效率等)会带来什么收益/损失?

  • 我应该考虑其他有趣的选择吗?

I am working in a company that develops computing kernels. Their design is simple : it's a library in c++ which only has one function available to compute results out of available data.

There are essentially four steps in every one of these kernels :

  • retrieve xml content (format has been defined in an XSD file) and store into objects

  • define a mathematical problem using the above objects

  • use a solver to find a solution (or the optimal solution)

  • export results into a new xml file

Currently, our resources are very much model-oriented in terms of capabilities and interests (and not so much into programming). Obviously we want to make the environment as friendly and efficient as possible. We are evaluating the use of c# using LinQ and Microsoft Solver Foundation as a replacement for c++ and home-made tools.

My questions are :

  • Can LinQ and Solver Foundation do all that ? How easy would it be to use ?

  • What would be the gains/losses of changing the environment for our resources (time to learn and rewrite, efficiency, etc.) ?

  • Are there other interesting options that i should consider ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

若水般的淡然安静女子 2024-07-15 18:27:36

通过切换到 C#/LINQ,您将在使用 XML 甚至大量数学方面获得巨大的好处。 会有轻微的学习曲线(所以这是一个缺点),但在短短几周内,我相信您会嘲笑 C#3/LINQ 编码是多么容易。

我是根据经验这么说的……我特别提到了“C#3”(而不只是 C#),因为当我说服我的 C#2 同事迁移到 3/LINQ 时,他们经历了上述情况:)

You would get huge benefits by switching to C#/LINQ in terms of working with the XML and even with a lot of the math. There would be a slight learning curve (so that's a con), but in just a couple of weeks, I'm sure you'll be laughing at how much easier coding C#3/LINQ is.

I say this from experience... and I specifically mentioned "C#3" (as opposed to just C#), because when I convinced my fellow C#2 colleagues to move to 3/LINQ, they experienced the above :)

纵性 2024-07-15 18:27:36

我说任何 C++ 应用程序开发人员都应该好好看看 C#。 在我看来,在 C++ 中解决的许多问题可以在 C# 中更快地解决。 从 C++ 开始学习它根本不是一门难的语言。 我想说,在你做出决定之前,先检查一下 C# 一周左右,看看你有多喜欢它。

祝你好运 :)

I say that any C++ application developer should take a good look at C#. In my opinion, many of the problems that you solve in C++ can be solved much quicker in C#. It is not a hard language to learn coming from C++ at all. I would say, before you decide, check out C# for a week or so and see how much you like it.

Good luck :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文