polyglot-integration by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill polyglot-integration集成使用不同编程语言编写的代码,以利用其独特的优势和生态系统。
最小工作示例:
// addon.cc
#include <node.h>
namespace demo {
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
using v8::Number;
void Add(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
if (args.Length() < 2) {
isolate->ThrowException(v8::Exception::TypeError(
String::NewFromUtf8(isolate, "Wrong number of arguments")));
return;
}
if (!args[0]->IsNumber() || !args[1]->IsNumber()) {
isolate->ThrowException(v8::Exception::TypeError(
String::NewFromUtf8(isolate, "Arguments must be numbers")));
// ... (完整实现请参阅参考指南)
references/ 目录下的详细实现:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 指南 | 内容 |
|---|---|
| Node.js Native Addons (C++) | Node.js 原生插件 (C++) |
| Python from Node.js | 从 Node.js 调用 Python |
| Rust from Python (PyO3) | 从 Python 调用 Rust (PyO3) |
| gRPC Polyglot Communication | gRPC 多语言通信 |
| Java from Python (Py4J) | 从 Python 调用 Java (Py4J) |
每周安装量
101
仓库
GitHub 星标数
116
首次出现
2026年1月21日
安全审计
安装于
opencode85
gemini-cli82
claude-code82
codex81
cursor78
github-copilot67
Integrate code written in different programming languages to leverage their unique strengths and ecosystems.
Minimal working example:
// addon.cc
#include <node.h>
namespace demo {
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
using v8::Number;
void Add(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
if (args.Length() < 2) {
isolate->ThrowException(v8::Exception::TypeError(
String::NewFromUtf8(isolate, "Wrong number of arguments")));
return;
}
if (!args[0]->IsNumber() || !args[1]->IsNumber()) {
isolate->ThrowException(v8::Exception::TypeError(
String::NewFromUtf8(isolate, "Arguments must be numbers")));
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Node.js Native Addons (C++) | Node.js Native Addons (C++) |
| Python from Node.js | Python from Node.js |
| Rust from Python (PyO3) | Rust from Python (PyO3) |
| gRPC Polyglot Communication | gRPC Polyglot Communication |
| Java from Python (Py4J) | Java from Python (Py4J) |
Weekly Installs
101
Repository
GitHub Stars
116
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode85
gemini-cli82
claude-code82
codex81
cursor78
github-copilot67
GSAP 框架集成指南:Vue、Svelte 等框架中 GSAP 动画最佳实践
3,000 周安装