Re: How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread gingersafflower
Thank you. Yes, we have complete control over both apps. On Wednesday, July 8, 2015 at 8:58:53 PM UTC-4, Francis Avila wrote: > > Who is saving these strings, and who is reading them? Do you have complete > control over both apps, or does one of them need to be aligned with the > other? > > I

Re: How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread Francis Avila
Who is saving these strings, and who is reading them? Do you have complete control over both apps, or does one of them need to be aligned with the other? If the Java app is the baseline, you need to know the exact details of the format of the data it saves. Just knowing "it's JSON" is not enoug

Re: How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread gingersafflower
And I have another stupid question. Using the above code, I am sometimes getting strings in Redis that have escaped quotation marks, like this: " \"transaction-id\" : \" 1ec47c2e-21ee-427c-841c-80a0f89f55d7 \" \"debrief\" : \" Susan Hilly at Citi called to get a quotation for discounted weekl

Re: How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread gingersafflower
Francis Avila, Thank you for your response. The Java app is using Jedis and the Clojure app is using Carmine. I'm wondering if you can suggest what you think would be the easiest way to allow these 2 apps to understand each other's strings? You were correct about how unsafe the above code was.

Re: How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread Francis Avila
You are running into Carmine's automatic nippy serialization. https://github.com/ptaoussanis/carmine#serialization Redis only stores byte arrays (what it calls "strings"). Carmine uses the nippy library (the meaning of "NPY" in your byte stream) to represent rich types compactly as bytes. https

Re: How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread gingersafflower
For anyone else like me, who has learned Clojure but knows nothing about Java, you need to convert to a byte array and then use carmine/raw to write to Redis. So in a let statement I have something like this: document-as-string (str "{\"transaction-id\" : \"" transaction-id "\", \"debrief

Re: How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread gingersafflower
Ah, I just saw this, which might help me: https://github.com/ptaoussanis/carmine/issues/83 On Wednesday, July 8, 2015 at 4:35:49 PM UTC-4, gingers...@gmail.com wrote: > > > I am not sure if this is a Clojure question or a Java question. I don't > know Java, so I could use whatever help folks ca

How can I write a string into Redis such that a Java app might see its contents as a primitive string?

2015-07-08 Thread gingersafflower
I am not sure if this is a Clojure question or a Java question. I don't know Java, so I could use whatever help folks can offer. "primitive string" here means what I can write when I am at the terminal. We have 2 apps, one in Clojure, one in Java. They talk to each other via Redis. I know the

Fwd: [ANN] Tupelo Datomic: Making Datomic Even Sweeter

2015-07-08 Thread Alan Thompson
Hi All, I am pleased to announce the initial release of Tupelo Datomic, a library of functions to make living and working with Datomic as effortless as possible. While the native Datomic API is very powerful, there are many details and options which are often unnecessary and make code more cumber

Re: java method overloading and clojure interop

2015-07-08 Thread Mike Rodriguez
Good call on the auto-boxing. I wasn't considering that before, but obviously it is important. Nice insight into :inline. I never really did understand the usefulness of it before. On Tuesday, July 7, 2015 at 10:20:51 PM UTC-5, Herwig Hochleitner wrote: > > 2015-07-07 15:04 GMT+02:00 Jo Gerae

Re: Counterclockwise's Plugin Shortcuts for OS X

2015-07-08 Thread Laurent PETIT
Hi JPatrick, The documentation will indeed recommend Mars and the market place will point to the new stable release as soon as I'm back and I can safely release it. Le mercredi 8 juillet 2015, JPatrick Davenport a écrit : > Adrians, > Thanks for the help. Upgrading to Mars and using the master

Re: awful performance on Windows 7 compared to anything else

2015-07-08 Thread Niels van Klaveren
SLF4J / Logback is a fine system for logging, including reduced log line work done when not logging (instead of the normal filtering system), and also features an optional asynchronous appender. Even without it, it can perfectly handle the load when configured correctly. However, when run throu

Re: Counterclockwise's Plugin Shortcuts for OS X

2015-07-08 Thread JPatrick Davenport
Adrians, Thanks for the help. Upgrading to Mars and using the master update site worked. To answer your prior question about what I installed last night. I installed the plugin for the Market Place into Eclipse Luna and I re-downloaded the stand alone OS X install. My take away is that the do

Re: awful performance on Windows 7 compared to anything else

2015-07-08 Thread Fluid Dynamics
On Wednesday, July 8, 2015 at 5:41:47 AM UTC-4, Niels van Klaveren wrote: > > Colin, be aware that running through service wrappers can introduce a lot > of overhead / blocking on logging due to stdout redirects. > Our application had to switch to SLF4J / Logback, since logging with JUL, > Log4J

Re: awful performance on Windows 7 compared to anything else

2015-07-08 Thread Niels van Klaveren
Colin, be aware that running through service wrappers can introduce a lot of overhead / blocking on logging due to stdout redirects. Our application had to switch to SLF4J / Logback, since logging with JUL, Log4J or to console / stdout and incorrectly configuring the wrapper could lead to 100 ms

Re: java method overloading and clojure interop

2015-07-08 Thread Jo Geraerts
Herwig Hochleitner schreef op 2015-07-08 05:20: 2015-07-07 15:04 GMT+02:00 Jo Geraerts : * multiply(long x) * multiply(double x) * multiply(Number x) In clojure i want to do something like (defn multiply[^MonetaryAmount amount multiplicant]   (.multiply amount multiplicant)) Function param

[ANN] lein-collisions: a plugin to find classpath collisions

2015-07-08 Thread Herwig Hochleitner
Dear Community, I'm releasing https://github.com/webnf/lein-collisions Running it on your projects and libraries is highly recommended, because classpath collisions can be the source of some very confusing errors and inconsistencies. thanks -- You received this message because you are subscrib