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

2010-07-15:

[4:00] <Dantman> @_@ Gahhhh... I wish I knew this kind of information some time ago...
[4:03] * Dantman wonders if there's some way to use ssh keys or something with phpmyadmin in a way similar to an idea he's thinking of
[10:58] <Dantman> Hmmm.... Pound+Varnish+PyWebDav/custom+fuse... sounds like a good replacement for ftp
[11:31] <Dantman> Ah crap, right... Firefox with all my extensions is a universal memory hog.... but Chrome has a high per-tab overhead approaching the memory slowdown my 50~ extensions cause... ack
[17:03] <nrstott> Got an ECMAScript question... in node if create an empty function like var ctor = function() {} then do ctor.constructor = function() { this.a = 1; } then do Object.create(ctor), i get an obj where obj.a == 1. In narwhal, i get an error... is the constructor supposed to be invoked by Object.create?
[17:06] <wes-laptop> nrstott: I don't know the answer, but I bet #jslang on irc.mozilla.org does. But you might have to wait a loooon
[17:06] <wes-laptop> g time for an answer
[17:06] <nrstott> where can I look this up? resigs blog has exmaple implenetations of Object.create and they do not invoke the constructor
[17:07] <wes-laptop> ecmascript.org, but the ES5 spec is really dry reading
[17:09] <wes-laptop> WesMac-office:~ wes$ gsr -c ' var ctor = function() {}; ctor.constructor = function() { this.a = 1; }; print(Object.create(ctor).a)'
[17:09] <wes-laptop> JS strict warning #162 in command_line at line 1 - reference to undefined property Object.create(ctor).a
[17:09] <wes-laptop> undefined
[17:09] <wes-laptop> WesMac-office:~ wes$
[17:09] <wes-laptop> nrstott ^^^^
[17:09] <wes-laptop> output on gpsee built against bleeding edge tracemonkey
[17:10] <wes-laptop> wierd thing is, it creates an object which seems to have no toString method either
[17:12] <nrstott> odd
[17:12] <nrstott> i have a feeling nodes implementation is non-standard
[17:12] <wes-laptop> fwiw, tracemonkey's es5 is not finished, but it's definitely "getting there"
[17:12] <nrstott> in narhwal the no toString() thing also happens
[17:13] <nrstott> narwhal using rhino as engine
[17:13] * wes-laptop nods
[17:14] <nrstott> line 1 of the spec: 1.
[17:14] <nrstott> If Type(O) is not Object or Null throw a TypeError exception.
[17:14] <nrstott> so really it should be throwing a TypeError
[17:15] <wes-laptop> I don't understand, what's not an object?
[17:21] <nrstott> the first arugment to Object.create
[17:23] <nrstott> hm, apparently webkit does something more like what node is doing
[17:23] <nrstott> i think tis actually v8 not node
[17:33] <nrstott> in this thread, it not working is considerd a 'bug'... so maybe im misreading the spec: http://groups.google.com/group/v8-users/browse_thread/thread/d337781178d527df/985ff1dc69d3b951?lnk=raot
[18:04] <sh1mmer> /msg kriszyp
[18:04] <kriszyp> hi sh1mmer
[18:04] <sh1mmer> I think I insert a space with my fat fingers
[18:04] <sh1mmer> :)
[18:04] <kriszyp> was that supposed to be pm?
[18:05] <sh1mmer> I just sent you one
[22:34] <sh1mmer> kriszyp: did you see this? http://dirtsimple.org/2007/02/wsgi-middleware-considered-harmful.html
[22:40] <deanlandolt> sh1mmer: did you notice that pjeby's suggested approach for wsgi 2.0 looks an awful lot like jsgi? :)
[22:41] <sh1mmer> deanlandolt: yeah I did
[22:41] <deanlandolt> (without the beneficial sugar of a hash for headers)
[22:41] <sh1mmer> which is why I thought it was interesting
[22:59] <mikeal> i used to work with pje
[22:59] <mikeal> it's best not to listen to him most of the time, unless you need a self help guru

 

 

Logs by date :