Message from discussion
Feature Request: Managed Objects
Received: by 10.216.29.134 with SMTP id i6mr226088wea.9.1292795783770;
Sun, 19 Dec 2010 13:56:23 -0800 (PST)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.216.208.4 with SMTP id p4ls2810897weo.2.p; Sun, 19 Dec 2010
13:56:16 -0800 (PST)
Received: by 10.216.19.139 with SMTP id n11mr223654wen.6.1292795776294;
Sun, 19 Dec 2010 13:56:16 -0800 (PST)
Received: by 10.216.19.139 with SMTP id n11mr223653wen.6.1292795776246;
Sun, 19 Dec 2010 13:56:16 -0800 (PST)
Return-Path: <jacob.rothst...@gmail.com>
Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54])
by gmr-mx.google.com with ESMTP id a52si315744wer.8.2010.12.19.13.56.15;
Sun, 19 Dec 2010 13:56:15 -0800 (PST)
Received-SPF: pass (google.com: domain of jacob.rothst...@gmail.com designates 74.125.82.54 as permitted sender) client-ip=74.125.82.54;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jacob.rothst...@gmail.com designates 74.125.82.54 as permitted sender) smtp.mail=jacob.rothst...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by wwb31 with SMTP id 31so2244061wwb.35
for <nodejs@googlegroups.com>; Sun, 19 Dec 2010 13:56:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:mime-version:received:in-reply-to
:references:from:date:message-id:subject:to:content-type
:content-transfer-encoding;
bh=TS2mU73NIyKrlazaC4vBI79hmKzQGpTdNrNyKd6kZlY=;
b=QQQfknmNJOj6qrI4ZACUSyAZ441NB8CPDcIIyks2eyKtB1DKdwgkd1osN9QrCYZ2nR
jH1texN/GjWMXTGe/MjRmlAViBRTqh2taY7rPVe8W3aB7Dx+UXUqR/9yaLTIqWbn7B93
Og8sExxHP1tW2lBDU5WuxiyTiV2+7I4nq/ZPE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type:content-transfer-encoding;
b=Cu/C/lT60xlTbW8QSWGmi1wrvlbzv2N/i889cpOTnDK8LjKhlRQHSyw2KVUEiNPWLY
CY9xxxgCat2uWODdibk23UliHVvSV4OZHNigv8i6psq6yKnqeKqOIEVSxDFln/oVKHHA
Qgi+tKtrqmD7sdDSdg9uoZKMi5Ud1UQ7pHAO0=
Received: by 10.227.157.207 with SMTP id c15mr2172318wbx.32.1292795775043;
Sun, 19 Dec 2010 13:56:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.227.59.17 with HTTP; Sun, 19 Dec 2010 13:55:33 -0800 (PST)
In-Reply-To: <c20e2222-4daf-429f-8514-98fa57fa6...@w17g2000yqh.googlegroups.com>
References: <b593565f-f3ae-4202-aaec-24a536a03...@l24g2000vby.googlegroups.com>
<922cbe6c-e951-4307-8a38-168e688de...@q18g2000vbm.googlegroups.com>
<20726C81-1691-4C16-A134-AED89E9EE...@gmail.com> <AANLkTimPh=Moq-rmaDsFFos3r+bd3=62TumE3g5wD...@mail.gmail.com>
<AANLkTi=OrQWTP+F7UNGDj1YDQq_inQqNvmTBkrAGk...@mail.gmail.com> <c20e2222-4daf-429f-8514-98fa57fa6...@w17g2000yqh.googlegroups.com>
From: Jacob Rothstein <jacob.rothst...@gmail.com>
Date: Sun, 19 Dec 2010 13:55:33 -0800
Message-ID: <AANLkTinvHfGc83YoZrWOG3nEZarhK3+5XA8psx_wx...@mail.gmail.com>
Subject: Re: [nodejs] Re: Feature Request: Managed Objects
To: nodejs@googlegroups.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hunh. It seems brickysam26 left github. You can still `npm install
node-proxy`.
=E2=80=93Jacob
On Sun, Dec 19, 2010 at 3:27 AM, Olly <oliver.mor...@hppc.co.uk> wrote:
> Hi Jacob,
>
> That URL doesn't work.
>
> On Dec 19, 12:31=C2=A0am, Jacob Rothstein <jacob.rothst...@gmail.com>
> wrote:
>> I don't know if the author announced it anywhere, buthttps://github.com/=
brickysam26/node-proxyis an implementation of the
>> harmony proxy stick man for node.
>>
>> =E2=80=93Jacob
>>
>>
>>
>> On Fri, Dec 17, 2010 at 12:40 PM, Isaac Schlueter <i...@izs.me> wrote:
>> > No, getter/setter properties cannot provide this.
>>
>> > What he's asking for is a generic "any time I write or read any random
>> > property, run this code" kind of thing. =C2=A0That's proxies. =C2=A0Yo=
u can't do
>> > that with Object.defineProperty, because you don't know what
>> > properties you're going to be defining ahead of time.
>>
>> > It is my sincere hope that such a thing never makes it into JavaScript
>> > proper. =C2=A0You can, of course, implement it as a userland module if=
you
>> > do some C++ hacking, and the programs that use it will likely not be
>> > portable to any other platform. =C2=A0But, your ORMs and such can be r=
eally
>> > cool.
>>
>> > I investigated doing something like this as a way to have an object
>> > that looks just like a regular object, but in fact saves all its data
>> > to a redis or couchdb datastore. =C2=A0I abandoned it eventually, in f=
avor
>> > of explicit .get(k) and .set(k,v) functions because:
>>
>> > 1. it's not so bad.
>> > 2. o.set("foo", "bar") looks like it's calling a function.
>> > 3. o.foo =3D "bar" doesn't look like it's calling a function.
>> > 4. code should look like what it is.
>>
>> > I'm ok with mild to moderate use of getter/setters. =C2=A0But proxies =
go
>> > too far, imo, and this kind of thing is what has ruined ruby. =C2=A0Th=
at's
>> > my esthetic preference, YMMV.
>>
>> > If you DO implement such a thing, I'd recommend sticking to the
>> > Harmony Proxies API strawman. =C2=A0Some thought and planning has gone=
into
>> > it, and it's somewhat well known.
>>
>> > --i
>>
>> > --
>> > You received this message because you are subscribed to the Google Gro=
ups "nodejs" group.
>> > To post to this group, send email to nodejs@googlegroups.com.
>> > To unsubscribe from this group, send email to nodejs+unsubscribe@googl=
egroups.com.
>> > For more options, visit this group athttp://groups.google.com/group/no=
dejs?hl=3Den.
>
> --
> You received this message because you are subscribed to the Google Groups=
"nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+unsubscribe@googlegr=
oups.com.
> For more options, visit this group at http://groups.google.com/group/node=
js?hl=3Den.
>
>