Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Decision support systems and Ruby

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter - I am trying to develop decision support systems that use Drools, which is obviously a Java based product, but creating the environment to fire the rules in Java requires a lot of code. Does Ruby offer a mechanism for accessing Drools?
 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your coding in Ruby and need a rules engine, why not check out Rools, or Ruleby?

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought of Rools too, but I guess he is fixed with Drools.
Drools being java based, it should be possible to integrate with ruby using JRuby, but that is something for which there is no supporting api or library available.
 
Mike Dean
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Drools is a mature product and am developing with Java several complex decision support applications. However, I have explored Ruby for a few days or weeks every year for past five years, and each time it is very appealing. But not sure could use something like Rools, etc.
 
Michael Sullivan
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My team often asks "how can we integrate Ruby code with Java code on our projects", if we are to use both languages?

While JRuby is the obvious answer, I don't believe that polyglot programming stresses that language "A" has to talk directly to language "B" in order to be effective. I propose that because Ruby and RoR can talk via HTTP, they can then talk to back-end functionality written in various languages. Direct access isn't the only option.

Maybe I have a logical set of rules implemented with Drools, fronted by restful web-services. My Ruby (or RoR) code can talk directly to the WS layer, and each layer can be tested distinctly.

In some ways, I wonder if the question about Ruby talking to Java isn't better solved by design, vs platform.


 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic