Mochabot log - CommonJS IRC channel: #commonjs on irc.freenode.net

2010-01-16:

[1:17] <SubtleGradient> is there anything like env.js that works in node.js?
[1:17] <ashb> try asking in #node.js :P
[1:17] <SubtleGradient> ahh, smart ;)
[8:47] <tlrobinson1> i wish CJS packages allowed tusk's "Tom Robinson (http://tlrobinson.net/) <tom@280north.com>" syntax
[8:47] <tlrobinson1> having to enumerate each property name is verbose :-/
[9:06] <MisterN> tlrobinson1: less parsing is good
[9:31] <tlrobinson1> meh
[9:32] <MisterN> tlrobinson1: people tend to get parsing wrong :)
[9:32] <tlrobinson1> Mister_X]]: then why not supply the one line regex to do it for thme
[9:33] <MisterN> tlrobinson1: you remember all the broken XML parsers based on regexes? that would for example only accept "XML" where each tag is on a line
[9:33] <tlrobinson1> that's hardly comparable
[9:34] <MisterN> it's likely that even the supplied regex would be buggy :P
[19:18] * Dantman should probably resist the urge to write another scorched earth clone in JS.
[19:48] <ondras> Wes--: so from now on, v8cgi supports hybrid modules
[19:49] <ashb> ondras: require('foo') will load the .so/.dylib and the .js in one?
[19:50] <ondras> yeah
[19:50] <ondras> .so actually, even on mac
[19:50] <ashb> .so first?
[19:51] <ondras> yes
[19:52] <ondras> so nothing apart from my own laziness stops me from implementing binary/b
[19:54] <ashb> thats the same way hippo behaves too
[19:54] <ondras> yes, I heard that
[19:54] <ondras> it looks most useful
[19:56] <ondras> so
[19:57] <ondras> .so/.dylib/.dll now supported
[19:57] * Dantman wonders how 2d destructible earth calculations are usually done.
[20:04] <evilstreak> Dantman: empirically, with dynamite and a tape measure
[20:04] <Dantman> lol
[20:05] <Dantman> vertical line based would probably work.
[20:09] <Dantman> anyone else been tempted?
[20:09] * ondras is happy working on his roguelike :)
[20:17] <cpojer> ondras: would you mind showing me an example on how to use a .so in v8cgi? I'm interested
[20:19] <ondras> cpojer: don't get me wrong - I am talking about .so modules, not arbitrary .so libraries
[20:19] <ondras> cpojer: many v8cgi modules are in .so files - process, mysql, gd, pgsql, sockets....
[20:21] <cpojer> colloquy is just going crazy
[20:22] <cpojer> ondras: ah I see
[20:23] <cpojer> ondras: you can only use .so files that are specifically created for v8/v8cgi, right?
[20:23] <ondras> exactly
[20:23] <cpojer> right :)
[20:30] <jmerlin> they need a special export, also, it's quite easy
[20:30] <jmerlin> require('.....so');
[20:32] <ondras> no
[20:32] <ondras> extensions are not specified in require
[20:33] <ondras> detch, goodnite
[20:34] <ondras> *detach
[21:19] <Dantman> Hmmm.. background gradients
[21:24] <Dantman> Oh well, I won't work on any fancy server-side transformations for that yet.
[22:44] <tlrobinson> do we have a convention for naming packages ending with "js", i.e. foo.js or foojs?
[22:53] <ashb> such as?
[22:56] <tlrobinson> i mean do people prefer with or without the .
[22:56] <evilstreak> I named one markdown-js
[22:57] <tlrobinson> oh, great, another option ;)
[22:57] <tlrobinson> http://github.com/cloudhead/eyes.js
[22:57] <tlrobinson> http://github.com/tlrobinson/browserjs
[22:57] <Dantman> I'd just name that markdown myself
[22:58] <tlrobinson> i don't like using the generic names for javascript specific implementations
[22:58] <ashb> Dantman: as a package yes, but on github the -js suffix is more useful
[22:58] <tlrobinson> we should probably have some guidelines
[23:01] <tlrobinson> really generic names like "browser" or "env" don't really make sense on their own
[23:03] <tlrobinson> established formats/protocols/etc like markdown or zip should have the modules named as such, but perhaps not the package and IMO definitely not the source repo
[23:06] <ashb> i've kinda been thinking of a central repo/registry of user ids
[23:06] <ashb> then the package 'name' is evilstreak/markdown
[23:08] <ashb> tho at other times i favour just a flag package space
[23:08] <ashb> f;at
[23:08] <ashb> you know what i mean
[23:10] <MisterN> tlrobinson: how about the wonderfull suffix forcommonjs
[23:10] <MisterN> markdownforcommonjs <- wonderful name
[23:11] <evilstreak> MisterN: +1

 

 

Logs by date :