Re: [rust-dev] [ANN] rust-redis and rust-msgpack

2014-01-06 Thread Michael Neumann


Am 04.01.2014 19:11, schrieb Patrick Walton:

On 1/4/14 8:16 AM, Michael Neumann wrote:

rust-msgpack: Fully featured and high performance msgpack
implementation for Rust.

Both work with rust 0.9-pre.


Too stupid/sleepy that I forgot the links:

http://github.com/mneumann/rust-redis
http://github.com/mneumann/rust-msgpack


Sweet! msgpack might be a good IPC format for Servo.


Give it a try :)

It's very efficient, both in storage and speed.

Regards,

  Michael
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] [ANN] rust-redis and rust-msgpack

2014-01-06 Thread Armin Ronacher

Hi,

On 04/01/2014 16:16, Michael Neumann wrote:

rust-redis: A Redis client library written in pure Rust. Thanks to the new
rust runtime
it is pretty fast, despite being only 200 lines of code.
Just compared that with the one I'm working on 
(https://github.com/mitsuhiko/redis-rs/) and maybe we can unify those two into 
one.  I plan on continue maintaining mine for a long time to come as I'm using 
redis very frequently.


My biggest issue currently with continue working on it, is that I want to 
replicate the pipeline functionality from the Python and JavaScript 
implementation but I can't see a way of doing that in Rust without having to 
manually generate code.  Macros are not going to be particularly useful.


Primarily the issue is that on the client you want this:

fn get(&mut self, key: ~str) -> ~str {
value_as_string(self.execute("GET", [StrArg(key)]))
}

but on the pipeline you want this behavior:

let rv = client.pipeline()
  .get("my_key")
  .tap(|s| println!("I got a string: {}", s)
  .get("another_key")
  .execute();

for result in rv {
println!("I got result: {}", result);
}

I am not sure yet how to do this nicely without repeating a lot of code (also I 
have no idea how to make .tap() work).



Regards,
Armin

___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] [ANN] rust-redis and rust-msgpack

2014-01-04 Thread Patrick Walton

On 1/4/14 8:16 AM, Michael Neumann wrote:

rust-msgpack: Fully featured and high performance msgpack
implementation for Rust.

Both work with rust 0.9-pre.


Too stupid/sleepy that I forgot the links:

http://github.com/mneumann/rust-redis
http://github.com/mneumann/rust-msgpack


Sweet! msgpack might be a good IPC format for Servo.

Patrick

___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] [ANN] rust-redis and rust-msgpack

2014-01-04 Thread Corey Richardson
If you slap a #[no_uv]; on the benchmark, it will use libnative, which
is threads

On Sat, Jan 4, 2014 at 11:16 AM, Michael Neumann  wrote:
>
> Am 04.01.2014 17:14, schrieb Michael Neumann:
>
>> Hi all,
>>
>> rust-redis: A Redis client library written in pure Rust. Thanks to the new
>> rust runtime
>> it is pretty fast, despite being only 200 lines of code.
>>
>> rust-msgpack: Fully featured and high performance msgpack implementation
>> for Rust.
>>
>> Both work with rust 0.9-pre.
>
>
> Too stupid/sleepy that I forgot the links:
>
> http://github.com/mneumann/rust-redis
> http://github.com/mneumann/rust-msgpack
>
>
> Regards,
>
>   Michael
> ___
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] [ANN] rust-redis and rust-msgpack

2014-01-04 Thread Michael Neumann


Am 04.01.2014 17:14, schrieb Michael Neumann:

Hi all,

rust-redis: A Redis client library written in pure Rust. Thanks to the 
new rust runtime

it is pretty fast, despite being only 200 lines of code.

rust-msgpack: Fully featured and high performance msgpack 
implementation for Rust.


Both work with rust 0.9-pre.


Too stupid/sleepy that I forgot the links:

http://github.com/mneumann/rust-redis
http://github.com/mneumann/rust-msgpack

Regards,

  Michael
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


[rust-dev] [ANN] rust-redis and rust-msgpack

2014-01-04 Thread Michael Neumann

Hi all,

rust-redis: A Redis client library written in pure Rust. Thanks to the 
new rust runtime

it is pretty fast, despite being only 200 lines of code.

rust-msgpack: Fully featured and high performance msgpack implementation 
for Rust.


Both work with rust 0.9-pre.

Regards,

  Michael
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev