两种语言如何集成到项目中?
How are two languages integrated into projects?
我一直在想,为什么在同一个项目中使用两种语言?
Android,例如。它基于 Linux 内核,但有一个 Java 环境供 运行 中的应用程序使用。
您使用构建系统。最常用的一种是 GNU Make. A build system allows you to specify the artifacts needed to proceed along to every step, plus it allows you to set targets. I personally prefer shakebuild,但您的偏好可能会有所不同。
打电话的问题Haskell 在 Rust 中要困难得多。语言需要定义它们都遵守的互操作性标准。通常,这意味着在它们之间传递的只是产品类型、字符串、整数等。
我一直在想,为什么在同一个项目中使用两种语言?
Android,例如。它基于 Linux 内核,但有一个 Java 环境供 运行 中的应用程序使用。
您使用构建系统。最常用的一种是 GNU Make. A build system allows you to specify the artifacts needed to proceed along to every step, plus it allows you to set targets. I personally prefer shakebuild,但您的偏好可能会有所不同。
打电话的问题Haskell 在 Rust 中要困难得多。语言需要定义它们都遵守的互操作性标准。通常,这意味着在它们之间传递的只是产品类型、字符串、整数等。