node-toobusy icon indicating copy to clipboard operation
node-toobusy copied to clipboard

Remove native code for Node >= 0.9.1

Open STRML opened this issue 12 years ago • 12 comments

I'm a big fan of this project and have used it a few times. I noticed a few users having issues running it in restricted environments so I spent some time considering a JS-only version. As it turns out, since the addition of Timers.unref() in 0.9.1, we can safely unref the interval timer which will no longer keep the server open.

In this pull request is a full conversion to a JS-only module as well as a few example fixes. All tests pass and the results are identical, with one small behavior change; the C module would start measuring lag after the first tick (from 500ms onward), while this module starts measuring lag on the first tick.

STRML avatar May 28 '13 23:05 STRML

this is deep. I like simple. I need more time to review it.

lloyd avatar May 31 '13 17:05 lloyd

Any news on this? I had some problems with the native implementation on OSX so before digging into this it would be nice to know if a js only implementation works … Thanks Ognian

Ognian avatar Oct 02 '13 10:10 Ognian

It works - feel free to use it. On Oct 2, 2013 6:45 PM, "Ognian" [email protected] wrote:

Any news on this? I had some problems with the native implementation on OSX so before digging into this it would be nice to know if a js only implementation works … Thanks Ognian

— Reply to this email directly or view it on GitHubhttps://github.com/lloyd/node-toobusy/pull/17#issuecomment-25529552 .

STRML avatar Oct 02 '13 12:10 STRML

Thanks for the info, it would be nice if someone would update the version on npmjs so that install via npm gets possible… Thanks Ognian

Ognian avatar Oct 02 '13 13:10 Ognian

@lloyd Any intention of merging this? Code looks solid and would remove a lot of build issues. Being most of the overhead is in networking code, cannot imagine the difference between native and JS will make any measurable difference.

asilvas avatar Oct 14 '13 15:10 asilvas

OK it looks like @lloyd doesn't maintain this anymore... @STRML can you add your version under a different name to npm so that we can start using this?

Ognian avatar Nov 30 '13 11:11 Ognian

@Ognian I went ahead and published the module under the name toobusy-js.

STRML avatar Nov 30 '13 11:11 STRML

@STRML Thank you!

Ognian avatar Nov 30 '13 11:11 Ognian

@STRML can you enable issues in your repo since its a new version of toobusy?

pocesar avatar Jan 26 '14 23:01 pocesar

@pocesar Just added them.

STRML avatar Jan 27 '14 00:01 STRML

:+1:

pocesar avatar Jan 27 '14 00:01 pocesar

:+1:

jacobh0 avatar Feb 22 '14 19:02 jacobh0