Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Node roundup

  • Loading branch information...
commit 4c79194df8906e34019905266671f72289d352ea 1 parent b749d97
Alex Young authored
View
52 _posts/2011-02-16-node-roundup.textile
@@ -0,0 +1,52 @@
+---
+layout: post
+title: "Node Roundup: bigint, mingy, kyoto-client, Blagovest's NPM Search"
+author: Alex Young
+categories:
+- node
+- server
+- maths
+- cli
+- database
+---
+
+h3. bigint
+
+"bigint":https://github.com/substack/node-bigint by James Halliday is an arbitrary precision arithmetic library for Node. Large integers can be defined with strings, then manipulated with the library's methods:
+
+{% highlight javascript %}
+var bigint = require('bigint');
+
+var b = bigint('782910138827292261791972728324982')
+ .sub('182373273283402171237474774728373')
+ .div(8);
+{% endhighlight %}
+
+
+Note that there's also a <code>destroy</code> method:
+
+bq. Destroy a bigint. This module is using node-ffi so I can't hook onto the GC easily. You only need to call this if you're creating bigints in a loop.
+
+Other methods include <code>rand</code>, <code>pow</code>, and more. This library can be installed with <code>npm install bigint</code>.
+
+I actually have some experience in working with arbitrary precision arithmetic from back in my university days -- I wrote a distributed fractal generator with various numerical libraries. In Ada... This sounds like a lot more fun!
+
+h3. Mingy
+
+I like writing CLI stuff, so I thought "Mingy":https://github.com/mcantelon/node-mingy by Mike Cantelon sounded pretty cool. He describes it as a "cheap and cheerful command parser/server for node.js", perfect for creating command-line tools, text adventure games, and even MUDs.
+
+It can run as a server (hence the MUD reference), copes with multiple users, includes validation support, and even has Expresso tests.
+
+h3. kyoto-client
+
+"kyoto-client":http://kyoto-client.org/ (GitHub: "wezm / kyoto-client":https://github.com/wezm/kyoto-client, BSD License) by Wesley Moore is a "Kyoto Tycoon":http://fallabs.com/kyototycoon/ client library. Kyoto Tycoon is a lightweight database server, from FAL Labs, who also created the older Tokyo Cabinet key value database.
+
+The kyoto-client module has some good documentation on the site and seems straightforward to use. It can be installed with <code>npm install kyoto-client</code>.
+
+h3. Blagovest's NPM Search
+
+!/images/posts/npm_search.png!
+
+"Blagovest's NPM Search":http://blago.dachev.com/modules by Blagovest Dachev is a convenient (and fast) way to browse npm. In fact, it's exactly the kind of thing I need to find things to write about for DailyJS. Thanks Blagovest!
+
+
View
BIN  images/posts/npm_search.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
21 tags.html
@@ -322,6 +322,10 @@ <h3 id="3d">3d</h3>
<div>08 Feb 2011</div>
<a href="/2011/02/08/jquery-roundup">jQuery Roundup: Isotope, Query, 1.5 Changes, File Upload</a>
</li>
+ <li>
+ <div>16 Feb 2011</div>
+ <a href="/2011/02/16/node-roundup">Node Roundup: bigint, mingy</a>
+ </li>
</ul> <h3 id="clojure">clojure</h3>
<ul class="posts"> <li>
<div>23 Nov 2009</div>
@@ -484,6 +488,10 @@ <h3 id="3d">3d</h3>
<div>03 Nov 2010</div>
<a href="/2010/11/03/node-roundup">Node Roundup</a>
</li>
+ <li>
+ <div>16 Feb 2011</div>
+ <a href="/2011/02/16/node-roundup">Node Roundup: bigint, mingy</a>
+ </li>
</ul> <h3 id="databases">databases</h3>
<ul class="posts"> <li>
<div>23 Jul 2010</div>
@@ -2455,6 +2463,11 @@ <h3 id="3d">3d</h3>
<div>26 Apr 2010</div>
<a href="/2010/04/26/mathext">MathExt</a>
</li>
+</ul> <h3 id="maths">maths</h3>
+<ul class="posts"> <li>
+ <div>16 Feb 2011</div>
+ <a href="/2011/02/16/node-roundup">Node Roundup: bigint, mingy</a>
+ </li>
</ul> <h3 id="meetups">meetups</h3>
<ul class="posts"> <li>
<div>15 Jan 2010</div>
@@ -2748,6 +2761,10 @@ <h3 id="3d">3d</h3>
<div>14 Feb 2011</div>
<a href="/2011/02/14/node-tutorial-13">Node Tutorial Part 13</a>
</li>
+ <li>
+ <div>16 Feb 2011</div>
+ <a href="/2011/02/16/node-roundup">Node Roundup: bigint, mingy</a>
+ </li>
</ul> <h3 id="nodejs">nodejs</h3>
<ul class="posts"> <li>
<div>11 Nov 2009</div>
@@ -3591,6 +3608,10 @@ <h3 id="3d">3d</h3>
<div>14 Feb 2011</div>
<a href="/2011/02/14/node-tutorial-13">Node Tutorial Part 13</a>
</li>
+ <li>
+ <div>16 Feb 2011</div>
+ <a href="/2011/02/16/node-roundup">Node Roundup: bigint, mingy</a>
+ </li>
</ul> <h3 id="services">services</h3>
<ul class="posts"> <li>
<div>07 Apr 2010</div>
Please sign in to comment.
Something went wrong with that request. Please try again.