2008-03-25:
[0:20] <bslivka> Merry helmaday[0:22] <bslivka> oof, did I just break the hopbot log page rendering?[0:52] <v_thunder> bslivka: hey btw, I asked - there's no way to 'watch' a whole object[0:53] <v_thunder> bslivka: the only way to do that would be to standardize all your code to use some interface for adding/deleting properties, then you could hook into that[1:04] <bslivka> Right[1:04] <bslivka> A bit unweildy[1:05] <bslivka> that same day, an associate of mine showed me JSAdaptor, which is actually mentioned on helma's homepage[1:05] <bslivka> it's presumably to be included in some future version of helma[1:06] <bslivka> It basically allows one to do precisely that-[1:07] <bslivka> basically you create an object with a __get(name) function and a __set(name, value) function[1:07] <bslivka> then you do foo = new JSAdaptor(o)[1:07] <bslivka> and then foo delegates all the property sets and gets to those two functions in the original object[1:08] <bslivka> kinda slick[1:08] <v_thunder> yeah, just requires you to use a specific api[1:09] <bslivka> I'll have to have a look through ecmascript4, i'm curious if there's anything with that functionality planned in ec4[1:16] <bslivka> Language overview says yes[1:17] <bslivka> class D { meta function get(name) {}; meta function set(name, value) {} }[1:18] <bslivka> so once rhino implements ec4, helma won't even need jsadaptor[1:26] <bslivka> err es4 ratjer[5:50] <bslivka> anyone done comet with helma?[6:45] <bslivka> exit[6:53] * zumbrunn wonders what kind of comet bslivka wants to do[6:54] <zumbrunn> helma 1.x currently isn't using Jetty 6, so doesn't have its special comet features[6:55] <zumbrunn> but if you just mean long polling using script tags, I've been doing that[6:56] <zumbrunn> if you want the Jetty 6 functionality, you could play with the Helma 2 code, which uses Jetty 6[6:57] <zumbrunn> I haven't done any comet stuff with that yet[8:47] <zumbrunn> btw, JSAdapter is in the current svn version of helma[8:47] <zumbrunn> and jhino contains a version of rhino with JOMP[8:48] <zumbrunn> http://dev.helma.org/wiki/Comparison+of+JSAdapter+and+JOMP/[8:48] <zumbrunn> http://code.google.com/p/e4xd/downloads/list[8:51] <zumbrunn> v_thunder, in a sense, the hobj.onPersist method also allows you to "watch" a hopobject[8:51] <zumbrunn> depends what you are looking for exactly[19:53] <v_thunder> zumbrunn: yeah, it was more of a general js question[19:53] <v_thunder> zumbrunn: but thanks for the links :)
In the channel now:
Logs by date: