We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Scientific Computing on JRuby

Formal Metadata

Title
Scientific Computing on JRuby
Title of Series
Number of Parts
611
Author
License
CC Attribution 2.0 Belgium:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language
Production Year2017

Content Metadata

Subject Area
Genre
Abstract
I worked on “Port NMatrix to JRuby” in the context of GSoC 2016. Theperformance of NMatrix-JRuby is outstanding even without making use of JRubythreading capabilities. Also, I am working on ArrayFire gem that helps in easyGPU computation and is 1e4 to 1e7 times faster than NMatrix gem JRuby is known for performance. NMatrix, a linear algebra library, nowsupports JRuby. All SciRuby gems that depend on NMatrix can now be run onJRuby. A scientific library must be highly efficient as the programs can bememory intensive. The programs must be fast at the same time. This calls foroptimization. Suppose, you are running a Ruby program and you need to make it faster; youuse threads, yet you are not happy with the results! Just chain the Rubymethods to Java methods. Using Java method can improve the speed, around 1000times when compared to using Ruby method. Not only speed, it can help you savea lot of RAM, around 10 times. JRuby’s Garbage Collection can sometimes slowdown your program if you are not careful with handling a large amount of data. I would also like to share about ArrayFire gem that would be soon availablefor MRI that can be used for high-performance GPU computing using OpenCL/CUDA.