[1:45]<JohnnyL> I'll bet there is an easy way to implement types in js using js. [1:45]<JohnnyL> like passing around json objects and comparing a certain prop. [23:35]<kriskowal> ashb did you get this? http://wiki.commonjs.org/wiki/Modules/Loaders/B [23:36]<ashb> kriskowal: say email [23:36]<ashb> not looked in any more detail [23:36]<ashb> trying to get DOM module done [23:36]<kriskowal> aye. working on multi-catalog support [23:37]<kriskowal> as a stopgap [23:37]<ashb> i want to get sizzle bound [23:37]<kriskowal> i have a fork of sizzle so it can be included in jquery without reference errors. [23:37]<ashb> cos that opens up lots of interesting possibiliites [23:37]<kriskowal> yes. [23:38]<kriskowal> you'll prolly have to recraft it so that sizzle can be instantiated with a document instead of just using the ambient one [23:38]<kriskowal> that might even be easy. [23:38]<ashb> mmm yeah [23:38]<ashb> shouldn't be to ohard [23:38]<ashb> and i imagine JohnResi1 will take that kinda of patch [23:39]<kriskowal> i have three selector engines in old-chiron. we should probably come up with a standard interface spec so they can be easily swapped [23:39]<kriskowal> i've been thinking more about creating module interface standards, for swappable module objects. [23:40]<ashb> aslong the lines of perl's AnyEvent? [23:40]<ashb> if so isn't that very specific to the module(s) you are wrapping? [23:40]<kriskowal> e.g., require(x).Select(document).select(css), require(x).encode/decode, require(x).hash, require(x).Digest().update().update().toString() [23:41]<kriskowal> yeah, standard interfaces for modules that do similar things [23:42]<ashb> thats probably just a case of some unit tests isn't it? [23:42]<ashb> doesn't need a full CJS proposal? [23:42]<kriskowal> like, JSON, base64, base32, gzip, and others would have encode/decode [23:43]<ashb> JSON as it's spect has parse and stringify [23:43]<kriskowal> well, we could just leave it as a clever exercise for module design [23:43]<ashb> byt i can see an arguemtn for adding extra names [23:43]<kriskowal> JSON, i believe, also supports encode/decode [23:43]<kriskowal> not sure? [23:43]<ashb> lemme check [23:43]<kriskowal> in python, the pickle and simplejson modules both implement loads/dumps in a similar fashion [23:44]<ashb> neither spidermonkey's JSON builtin nor the json2.js have encode [23:46]<ashb> hmmm now that i've done the hard part of setting up the gorund work to get === constraints working, flusspferd makes the rest of this easy :) [23:47]<ashb> (i.e. working out how to always get the same JS object for the underlying Node object)