News for hackers. Stuff that matters.
Re:Node.js Algorithm Modules by thomasfoster96 on Monday January 05, 2015 @01:41AM (#8837627)
The built in sorting algorithm (apparently it's mergesort in most browsers) in most implementations of JavaScript is often a little bit slow, so more sorting algorithms that people have implemented is a good thing. (I actually implemented Quicksort in Javascript and got about 5x better performance than Chrome's sort algorithm)
Re:Node.js Algorithm Modules by tejas-manohar on Monday January 05, 2015 @02:23AM (#8837717)
Yup! You should wrap Quicksort in a node module and PR us to add it to the list :)
Re:Node.js Algorithm Modules by thomasfoster96 on Monday January 05, 2015 @03:42AM (#8837901)
I might clean the code up and do that! :)
Re:Node.js Algorithm Modules by jonalmeida on Monday January 05, 2015 @12:40AM (#8837483)
I've found algorithms.js to be a nice collection: https://github.com/felipernb/algorithms.js
Re:Node.js Algorithm Modules by tejas-manohar on Monday January 05, 2015 @01:12AM (#8837566)
that looks awesome! maybe i'll PR a way to separate them into separate require's :)
Re:Node.js Algorithm Modules by talles on Monday January 05, 2015 @10:28AM (#8839250)
No graph algorithms yet..? That's odd.
Re:Node.js Algorithm Modules by tejas-manohar on Monday January 05, 2015 @10:44AM (#8839343)
Sorry. They'll come sooner or later, but go ahead and PR if you know some!