Tuesday Feb 03, 2009

JRuby Talk Examples

One of the three things we talked about at the last Open Source University Meetup meeting was JRuby, the fully Java implementation of the Ruby virtual machine. I demonstrated a program that uses Java Swing in JRuby showing a temperature calculating application. Users could, in example3.rb, enter a temperature and press a button to convert it from F to C or C to F and get the response back, demonstrating a program that could be useful to people.

Download the demonstration files.

Tuesday Nov 25, 2008

Calling JRuby in Java

We all know that JRuby can easily use Java classes, but did you know Java can call JRuby scripts? An excellent but relatively underutilized feature of Java and JRuby is the ability to call JRuby scripts directly from your Java program. Consider the possibilities of loading a JRuby script, from possible a text file or a database, and having it execute within your program. It could be an excellent method of installing on-the-fly system updates or modifying variables that you never thought you'd need to touch. Always, of course, be careful not to execute malicious code, as your JRuby script can do anything your Java code might.

Tuesday Nov 11, 2008

Try JRuby on Windows

I just created a nice tutorial for installing JRuby on Windows. JRuby is great because it combines the power and features of Java, with the strength and elegance of Ruby! JRuby can also run Ruby on Rails, and is very nicely integrated with Java, giving you access to Java excellent resources, such as Swing.
About

Ryan Kopf

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today