redis / hiredis-node

Node wrapper for hiredis
BSD 3-Clause "New" or "Revised" License
305 stars 84 forks source link

N-API Support for hiredis-node #134

Open aruneshchandra opened 7 years ago

aruneshchandra commented 7 years ago

The recently announced Node 8 has a new experimental feature called N-API which is aimed at reducing maintenance cost for node native addons. Checkout this blog for more details on its benefits.

hiredis-node is one of the top 30 native modules by dependency count, and in order to help the Node.js community make this important transition to N-API, we are hoping you will be able to work with us in order to port hiredis-node to support N-API. Your support and feedback is important in making this effort a success.

I am part of the N-API working group and and would like to talk to you about how you can can get started with N-API and what help we might be able to provide. I'm available to talk on the phone individually if you'd like. Alternatively, if you prefer, feel free to jump in our WG meeting which happens every Thursday at 1.30 Eastern / 10.30 Pacific US time, to discuss any issues.

Here’s a video of N-API in action https://www.youtube.com/watch?v=nmXhJ88nZsk

badboy commented 7 years ago

Hey, thanks for reaching out.

If N-API is the way forward, I appreciate that. But at the moment I am not a user of hiredis-node myself nor do I have much time to approach a full rewrite to this new API. If someone does the effort and provides a full implementation I would be happy to incorporate this here. It won't be me though.

aruneshchandra commented 7 years ago

I completely understand your point of view! Will you be willing to talk to us during our Weekly WG meeting which happens every Thursday at 1.30 Eastern / 10.30 Pacific US time, or one on one over the phone about this ?

badboy commented 7 years ago

Not before July, but for that I'll put it on my schedule and let you know a bit in advance.

aruneshchandra commented 7 years ago

No problem - we can wait! LMK when we can get some time with you to discuss this a little bit more.

aruneshchandra commented 7 years ago

@badboy do you think you have time to talk about this ?

badboy commented 7 years ago

Yes! Thanks for reminding me again. I see the next meeting is scheduled for next week, which won't work for me though. How should we get in contact?

aruneshchandra commented 7 years ago

When are you available @mhdawson and I can set up a separate call with you on this.

badboy commented 7 years ago

@aruneshchandra Sorry for letting this slip. Is there a meeting this week? I would have time to join in.

aruneshchandra commented 7 years ago

Yes there is a meeting this week on Thursday at 1.30 Eastern / 10.30 Pacific US time. Here's the hangout link https://plus.google.com/u/0/events/c0eevtrlajniu7h8cjrdk0f56c8?authkey=COH04YCalJS8Ug

Look forward to talking to you :)

mhdawson commented 7 years ago

Here is the link to the repo, the readme has instructions on how to use the migration tool:

https://github.com/nodejs/node-addon-api

badboy commented 7 years ago

Ok, I took a first stab using the conversion tool and have to say I hoped for a bit more. Some notes:

I don't have any compilable code so far, but will take another stab at it in a couple of days.

aruneshchandra commented 7 years ago

//cc: @sampsongao @jasongin

NickNaso commented 6 years ago

Hi everyone, I worked on porting hiredis to N-API. You can find my work here: https://github.com/NickNaso/hiredis-node/tree/napi If you want experiment with N-API you can create a branch and call it "napi" so I can execute the PR on it. After that we can iterate to over it and at the end publish a tagged version of hiredis like reported here: https://nodejs.org/en/docs/guides/publishing-napi-modules/

michael-grunder commented 6 years ago

Hi everyone,

I don't think hiredis-node (or hiredis for that matter) presently have any active maintainers, but I created the napi branch as requested.

I'm not a java/node dev but am happy to help with the process where I can.

Cheers! Mike

karawitan commented 5 years ago

Hi, I'll apply for the maintainer role:)