github github
  • Pricing and Signup
  • Explore GitHub
  • Features
  • Blog
  • Login

jruby / jruby

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
    • 497
    • 109
  • Source
  • Commits
  • Network
  • Pull Requests (5)
  • Wiki (117)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Home
  • Pages
  • Wiki History
  • Git Access

C Extension Alternatives

  • Page History

JRuby versions prior to 1.6 did not support Ruby C extensions, and even in 1.6 the support is still "in development" and considered experimental. This page lists common C extensions and non-C alternatives you can use to replace them.

  • RDiscount - Use Maruku (pure Ruby) or markdown_j (wrapper around a Java library)

  • RMagick - Try RMagick4J (implements ImageMagick functionality in Java) or preferably use alternatives mini_magick & quick_magick. For simple resizing, cropping, greyscaling, etc look at image_voodoo.

  • Unicorn - Try any one of the following JRuby-based servers: Trinidad, Mizuno, Kirk or TorqueBox.

  • Thin - Thin might compile and run but is not recommended. Try any one of the following JRuby-based servers: Trinidad, Mizuno, Kirk or TorqueBox.

  • Typhoeus - The C extension doesn't currently compile. There's no equivalent library for JRuby, but you might try any of the pure-Ruby HTTP clients (net/http, httpclient, etc.). There are also several Java HTTP client libraries that will work (Apache HttpClient, HttpURLConnection, etc).

  • mysql - Use activerecord-jdbc-adapter instead along with jdbc-mysql.

  • mysql2 - Use activerecord-jdbc-adapter instead along with jdbc-mysql.

  • sqlite3 - Use activerecord-jdbc-adapter instead along with jdbc-sqlite3.

  • Nokogiri - For best results, use the pure-Java version of Nokogiri (1.5 or greater).

  • yajl-ruby - Try json or json_pure instead. Unfortunately there is no known equivalent JSON stream parser.

  • bson_ext - bson_ext isn't used with JRuby. Instead, some native Java extensions are bundled with the bson gem.

  • win32ole - Use the jruby-win32ole gem (preinstalled in JRuby's Windows installer).

Please add to this list with your findings.

Note that the JRuby-Lint gem parses the contents of the list above to use for its Ruby gem checker. In order for JRuby-Lint to use the information, please adhere to the gem_name - instructions format.

Last edited by headius, Sun May 15 17:25:54 -0700 2011

Delete this Page

Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2011 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security

Keyboard Shortcuts (see all)

Site wide shortcuts

s
Focus site search
?
Bring up this help dialog

Commit list

j
Move selected down
k
Move selected up
t
Open tree
p
Open parent
c or o or enter
Open commit
y
Expand URL to its canonical form

Pull request list

j
Move selected down
k
Move selected up
o or enter
Open issue

Issues

j
Move selected down
k
Move selected up
x
Toggle select target
o or enter
Open issue
I
Mark selected as read
U
Mark selected as unread
e
Close selected
y
Remove selected from view
c
Create issue
l
Create label
i
Back to inbox
u
Back to issues
/
Focus issues search

Network Graph

← or h
Scroll left
→ or l
Scroll right
↑ or k
Scroll up
↓ or j
Scroll down
t
Toggle visibility of head labels
shift ← or shift h
Scroll all the way left
shift → or shift l
Scroll all the way right
shift ↑ or shift k
Scroll all the way up
shift ↓ or shift j
Scroll all the way down

Source Code Browsing

t
Activates the file finder
l
Jump to line
y
Expand URL to its canonical form