Logs for the RingoJS IRC channel, as logged by ringostarr.

2010-06-02

[10:36] <hannesw> cleaned up roadmap

[10:53] <hannesw> rist, how's your little ringo app going?

[10:53] <rist> hi

[10:53] <hannesw> hi

[10:53] <rist> just in the process of building a mongodb storage layer

[10:54] <hannesw> i really value first impressions, even more with the helma background, that's why i'm asking

[10:54] <hannesw> :)

[10:54] <hannesw> did you use sergi's narwhal mongodb package?

[10:54] <hannesw> http://github.com/sergi/narwhal-mongodb

[10:55] <hannesw> i tried to, but didn't have much luck

[10:55] <hannesw> but it might be better than starting from scratch

[10:58] <rist> yes i'm basically using the berkely package and replace the berkely stuff with mongodb stuff

[10:59] <hannesw> oh wow, interesting approach :)

[10:59] <rist> mm - but the easiest way for me

[11:00] <rist> this way I see what methods I have to implement and how they are interconnected

[11:00] <hannesw> don't get me wrong, i think it's a great approach

[11:00] <hannesw> i'm very interested in what comes out of that

[11:01] <hannesw> let me know if you need help with it

[11:05] <rist> i'm alreday able to store objects - so let's see how it works out

[11:06] <hannesw> cool - consider sharing the code on github if your employer allows you to :)

[11:10] <gmosx> hey?

[11:10] <gmosx> hannesw: I use this to convert a Java Date to a JavaScript Date:

[11:10] <gmosx> return new Date(value.getTime());

[11:11] <gmosx> is this not required in Ringo?

[11:11] <gmosx> ie Ringo also auto converts Dates?

[11:11] <hannesw> i think ringo does not automatically convert dates - let me check

[11:12] <gmosx> most probably not, because new Date(value.getTime()); works :(

[11:12] <hannesw> no, you have to manually convert dates

[11:12] <gmosx> ok, thanks

[12:17] <hannesw> i extended the /philosophy page quite a bit

[12:17] <hannesw> http://ringojs.org/wiki/Philosophy/

[12:17] <hannesw> is it too long now?

[12:17] <hannesw> i think what we previously had there (now under "random links") did not really merit the title "philosophy"

[12:33] <robi42> i think it's a great step towards positioning ringo

[12:34] <gmosx> nice text yeah...

[12:34] <gmosx> hannesw: when you find time watch this: http://www.youtube.com/watch?v=vm-RdH_eWK4

[12:35] <hannesw> i will!

[12:35] <oberhamsi> hannesw, very nice!

[12:35] <gmosx> there are some tips how the grails and jruby guys improved performance on Appengine... perhaps

[12:35] <hannesw> off for lunch now

[12:35] <gmosx> you can make some changes in rhino as well...

[13:27] <hannesw> just applied to appengine channel api access

[13:50] <hannesw> any github ribbon fans out there?

[13:50] <hannesw> http://github.com/blog/273-github-ribbons

[13:50] <hannesw> should we add one on ringojs?

[13:50] <hannesw> .org

[13:56] <oberhamsi> i like it for the one-click-to-github

[13:57] <oberhamsi> maybe remove the Code page & menuitem and just add ribbon

[14:07] <robi42> +1 for adding a github ribbon :)

[14:08] <hannesw> ok, i'll see if it fits without moving logo/menu

[15:00] <hannesw> ok, github ribbon is up

[15:00] <hannesw> http://ringojs.org/wiki/

[15:01] <hannesw> i went with green right corner after careful evaluation

[15:20] <hannesw> earl do you want help deploying ringobot on ringojs.org?

[15:20] <hannesw> i could help

[15:20] <hannesw> just let me know

[15:20] <hannesw> (eager to get it running, and maybe do some further site integration)

[16:19] <gmosx> the ribbon is cool...

[16:33] <gmosx> hannesw: can we have a version of ringo-admin install that installs the package in the current working directory instead of ringo/packages? that would be useful in servlet deployments that include the pacakages dir in WEB-INF

[16:55] <rist_> i'm currently trying to implement a mongodbstore and to do that I kind of hack around in the berkelydbstore - and just found out (the hard way) that I should implement my own getProperties() method - and placed it (e.g. like in the googlestore) as a function at the bottom of the js file but I still get "java.lang.RuntimeException: Store does not implement 'getProperties' method"

[16:55] <rist_> am I missing anything

[17:02] <earl> googlestore does some trickery

[17:02] <earl> afaict, you have to ensure that getProperties is available as method of your "Entity"

[17:03] <earl> see googlestore.js:31 (and :12) for the trickery i

[17:03] <earl> am talking about

[17:04] <earl> that basically means, that all module-level functions of googlestore are available as methods on the entity proxy

[17:05] <robi42> rist_, are you sure you've got an appropriate `defineEntity` impl.?

[17:05] <rist_> ok

[17:05] <rist_> I have this one (take from berkelydb)

[17:05] <rist_> this.defineEntity = function(type) {

[17:05] <rist_> var ctor = registry[type];

[17:05] <rist_> if (!ctor) {

[17:05] <rist_> ctor = registry[type] = Storable.defineEntity(proxy, type);

[17:05] <rist_> ctor.all = bindArguments(all, type);

[17:05] <rist_> ctor.get = bindArguments(get, type);

[17:05] <rist_> ctor.query = bindArguments(query, type);

[17:05] <rist_> }

[17:05] <rist_> return ctor;

[17:05] <rist_> };

[17:05] <earl> and proxy has a getProperties?

[17:06] <robi42> btw, proxy's the store there, so to speak

[17:06] <robi42> see http://ringojs.at/wiki/Store_API/

[17:07] <rist_> ah ok - now my getProperties method gets called

[17:08] <robi42> great

[17:10] <earl> hannesw_: i'll get back to you tomorrow, re deploying ringobot

[17:10] <earl> hannesw_: no time atm :)

[20:54] <jfranklin> Are there any known issues trying to set up ringoJS using Maven on a windows box?

[20:57] <robi42> jfranklin, building ringojs using maven should be basically fine (fyi: we're using a patched rhino)

[21:01] <jfranklin> which version of Rhino are you using? Did you patch it?

[21:02] <robi42> it's basically a cvs head version patched by us

[21:11] <jfranklin> alright, thanks.

[21:11] <hannesw> robi42 jfranklin it isn't patched

[21:11] <hannesw> just cvs head snapshot

[21:11] <hannesw> we used to have patches, not anymore

[21:11] <robi42> ah, even better :)

[21:12] <hannesw> indeed

[21:12] <jfranklin> and it has no known problems running on windows?

[21:12] <jfranklin> ok, thanks very much.

[21:13] <hannesw> it may get less testing on windows than on other platforms

[21:13] <hannesw> but it should basically be working

[21:14] <jfranklin> ok

[21:18] <hannesw> ringobot is cool

[21:20] <hannesw> i think i'm gonna write a comet extension so new messages are streamed to the bot log page

[21:20] <hannesw> or some such nonsense :)

[21:28] <robi42> +++1 :)