Giter Site home page Giter Site logo

ruby-c-extension-book's Introduction

玩Ruby也有段时间了,作为半个Rubist最近在学习编写Ruby的C扩展时发现相关的资料非常的少。首先是在Ruby的官方文档中没有相关的介绍,其次是网上相关的介绍也很少。好不容易在《Programming Ruby》中找到了一点资料也是Ruby1.8的,有些内容已经不能用了,不过还是有些参考价值的。

作为一个程序员,没有文档是件很纠结的事。关于这点我觉得Python就比较好。Python的官方文档不仅详细,而且还有例子。

经过了一段时间的折腾,现在大致也有所了解了。于是乎准备把这些内容整理一下,然后就有了这本电子书。当然如果要在Ruby中调用C,现在来说可以有多种方法实现。而直接使用C来编写Ruby扩展的方法显得略有些过时了,但是不管怎样它也是一种比较有效的方法。

同时本文的示例的代码均可从我的Github获取到: https://github.com/wusuopu/ruby-c-extension-sample

注意:在编写本书时最新版的ruby是2.1.0版本。

最后,如果觉得本文对您有用,欢迎捐赠。

我的比特币地址:1N4NES3183t2tU64aGbkotCmRYymJ1UDn6

ruby-c-extension-book's People

Contributors

wusuopu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.