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

2010-10-17:

[0:00] <Wes-> deanlandolt: Something you may or may not care about: in conformant implmentations of Binary/B, ByteStrings and ByteArrays are both instances of Binary
[0:34] * Dantman skims through unread messages on the mailing list and decides to finally start ignoring most discussions on the list besides wiki related stuff...
[9:55] <ayalz> ondras: hello!
[10:16] <ayalz> does anyone have any idea what happens on v8cgi (windows, apache) when a request hangs and another request comes in?
[10:33] <ondras> ayalz: apache uses another child (process) to handle it
[10:34] <ondras> that's why v8cgi works only with "prefork" apache mpm; not with the threaded "worker" mpm.
[10:34] <ondras> (afk now again)
[10:59] <ayalz> ondras: thanks! will apache spawn those processes asyncly or synchly?
[12:30] <Wes-> deanlandolt: Hey, I just bumped into a probable problem -- that change I made for you yesterday may have not have caused everything to get rebuilt properly. My build system is different than yours, but very similar. In my case I was experiencing inexplicable crashes in some of my native modules. Solution is make clean build && sudo make install
[12:34] <Wes-> deanlandolt: Or, hm - would you mind telling me if you have a gpsee/modules/system/depend.mk file? Looking at the code, I think the FOSS build system might actually be correct, and it's just the proprietary one that is buggy.
[12:51] <Wes-> deanlandolt: BTW, what did you do for an assert module with GPSEE? Did you just scoop from narwhal without issue?
[12:56] <Wes-> Okay, I've downloaded Jack from kriszyp's repo. I'm confused about what exactly needs to be "installed" to make this go, so that I can start porting.
[12:56] <Wes-> What happens when you use narwhal? Does narwhal include it's own webserver?
[12:56] <Wes-> And does narwhal know how to "make install" based on package.json?
[13:02] <Wes-> Okay, so right off the bat, it looks like jackup needs to be a module on the main module path
[13:02] <Wes-> This is a CommonJS idiom problem I'm not super happy with
[13:03] <Wes-> It reminds me of how every DOS program used to want to run from C:\
[13:04] <Wes-> Do you guys normally keep 'jackup' on your UNIX PATH? Is that why it can't use a relative module path?
[13:05] <Wes-> And what is the system free variable? Is that a narwhalism for require("system") ?
[14:11] <Wes-> deanlandolt: //gpsee: -C will now suppress compiler disk cache
[15:08] <ashb> Wes-: you should maybe look at what ruby gem scripts to
[15:09] <ashb> http://pastie.org/1227776
[15:09] <ashb> which is it basicaly installs a stub in that proxies off to the real one
[16:00] <Craig`> hey guys.
[16:01] <Craig`> i was wondering if there were any libraries for mouse/keyboard emulation outside the browser in development
[16:06] <Wes-> ashb: That's a good idea -- thanks
[16:06] <Wes-> ashb: Do the stubs require extra boilerplate, is it auto-handled by the ruby interpreter?
[16:06] <Wes-> Craig`: can you define your problem space more clearly?
[16:07] <Wes-> ashb: Did you see the message I posted to the list a few hours ago?
[16:07] <Craig`> i'm wanting a javascript library for mouse and keyboard emulation, basically so that i can use javascript to simulate key presses and move the cursor on the screen, for projects like game emulation, although i highly doubt there'll be any.
[16:17] <Craig`> Wes-, any thoughts?
[16:22] <ashb> Wes-: handled by the installer
[16:22] <ashb> (`gem`)
[18:12] <deanlandolt> Wes: hey, sorry, just getting my head back together after a ridiculous bachelor party last night :)
[18:13] <deanlandolt> reading the backlog now
[18:13] <deanlandolt> Wes: re: things throwing and disappearing, it's most likely node's assert (i used that instead of narwhal's because it was just easier to do dependency-free...still have to harden it and make sure there are no nodeisms in it)
[18:16] <deanlandolt> jack includes its own webservers (any number)...there are multiple handlers
[18:16] <deanlandolt> narwhal does a lot of magic based on package.json..magic i've never fully understood (nor does kriszyp, and if kriszyp doesn't understand it there's very little hope i can :))
[18:18] <deanlandolt> but WRT using jackup, i usually use it via windows (it's for a work project) but i always invoke it w/ a batch file from my proj
[18:18] <deanlandolt> require("system") seems to exist in a lot of places...i think it may have a spec somewhere
[18:20] <deanlandolt> Wes: on a related note, i'll be pushing my code to github by the end of the weekend...i still don't have much of a test suite but i've been instead focused on the doc side of things (a first for me)...but i'm /really/ happy with the very basic, clean binary interface hierarchy that's shaken out of it all
[18:21] <deanlandolt> i'll throw it at the list soon but the general idea is you have IBinary, just requiring String.prototype.getBytes, IBinary.prototype.get and IBinary.prototype.toString
[18:21] <deanlandolt> (and IBinary isn't an actual class, obviously...the classes are just whatever's the best object for the job in the host runtimg)
[18:23] <deanlandolt> then there's IMutableBinary -- doesn't say anything about length mutability, just requires IMutableBinary.set (leaning toward set over put because of all the prior art: some Binary/B implementations use it, node uses it, and javascript uses it w/ get/set
[18:24] <deanlandolt> then there's IMutableLengthBinary which just defined IMutableLengthBinary.prototype.length[[Put]]
[18:25] <deanlandolt> w/ IMutableLengthBinary you can implement IByteArray (i'm not defining it, though Binary/B already did)
[18:26] <deanlandolt> and of course the other thing that extends IMutableBinary is ISubsettableBinary -- so this let's you do what Buffer from node and Binary/F does
[18:26] <deanlandolt> just requires ISubsettableBinary.prototype.subset (based on the suggestion in the webgl typed arrays spec notes)
[18:27] <deanlandolt> so i'm angling for a modular, layered spec approach...something we haven't really tried yet AFAIK

 

 

Logs by date :