2007-03-28:
[19:03] <hns> Guten Abend![19:18] * zumbrunn is eating dinner[20:38] <hns> http://grazia.helma.at/pipermail/helma-dev/2007-March/003395.html[20:38] <hns> feature complete! :-)[20:59] <earl> wennma jez mitm handle noch blocken koennte bis das result da ist ... :)[21:32] * zumbrunn is confused about rhino threads/evaluators/context/scopes[21:33] <zumbrunn> does app.invoke run the function just in a different thread?[21:34] <zumbrunn> but then what would be the point of that, if it waits for the result[21:34] <zumbrunn> so there has to be more to it[21:34] <zumbrunn> a different context?[21:48] <hns> It runs with a different context, too, but that's controlled by helma :-)[21:48] <hns> the benefit for app.invoke() is the timeout. I agree app.invokeAsync() is more exciting.[21:51] <hns> earl: was wär der use case (im verbleich zum synchronen invoke())?[21:56] <earl> futures[21:56] <hns> chris: jeder thread ist in rhino mit einem context assoziiert.[21:56] <earl> aber wohl recht teure :)[21:57] <hns> naja, nimmer so schlimm, würd ich sagen![21:57] <earl> 1 thread pro invokeAsync?[21:57] <hns> ok ok....[21:58] <earl> war eine echte frage, keine rhethorische :)[21:58] <hns> 2 threads: einer wartet, der andere tut.[21:59] <earl> ah, oki[21:59] <hns> ist ein bissl altertümlich, aber funktioniert gut[21:59] <earl> use case waer viele sachen mal invoken, und dann wenn ich das ergebnis wirklich brauche, zu force()-en[22:00] <earl> (zB)[22:02] <hns> Wäre nicht schwierig, müsste nur handle als java classe schreiben (ist derzeit eine map, die als js-objekt gewrappt wird)[22:03] <hns> force() heisst warten/blocken?[22:03] <earl> jup, is aber terminologie vor einem potentiell anderen hintergrund[22:04] <earl> (futures)[22:06] <earl> wo eine future im wesentlichen ein "result yet to be computed" ist[22:06] <earl> also eine reference auf das potentielle ergebnis einer computation[22:06] <hns> ok[22:06] <earl> und da is force() dann zum expliziten berechnen des ergebnisses recht naheliegend[22:06] <hns> noja... man haltet sich halt an das, was man schon gewohnt ist :-)[22:06] <hns> chris: du hast in deinem invokenden thread einen eigenen context, mit dem du alles anstellen kannst.[22:07] <hns> kannst also classshutter installaieren, wasimmer.. der wird danach weggeschmissen.[22:07] <hns> und invoke eine function uebergeben, die zuerst die security raufschraubt, dann den untrusted code ausführt.[22:08] <hns> eventuell also (auch) ein feature fuer dich :-)[22:08] <hns> earl: das mit dem force() lass ich mir noch durch den kopf gehen[22:09] <earl> hns: is nicht so wild. while(!result) sleep is auch schnell selber gebaut[22:09] <hns> ja, vielleicht einfacher und mehr js-like[22:11] <hns> ich leg mich jetzt hin, gute nacht!
In the channel now:
Logs by date: