CSC/ECE 517 Fall 2010/ch3 3i IC: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


= Introduction =
= Introduction =
Many middleware solutions have been developed to combine static and dynamic languages to take advantage of both types of code.  Previous wiki chapters have discussed JRuby, a Java implementation Ruby.  Below, we will give even more examples of mixing several widely used dynamic languages with C, C++, and Java.
Many middleware solutions have been developed to combine static and dynamic languages to take advantage of both types of code.  Previous wiki chapters have discussed JRuby, a Java implementation Ruby.  These solutions allow programmers the productivity luxuries of newer dynamic languages with the speed, low-level functionality, and pre-existing code base of older static languages.  Below, we will give even more examples of mixing several widely used dynamic languages with C, C++, and Java.


=Mixing Dynamic Code and C/C++=
=Mixing Dynamic Code and C/C++=


==Ruby==
==Ruby==
Ruby has an inherent relationship with the C language since the current Ruby implementation is written in C.   
Ruby has an inherent relationship with the C language since the current Ruby implementation is written in C.  Cplus2Ruby is a gem that allows programmers to call Ruby code within C++ and vice versa.   


==Python==
==Python==
Line 17: Line 17:


==Perl==
==Perl==
==References==
[1] Steve Vinoski. ''Ruby Extensions''. Internet Computing, IEEE, Vol. 10, Issue 5. 2006. pp. 85-87.

Revision as of 01:47, 4 October 2010

Mixing Static and Dynamic Language Code


Introduction

Many middleware solutions have been developed to combine static and dynamic languages to take advantage of both types of code. Previous wiki chapters have discussed JRuby, a Java implementation Ruby. These solutions allow programmers the productivity luxuries of newer dynamic languages with the speed, low-level functionality, and pre-existing code base of older static languages. Below, we will give even more examples of mixing several widely used dynamic languages with C, C++, and Java.

Mixing Dynamic Code and C/C++

Ruby

Ruby has an inherent relationship with the C language since the current Ruby implementation is written in C. Cplus2Ruby is a gem that allows programmers to call Ruby code within C++ and vice versa.

Python

Lua

Mixing Dynamic Code and Java

Perl

References

[1] Steve Vinoski. Ruby Extensions. Internet Computing, IEEE, Vol. 10, Issue 5. 2006. pp. 85-87.