Recommendations for translating Whisper to Java?

Asked by greg

I was just looking into using rrd4j but got depressed about the problem that Whisper solves but RRD has, namely the regularity of updates...

I'd like to use Whisper but need it in a Java runtime and have little Python expertise.

Any tips on the design of Whisper and what would not translate over to Java well?

thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aseem (amohanty) said :
#1
Revision history for this message
chrismd (chrismd) said :
#2

The easiest route is probably just using jython like Aseem suggests, but if that is not an option for you then whisper is not a very complex piece of code to re-write. It's only about 500 lines of python, so it would probably only take about 1,500 lines of java to do the same (for me at least, I'm no java pro). The code does not have a ton of comments but I tried to write it as intuitively as possible using descriptive variable names and such. If you do try to port it let me know if you run into any issues and I'd be glad to help.

Revision history for this message
kraig (kamador) said :
#3

Was any progress made in this effort?

Revision history for this message
Geoff Shannon (earthlingzephyr) said :
#4

I'm running into the same problems, so I'm going to be attempting to make the port to Java. The project will probably be hosted on my github http://github.com/ezephyr/jwhisper

Revision history for this message
Michael Leinartas (mleinartas) said :
#5

Neat! Check out this if you haven't seen: http://graphite.readthedocs.org/en/0.9.x/whisper.html

If you're only doing a read-only port that should be just about all you need. If you're going to support writing, the propagation is a bit funky as well as the logic for update_many (which is essential for sane write performance). Send a note out if you need help understanding it.

Revision history for this message
sergio (serge-simon) said :
#6

Hello,
Any news about jwhisper ?
I've just found whisper4j but haven't tryed it yet.
https://github.com/toelen/whisper4j

Revision history for this message
Geoff Shannon (earthlingzephyr) said :
#7

It turns out that the project at work that I was going to use jwhisper for went in a totally different direction, so I haven't had any motivation for working on it.

Though I've started working with clojure a lot lately, so I may decide to try and start a port to clojure (which would then be easy to make available to a java program as a jar).

But I'd go with whisper4j, since there's actually code there (working or not I don't know...)

Can you help with this problem?

Provide an answer of your own, or ask greg for more information if necessary.

To post a message you must log in.