是否可以将 Python 或 Perl 与 Ruby 集成? [英] Would it be possible to integrate Python or Perl with Ruby?

查看:79
本文介绍了是否可以将 Python 或 Perl 与 Ruby 集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以集成 Python(和/或 Perl)和 Ruby?我看过 http://www.goto.info.waseda.ac.jp/~fukusima/ruby/python/doc/http://code.google.com/p/ruby-perl/ ,但它们似乎都过时了.

Would it be possible to integrate Python (and/or Perl) and Ruby? I've looked at http://www.goto.info.waseda.ac.jp/~fukusima/ruby/python/doc/ and http://code.google.com/p/ruby-perl/ , but they both seem rather outdated.

有人为 Python 的 C API 生成了 Ruby 接口吗?

Has someone generated a Ruby interface for Python's C API?

根据 http://wiki.python.org,Python 可以与许多其他语言集成/moin/IntegratingPythonWithOtherLanguages .但是,该列表不包括 Ruby.

Python can be integrated with many other languages according to http://wiki.python.org/moin/IntegratingPythonWithOtherLanguages . However, that list doesn't include Ruby.

推荐答案

集成动态语言是 Parrot 的目标之一 项目.它是动态语言编译器针对的虚拟机.编译到同一个虚拟机后,无论对象的来源如何,您都应该能够在任何语言中使用对象"形式.

Integrating dynamic languages is one of the goals of the Parrot project. It's a virtual machine that dynamic language compilers target. Once compiled to the same virtual machine, you should be able to used the "object" form in any of the languages no matter the object's source.

然而,目前的问题是稳定虚拟机并完成大部分已完成的编译器.然而,这种状态已经存在很长时间了.:)

The issue at the moment, however, is stabilizing the virtual machine and finishing off the mostly done compilers. However, that's been the state for a long time. :)

这篇关于是否可以将 Python 或 Perl 与 Ruby 集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆