为 C++ 选择嵌入式脚本语言

2023-09-26C/C++开发问题
10

本文介绍了为 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++ 选择嵌入式脚本语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&amp;()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6