Ruby
From eqqon
 (→Extending Ruby in C)  | 
		 (→Extending Ruby in C)  | 
		||
| Line 16: | Line 16: | ||
{{ArticleTeaser  | {{ArticleTeaser  | ||
| - | |pagelink=[[/Ruby V1.9 C Extension]]  | + | |pagelink=[[Ruby/Ruby V1.9 C Extension]]  | 
| - | |iconlink={{clickpic|/Ruby V1.9 C Extension|http://www.eqqon.com/images/thumb/1/1c/Ruby_logo1.png/32px-Ruby_logo1.png}}  | + | |iconlink={{clickpic|Ruby/Ruby V1.9 C Extension|http://www.eqqon.com/images/thumb/1/1c/Ruby_logo1.png/32px-Ruby_logo1.png}}  | 
|headline=Ruby V1.9 C extension  | |headline=Ruby V1.9 C extension  | ||
|author=[[User:Zelenka|W. Zelenka]]  | |author=[[User:Zelenka|W. Zelenka]]  | ||
| - | |intro=  | + | |intro=Basicly the interface is similar to V1.8. So most parts of your implementation should run also with V1.9. I had some troubles initializing the interpreter, this differs in V1.9 and V1.8. Threading is now implemented native. But there is a major drawback with the Ruby interpreter implementation. Many global's are used. As a result the interpreter cannot be run more than once at a process. As an example, the LUA interpreter does this perfect. The interpreter can run at several instances, each instance using a pointer to the interpreter context.  | 
}}  | }}  | ||
Revision as of 15:21, 4 January 2009
The Future of Ruby
Yukihiro Matsumoto's C implementation of Ruby aka Main Ruby Implementation is considered the Quasi-Standard of the Ruby Language since there has never been an explicit language standard for Ruby. As the number of implementations grows, however, a formal standard seems to become necessary to prevent the horror scenario of various non-conform interpreters. Read on ...
Extending Ruby in C
Extending Ruby with C functions is quiet easy. After you have learned the principles and worked through the ambiguous usage of the API functions you get the power of the Ruby language to your C program. Then it is possible to solve the time critical tasks at the C program and the complex part by Ruby. We created a simple tutorial to get quickly familiar with the Ruby C extension API. Read on ....
external links
Community
  | 
Different Implementations
  | 
Documentation
  | 
GUI Toolkit Bindings
  | 
Libraries | 
