Choosing embedded scripting language for C++(为 C++ 选择嵌入式脚本语言)
问题描述
我想选择一种我将在 C++ 上使用的嵌入式脚本语言.它应该连接一个数据库,如 Oracle.我的主机应用程序是一个服务器应用程序.这会将原始数据传递给脚本.该脚本将解析并执行一些特定的逻辑.还更新数据库.然后脚本将返回原始数据作为结果.你能帮我选吗?谢谢
I want to choose an embedded scripting language that i will use on C++. It should connect a database such as Oracle. My host application is a server application. That will pass raw data to script. The script will parse and do some specific logics. Also updates database. Then script will returns raw data as result. Can you help me to choose it? Thanx
推荐答案
Lua 旨在成为一种嵌入式语言,并具有 <一个 href="http://www.lua.org/manual/5.1/manual.html#3">简单的 API.Python 和 Ruby 的用途要广泛得多,并且(至少对于嵌入而言)要复杂得多.仅此一项就会引导我使用 Lua.
Lua is intended to be an embedded language and has a simple API. Python and Ruby are much more general purpose and are (for embedding at least) significantly more complicated. This alone would lead me to using Lua.
这篇关于为 C++ 选择嵌入式脚本语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为 C++ 选择嵌入式脚本语言


- 从python回调到c++的选项 2022-11-16
- C++ 协变模板 2021-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 静态初始化顺序失败 2022-01-01
- 近似搜索的工作原理 2021-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01