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

2010-11-02:

[4:00] <Dantman> aagh... json-template again...
[14:55] <WesMac> It occurs to me that if a program module is loaded via she-bang that we should reference it by require("william-hung")
[14:57] <deanlandolt> ha!
[14:59] <WesMac> deanlandolt: Thanks for your email BTW, I'm now working out the same problems that hurt my brain yesterday
[18:04] <WesMac> deanlandolt: are you able to run a narwhal test for me?
[18:06] <deanlandolt> WesMac: sure
[18:07] <WesMac> deanlandolt: make a program module with "var a = 1" and then require a module from it. required module does print(a)
[18:07] <WesMac> deanlandolt: I want to know if the output is 1 or undefined
[18:07] <deanlandolt> gotcha...testing now
[18:09] <deanlandolt> WesMac: ReferenceError
[18:09] <WesMac> deanlandolt: That's great
[18:09] <WesMac> Narwhal implements a better scope chain than the spec mandates
[18:10] <WesMac> Anybody here running any other CommonJS platform that can run the same test for me?
[18:11] <deanlandolt> WesMac: i have them all installed at home
[18:11] <deanlandolt> (for some definition of all)
[18:12] <deanlandolt> but here at the office: ringo's also a ref error
[18:12] <deanlandolt> as is node
[18:12] <WesMac> That's awesome!
[20:28] <WesMac> Kris Kowal's email today was helpful
[20:28] <WesMac> deanlandolt: I think unwrapped primordial modules are a mistake
[20:29] <deanlandolt> WesMac: oh really?
[20:29] <WesMac> deanlandolt: Yeah. Wrapping them eliminates...all?... of the differences between primoridal and non-primordial modules
[20:29] <WesMac> but it means
[20:29] <WesMac> <script>
[20:30] <WesMac> module.declare([], function(r,e,m) {
[20:30] <WesMac> })
[20:30] <WesMac> </script>
[20:30] <WesMac> which, you know, ain't so bad
[20:30] <deanlandolt> i don't see how that's a problem, yeah
[20:30] <deanlandolt> i mean, if everything else is wrapped
[20:30] <WesMac> The best part is it is kicks off with dependencies!
[20:30] <deanlandolt> in fact, i kind of assumed that primordial modules /would/ be wrapped, just like everything else
[20:31] <WesMac> I originally did, then I had a hard time figuring out how to hang together the existence of a module object outside of an object
[20:31] <WesMac> er, outside of a module
[20:32] <WesMac> But I can just make theCommonJS environment provide it magically
[20:32] <WesMac> What do we do if we have two module.declare() 'primordial' modules in a web page?
[20:32] <deanlandolt> yeah, to me that's one of the big benefits to going /2.0...a well defined cjs env
[20:32] <WesMac> I'm thinking maybe we should merge them
[20:33] <deanlandolt> the same thing dojo.addOnLoad does, i imagine
[20:33] <deanlandolt> run one after the other
[20:33] <WesMac> all with the same module, require, exports
[20:34] <WesMac> module.id === null
[20:34] <deanlandolt> module.id === require.main === null?
[20:34] <WesMac> yeah
[20:34] <WesMac> (since you can't load it, it doesn't really have a module identifier)
[20:34] <WesMac> sort of an anonymous primordial module
[20:35] <WesMac> man this is a lot of work
[20:35] <deanlandolt> seems like it :-/
[20:36] <WesMac> specs are always hard work when you want rigor
[20:36] <WesMac> I've been hoping for like a year somebody else would write one :D
[20:37] <WesMac> On the plus side -- no pain!
[20:37] <WesMac> I can't wait for physio tommorow, need to thank the dude
[20:37] <deanlandolt> wow, that's impressive...one session?
[20:37] <WesMac> two
[20:38] <deanlandolt> my father's going in for surgery for that...hasn't even tried phisio...hmmm
[20:38] <WesMac> AND I spent like 12-15 hours last weekend banging on the piano
[20:38] <deanlandolt> err, physio
[20:38] <WesMac> deanlandolt: physio is a great option, it's cheap, MIGHT work (depending on pathology) and non-commital
[20:38] <WesMac> surgery is a big commitment
[20:39] <deanlandolt> yeah, i'll have to bring that up to him
[20:39] <WesMac> In my case the current guess is that my problem stems from nerve adhesions rather than strictly from a small carpal tunnel and cubital tunnel
[20:39] <WesMac> adhesions can be fixed with traction
[20:40] <WesMac> I've also good luck with symptomatic relief using acupuncture (many PTs do this now), as well as ultrasound with some kind of steroid gel
[20:41] <WesMac> But this is better than symptomatic relief, which are always just about getting you back to a baseline and being careful, I'm totally awesome shape this week
[20:41] <deanlandolt> that's great to hear
[20:41] <WesMac> And I don't play no Fur Elise on the piano, neither
[20:41] <WesMac> More like hours and hours of Jerry Lee kinda rock-and-roll
[20:41] <WesMac> VERY bad for carpal tunnel
[20:41] <deanlandolt> heh...yeah, that's about all i can muster :)
[20:42] <WesMac> deanlandolt: phalen's test, google it, give it to your dad
[20:42] <deanlandolt> cool, thanks WesMac
[20:42] <WesMac> deanlandolt: if it doesn't put his hands to sleep, he should really think twice about surgery
[20:42] <WesMac> (IMHO, IANAD, IANAPT, etc)
[20:42] <WesMac> sports medicine people are also good for this stuff
[20:43] <deanlandolt> yeah, i'm pretty sure he hasn't really given it too much thought, so this is good info
[20:43] <WesMac> hit me up any time. I've been living with this for awhile, not as serious as some folks, but still damn annoying
[20:43] <WesMac> I always think about Waylon Jennings
[20:43] <WesMac> His surgery ended his guitar-playing days
[20:44] <deanlandolt> oh? i always thought it was the massive drug use, but i guess that never hurt other musicians :)
[20:46] <WesMac> deanlandolt: You able to cope with Word docs okay, or PDF better? (I'm sending you another WIP)
[20:46] <deanlandolt> either...google doc ftw
[20:47] <WesMac> beauty. I know it's sacriledge in these parts, but I like word
[20:47] <WesMac> Word '97 at least
[20:47] <WesMac> I ain't much of one for paperclips or ribbon interfaces
[20:47] <WesMac> 'nor upgrading just because Bill says I should :)
[20:50] <deanlandolt> nothing wrong w/ ~15 year old software in my book (if there's not a *solid* web replacement...which i can't say google docs really is yet)
[20:51] <WesMac> Google Docs surprised me with it's Excel functionality, though
[20:51] <WesMac> Although I haven't tried it's chart wizard yet
[20:51] <WesMac> but it's formulae and foreign-sheet references, etc, I didn't really think would work.. but they work fine
[20:52] <deanlandolt> yeah, haven't had any trouble w/ google spreadsheets...in fact i was able to convert a few excel folks (and a few die hard lotus 123 folks)
[20:54] <deanlandolt> WesMac: no attachment :-/
[20:54] <WesMac> deanlandolt: :facepalm:
[20:55] <deanlandolt> heh...i forget the attachment ~ 50% of the time (i so rarely send attachments these days)
[20:56] <WesMac> I have a gmail extension that warns you if you send an email with phrases like "see attached" without an attachment, it helps quite a lot
[20:56] <WesMac> but is obviously not fool proof!
[20:56] <deanlandolt> awesome idea
[20:56] <WesMac> Okay, resent

 

 

Logs by date :