简体   繁体   English

我们如何访问 Node.js 应用程序之外的内存?

[英]How can we access memory outside of a Node.js application?

For example, suppose there is some other program outside of Node.js, that wants to coordinate with a Node.js application to give it direct access to some memory.例如,假设 Node.js 之外还有一些其他程序,它想要与 Node.js 应用程序协调以直接访问某些内存。

On the JavaScript side, I suppose we'll need an ArrayBuffer.在 JavaScript 方面,我想我们需要一个 ArrayBuffer。

Do we need to write a Node.js C++ addon module to to do this?我们是否需要编写一个 Node.js C++ 插件模块来做到这一点? (I'm imagining to use C++ if so, but if we can use other languages like Rust that'd be cool.) (如果是这样,我想使用 C++,但如果我们可以使用其他语言,比如 Rust,那就太酷了。)

Any guidance on where to look for getting started on something like this?关于在哪里寻找这样的入门的任何指导?

Have you checked out apache arrow?你有没有检查过 apache 箭头? https://arrow.apache.org/ https://arrow.apache.org/

It supports a lot of languages and allows access to defined external memory, for sharing data between applications of different Languages.它支持多种语言并允许访问定义的外部存储器,以便在不同语言的应用程序之间共享数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM