C / C ++的Ruby code之内? [英] C/C++ within Ruby code?
本文介绍了C / C ++的Ruby code之内?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
C / C ++是写一些Ruby应用程序的性能至关重要的方面很好的选择。我知道这是可能的。
C/C++ would be good option to write some of the performance critical aspects of a Ruby Application. I know this is possible.
我想知道如何添加C / C ++ code到红宝石code;任何其他语言为此事。
I would like to know how to add C/C++ code into Ruby code; any other language for that matter.
是否有你在开源项目中发现,否则这个任何实际应用?
Are there any practical applications of this which you noticed in open source projects or else?
推荐答案
除了扩展红宝石,这里有另外两个资源:
Besides "Extending Ruby", here are two other resources:
- README.EXT(extension.rdoc) - 节目你更多关于如何构建C扩展。一个很好的恭维,扩展红宝石
- 红宝石内嵌 - 这是试图使它更容易建立一个库通过让你在打电话的Ruby方法编译C $ C C C扩展。
- README.EXT (extension.rdoc) - shows you more about how to build C extensions. A good compliment to "Extending Ruby"
- Ruby Inline - This is a library that tries to make it easier to build C extensions by having you call methods in ruby to compile C code.
这篇关于C / C ++的Ruby code之内?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文