<bdo id='dZIcd'></bdo><ul id='dZIcd'></ul>
<tfoot id='dZIcd'></tfoot>

      <i id='dZIcd'><tr id='dZIcd'><dt id='dZIcd'><q id='dZIcd'><span id='dZIcd'><b id='dZIcd'><form id='dZIcd'><ins id='dZIcd'></ins><ul id='dZIcd'></ul><sub id='dZIcd'></sub></form><legend id='dZIcd'></legend><bdo id='dZIcd'><pre id='dZIcd'><center id='dZIcd'></center></pre></bdo></b><th id='dZIcd'></th></span></q></dt></tr></i><div id='dZIcd'><tfoot id='dZIcd'></tfoot><dl id='dZIcd'><fieldset id='dZIcd'></fieldset></dl></div>
    1. <small id='dZIcd'></small><noframes id='dZIcd'>

      1. <legend id='dZIcd'><style id='dZIcd'><dir id='dZIcd'><q id='dZIcd'></q></dir></style></legend>
      2. 选择嵌入式语言

        时间:2023-09-27
        <i id='KsRLF'><tr id='KsRLF'><dt id='KsRLF'><q id='KsRLF'><span id='KsRLF'><b id='KsRLF'><form id='KsRLF'><ins id='KsRLF'></ins><ul id='KsRLF'></ul><sub id='KsRLF'></sub></form><legend id='KsRLF'></legend><bdo id='KsRLF'><pre id='KsRLF'><center id='KsRLF'></center></pre></bdo></b><th id='KsRLF'></th></span></q></dt></tr></i><div id='KsRLF'><tfoot id='KsRLF'></tfoot><dl id='KsRLF'><fieldset id='KsRLF'></fieldset></dl></div>
      3. <small id='KsRLF'></small><noframes id='KsRLF'>

          <legend id='KsRLF'><style id='KsRLF'><dir id='KsRLF'><q id='KsRLF'></q></dir></style></legend>
              <tbody id='KsRLF'></tbody>
          • <tfoot id='KsRLF'></tfoot>
            • <bdo id='KsRLF'></bdo><ul id='KsRLF'></ul>
                1. 本文介绍了选择嵌入式语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在制作一个应用程序,该应用程序使用多种不同的算法(代理)分析一个或多个系列的数据.我想到这些代理中的每一个都可以实现为单独的 Python 脚本,我在我的应用程序中使用 Python C API 或 Boost.Python 运行这些脚本.

                  I'm making an application that analyses one or more series of data using several different algorithms (agents). I came to the idea that each of these agents could be implemented as separate Python scripts which I run using either the Python C API or Boost.Python in my app.

                  我有点担心运行时开销 TBH,因为我正在进行一些非常繁重的数据处理,我不想每次模拟都需要等待几分钟.我通常会进行数十万(如果不是数百万)次调用外部代理"的迭代;我是更好地对应用程序中的所有内容进行硬编码,还是性能下降可以容忍?

                  I'm a little worried about runtime overhead TBH, as I'm doing some pretty heavy duty data processing and I don't want to have to wait several minutes for each simulation. I will typically be making hundreds of thousands, if not millions, of iterations in which I invoke the external "agents"; am I better of just hardcoding everything in the app, or will the performance drop be tolerable?

                  另外,除了 Python 之外,我还能使用其他任何解释性语言吗?

                  Also, are there any other interpreted languages I can use other than Python?

                  推荐答案

                  是的,吨.Lua 和 Python 似乎是最受欢迎的:

                  Yes, tons. Lua and Python seems to be the most popular:

                  嵌入 Lua

                  • http://www.lua.org/pil/24.html
                  • https://stackoverflow.com/questions/38338/why-is-lua-thinked-a-game-language
                  • Lua 作为通用脚本语言?莉>

                  嵌入 Python

                  • http://docs.python.org/extending/embedding.html

                  嵌入 Tcl

                  • http://wiki.tcl.tk/3474
                  • http://wiki.tcl.tk/2265

                  嵌入 Ruby

                  • 如何在 C++ 中嵌入 Ruby?

                  嵌入 Perl

                  • http://perldoc.perl.org/perlembed.html

                  嵌入 JavaScript

                  • http://spiderape.sourceforge.net/

                  JavaScript 引擎有几十种,这只是一个例子.他们中的一些人的速度也快得惊人.

                  There are dozens of JavaScript engines around, this is just an example. Some of them are also frighteningly quick.

                  这篇关于选择嵌入式语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:将 Lua 嵌入 C++ 下一篇:Lua 5.3 未定义的引用

                  相关文章

                    <bdo id='f5wcD'></bdo><ul id='f5wcD'></ul>

                  <tfoot id='f5wcD'></tfoot>

                  1. <i id='f5wcD'><tr id='f5wcD'><dt id='f5wcD'><q id='f5wcD'><span id='f5wcD'><b id='f5wcD'><form id='f5wcD'><ins id='f5wcD'></ins><ul id='f5wcD'></ul><sub id='f5wcD'></sub></form><legend id='f5wcD'></legend><bdo id='f5wcD'><pre id='f5wcD'><center id='f5wcD'></center></pre></bdo></b><th id='f5wcD'></th></span></q></dt></tr></i><div id='f5wcD'><tfoot id='f5wcD'></tfoot><dl id='f5wcD'><fieldset id='f5wcD'></fieldset></dl></div>

                    <legend id='f5wcD'><style id='f5wcD'><dir id='f5wcD'><q id='f5wcD'></q></dir></style></legend>

                  2. <small id='f5wcD'></small><noframes id='f5wcD'>