Re: [gwt-contrib] Phasing in a new, unified linker

2010-07-29 Thread Matt Mastracci
On 2010-07-26, at 4:56 PM, John Tamplin wrote: Is the new linker designed to curtail extension, or to sanely encourage it? The existing primary linkers ended up getting extended in brittle ways. That's a good point. Let's make it a final class to start with, and open up extension points

[gwt-contrib] Re: Adds a new CrossSiteIframeLinker. This linker works cross-site, (issue726802)

2010-07-29 Thread Matt Mastracci
[manually forwarding to list due to subscription bug...] Wow, this looks great. This is exactly what I had imagined. Once dev mode is in place we should be able to switch dotspots over to this from our current custom linker. I was looking through the latest SelectionScriptLinker in trunk and

[gwt-contrib] GPE JSNI formatting issues

2010-04-02 Thread Matt Mastracci
Hey all, I've been fighting this JSNI formatting bug for a while now. The Google Plugin for Eclipse is basically flattening the indents on all my JSNI methods when using the format command. With the 'format on save' option chosen in Eclipse, it unformats all the JSNI in the file after a save

[gwt-contrib] Re: GPE JSNI formatting issues

2010-04-02 Thread Matt Mastracci
. I had to paste the entire contents of an ancient version of Douglas Crockford's JSON library into a JSNI function earlier today as part of a unit test and I ended up with a few hundred lines of unindented circa-2005 Javascript after saving. :) On 2010-04-02, at 10:13 AM, Matt Mastracci wrote

Re: [gwt-contrib] Proposal for including easyXDM as a new cross-domain Transport/RPC

2010-03-22 Thread Matt Mastracci
Quickly browsing easyXDM and comparing to gwt-rpc-plus, it looks like the designs of both are very similar. easyXDM uses the term 'socket' where gwt-rpc-plus uses the term 'transport'. Both of them allow you to plug in the appropriate transport behind a socket-like interface. easyXDM adds some

Re: [gwt-contrib] IE9 preview support ?

2010-03-21 Thread Matt Mastracci
I'm seeing the same thing in our application. I haven't had time to dig into it, but I'm seeing 'unknown event DOMContentLoaded' in the developer tools console. The GWT Showcase example works, however. Maybe some sort of doctype issue? On 2010-03-20, at 4:53 AM, nicolas.deloof wrote: Hi,

Re: [gwt-contrib] deRPC experiences

2010-03-18 Thread Matt Mastracci
On 2010-03-18, at 12:15 PM, BobV wrote: - If the GWT module base path URL isn't absolute, getRequestModuleBasePath fails. We use relative base paths to simplify our hosted mode development. Can you describe this setup in more detail? What is the canonical URL that the request's url

Re: [gwt-contrib] deRPC experiences

2010-03-18 Thread Matt Mastracci
On 2010-03-18, at 12:15 PM, BobV wrote: The code that you posted is about creating a payload for a object that has custom serialization. What does looking at the fields of the InvokeCustomFieldSerializerCommand object show? I can reproduce this in a barebones project. It looks like it's this

Re: [gwt-contrib] Re: Avira and HTML/CryptedGen (again)

2010-03-17 Thread Matt Mastracci
you ever hear anything back from them about this? It seems like it really ought to be fixed on their end, though I applaud your spelunking for a workaround :) On Tue, Mar 16, 2010 at 3:08 PM, Matt Mastracci matt...@mastracci.com wrote: On Mar 16, 12:42 pm, Matt Mastracci matt

Re: [gwt-contrib] Re: Avira and HTML/CryptedGen (again)

2010-03-17 Thread Matt Mastracci
I found a technical support number that I can try calling and seeing if I can get escalated. If that doesn't work, it might be easier to submit a minimal, harmless testcase from those keywords as a false positive. :) Given their approach, that seems likely to get that exact source added

Re: [gwt-contrib] Re: Avira and HTML/CryptedGen (again)

2010-03-17 Thread Matt Mastracci
On 2010-03-17, at 1:15 PM, John Tamplin wrote: I called their tech support line and left a message to be passed on to their technical team, but the tech's solution was you'll have to submit your code again every time it changes. He said he'd pass on the message, but wouldn't guarantee that

[gwt-contrib] Avira and HTML/CryptedGen (again)

2010-03-16 Thread Matt Mastracci
We started getting reports of the HTML/Crypted.Gen being detected in our Chrome extension again. I've managed to reproduce it - the signature seems to be the exact set of strings they use: .fromCharCode .charCodeAt nodeValue for 0,0,0,0,0,0 Math.min I kid you not - this is their

Re: [gwt-contrib] Avira and HTML/CryptedGen (again)

2010-03-16 Thread Matt Mastracci
I kid you not - this is their signature for an encrypted JS virus. I can't seem to remove a single character from any of these tokens without turning it from a dangerous virus to a harmless bit of JS. Order doesn't seem to be important (although I haven't experimented with this that much).

[gwt-contrib] Re: Avira and HTML/CryptedGen (again)

2010-03-16 Thread Matt Mastracci
On Mar 16, 12:42 pm, Matt Mastracci matt...@mastracci.com wrote: Holy cow -- how do they think that is an acceptable measure?  Surely they could at least change the warning to say potentially dangerous JS or something rather than declaring it a virus. This probably will likely affect

[gwt-contrib] deRPC experiences

2010-03-16 Thread Matt Mastracci
I took the plunge and started moving our codebase over to deRPC. It's pretty simple to get bootstrapped, though there's some deployment work we needed to do to ensure that our .gwt.rpc files are made available to the backends. I'm storing our history of .gwt.rpc files in S3, since we're

Re: [gwt-contrib] RFC : Soft permutations for the GWT compiler

2010-03-04 Thread Matt Mastracci
On 2010-03-04, at 11:13 AM, BobV wrote: These factory methods need to live in the Java AST so that we can use the type tightener to optimize the (usual-case) polymorphic dispatch. Adding a JHasNameRef node to the AST would allow what you're describing to be built, but I think that would

Re: [gwt-contrib] RFC: sharded linking

2010-02-12 Thread Matt Mastracci
On 2010-02-12, at 1:15 PM, Ray Cromwell wrote: On Thu, Feb 11, 2010 at 4:43 PM, Scott Blum sco...@google.com wrote: - I dislike the whole transition period followed by having to forcibly update all linkers, unless there's a really compelling reason to do so. In general, I'd agree, but the

[gwt-contrib] Simple, inline actions in UiBinder

2010-01-05 Thread Matt Mastracci
Hey all, I've been playing around with UiBinder, hoping to start replacing a lot of our custom templating code with it. One feature that would really improve the experience for our designer/developer interface would be inline actions. A lot of our boilerplate UI event code does one of the of

Re: [gwt-contrib] Simple, inline actions in UiBinder

2010-01-05 Thread Matt Mastracci
be simplified further for callback actions: gq:click query=.actionLearnMore a as(Effects().slideToggle(); /gq:action -Ray On Tue, Jan 5, 2010 at 12:42 PM, Matt Mastracci matt...@mastracci.com wrote: Hey all, I've been playing around with UiBinder, hoping to start replacing a lot of our

Re: [gwt-contrib] Simple, inline actions in UiBinder

2010-01-05 Thread Matt Mastracci
: gq:click query=.actionLearnMore a as(Effects().slideToggle(); /gq:action -Ray On Tue, Jan 5, 2010 at 12:42 PM, Matt Mastracci matt...@mastracci.com wrote: Hey all, I've been playing around with UiBinder, hoping to start replacing a lot of our custom templating code with it. One

Re: [gwt-contrib] Inlining nocache.js

2009-12-17 Thread Matt Mastracci
If it's the same error we ran into, it's that there are things that look like HTML script and comment tags in the linker script that throw the parser off. Note how we broke up the script start tags and comment start/end tags the same way as the script end tags: XSLinker: var

Re: [gwt-contrib] now.. afetr GWT 2.0?

2009-12-16 Thread Matt Mastracci
GWT 2.0 was so awesome, it'll be hard to top any of the new stuff with my feature wishlist. A few things I'd like: - moving as many compiler properties as possible into configuration properties so we can build an instrumented release (with type cast checking, assertions, emulated stack

Re: [gwt-contrib] Revisiting the script-via-iframe default linkage

2009-12-15 Thread Matt Mastracci
On 15-Dec-09, at 12:48 PM, Lex Spoon wrote: I've now double checked on several browsers other than Opera, and I agree that onerror works on non-IE and onreadystatechange works on IE. Details here: http://blog.lexspoon.org/2009/12/detecting-download-failures-with-script.html One tricky

Re: [gwt-contrib] Re: Avira is showing warning when accessing gwt-generated files

2009-12-10 Thread Matt Mastracci
...@google.com wrote: Were you able to get any information on the signature (assuming it's signature-based) from Avira? Their page on the subject is, uh, less than useful. On Wed, Dec 9, 2009 at 1:09 PM, Matt Mastracci matt...@mastracci.com wrote: We've just had reports of people seeing

Re: [gwt-contrib] Re: Avira is showing warning when accessing gwt-generated files

2009-12-09 Thread Matt Mastracci
We've just had reports of people seeing this while installing our chrome extension. I'm not near a Windows VM right now, but I can see if it's easy to reproduce when I get back: http://getsatisfaction.com/dotspots/topics/dotspots_plugin_for_chrome_installer_problems There's a lot of

Re: [gwt-contrib] Re: Avira is showing warning when accessing gwt-generated files

2009-12-09 Thread Matt Mastracci
signature-based) from Avira? Their page on the subject is, uh, less than useful. On Wed, Dec 9, 2009 at 1:09 PM, Matt Mastracci matt...@mastracci.com wrote: We've just had reports of people seeing this while installing our chrome extension. I'm not near a Windows VM right now, but I can

Re: [gwt-contrib] Revisiting the script-via-iframe default linkage

2009-12-09 Thread Matt Mastracci
On 9-Dec-09, at 1:55 PM, Lex Spoon wrote: On Wed, Dec 9, 2009 at 12:47 PM, Matt Mastracci matt...@mastracci.com wrote: Do you know how to get onerror to fire in IE? It didn't seem to work in my testing. No, but why do you need it if you have onreadystatechanged? It should

[gwt-contrib] Strange JSNI timing errors in WebKit dev mode

2009-12-04 Thread Matt Mastracci
I'm seeing a strange dev mode error in WebKit. It started happening recently and I can't put my finger on a specific change that would cause it. I'm returning an non-null JS native array from a JSNI method, cast to JsArrayInteger. When I call JsArrayInteger::shift() on it, I get: Result

Re: [gwt-contrib] Revisiting the script-via-iframe default linkage

2009-12-01 Thread Matt Mastracci
Ray/Lex, I'm starting to think that the dynamic iframe might not be a bad first approach to this problem either. A single linker would be able to provide cross-domain-capable, multi-module-safe code that doesn't require any additional post-processing to support loading of fragments. It

[gwt-contrib] GPE 2.0-RC2 and GWTShell

2009-12-01 Thread Matt Mastracci
Hey all, I installed the GPE 2.0-RC2 build (after cleaning out the old one) and I'm running into some issues. The plugin thinks that we're using the old-style layout, so it's attempting to launch GWTShell which won't initialize a local Jetty w/war.xml. I've worked around it by creating a

Re: [gwt-contrib] GPE 2.0-RC2 and GWTShell

2009-12-01 Thread Matt Mastracci
Webber wrote: @Miguel: I've hit this before when upgrading projects, and I keep forgetting what the trick was. I seem to recall the plugin was making the project layout determination at the time the GWT nature is added, but I'm not 100% certain. On Tue, Dec 1, 2009 at 3:55 PM, Matt

Re: [gwt-contrib] Revisiting the script-via-iframe default linkage

2009-11-30 Thread Matt Mastracci
Sure, I'd love to take a look at it. I've got a basic version of globally-scoped, cross-domain code-splitting up and running that uses simple script-tags for the cross-domain load right now. Re: script tag error reporting. In my investigations, this has been particularly bad and highly

Re: [gwt-contrib] Revisiting the script-via-iframe default linkage

2009-11-25 Thread Matt Mastracci
GWT modules on a single dashboard. We probably need to support both explicit scope and polluting options, and allow the developer to choose. -Ray On Tue, Nov 24, 2009 at 8:33 PM, Scott Blum sco...@google.com wrote: On Tue, Nov 24, 2009 at 9:39 PM, Matt Mastracci matt...@mastracci.com

Re: [gwt-contrib] Re: Avira is showing warning when accessing gwt-generated files

2009-11-24 Thread Matt Mastracci
The best approach is probably to upload the file in question to Avira's false-positive reporting page: http://analysis.avira.com/samples/index.php On 24-Nov-09, at 8:19 AM, dflorey wrote: Am I the only one with this issue? On 19 Nov., 17:29, dflorey daniel.flo...@gmail.com wrote: Hi,

[gwt-contrib] Revisiting the script-via-iframe default linkage

2009-11-24 Thread Matt Mastracci
Hey all, If I recall correctly, the original reason that GWT used iframe- wrapped scripts was to work around the buggy compression of Javascript some early versions of IE (example: http://support.microsoft.com/default.aspx?scid=kb;en-us;823386Product=ie600) . The number of users on IE 6 SP1

Re: [gwt-contrib] TypeOracle allTypes including types not in a source path

2009-11-23 Thread Matt Mastracci
('\n'); } PerfLogger.end(); breakpoint here I didn't see anything get added that shouldn't be there. Can you dig into this a little or put together a small sample? Thanks, Scott On Thu, Nov 19, 2009 at 10:40 PM, Matt Mastracci matt...@mastracci.com wrote: Hey all, Sorry

Re: [gwt-contrib] TypeOracle allTypes including types not in a source path

2009-11-23 Thread Matt Mastracci
Filed a bug on this: http://code.google.com/p/google-web-toolkit/issues/detail?id=4268 On 23-Nov-09, at 12:40 PM, Bruce Johnson wrote: let's remember to talk about this more for the release after 2.0 On Mon, Nov 23, 2009 at 2:26 PM, Isaac Truett itru...@gmail.com wrote: +1 deprecate and

Re: [gwt-contrib] TypeOracle allTypes including types not in a source path

2009-11-20 Thread Matt Mastracci
be there. Can you dig into this a little or put together a small sample? Thanks, Scott On Thu, Nov 19, 2009 at 10:40 PM, Matt Mastracci matt...@mastracci.com wrote: Hey all, Sorry to keep spamming GWT 2.0 issues. I've run into a difference in how TypeOracle works that seems to have changed

Re: [gwt-contrib] NPE in JsniChecker in 2.0-RC1

2009-11-19 Thread Matt Mastracci
Thanks, Scott. I'm applying it now and building GWT. It's been catching some JSNI refs in the GWT source, possibly some false- positive (the JSONParser ones seem to be valid?). The build doesn't actually fail, though: [java] [WARN] Warnings in 'jar:file:/Users/matthew/

[gwt-contrib] OOPHM crashes in FF 3.5

2009-11-19 Thread Matt Mastracci
Hey all, I'm continuing my push forward to GWT 2.0-RC1 and I'm running into some crashiness in OOPHM. I'm still trying to narrow down exactly what causes it, but this is a common, reproducible crash that I'm seeing:

[gwt-contrib] TypeOracle allTypes including types not in a source path

2009-11-19 Thread Matt Mastracci
Hey all, Sorry to keep spamming GWT 2.0 issues. I've run into a difference in how TypeOracle works that seems to have changed in GWT 2.0. In previous versions, calling context.getTypeOracle().getTypes() from a generator would limit itself to types available on the source paths. I have

[gwt-contrib] Development mode in Chrome content scripts (and other strange places)

2009-11-09 Thread Matt Mastracci
Hey all, We're using GWT in a lot of places that aren't traditional webpages (currently a Firefox extension and a Chrome plugin). We've rolled our support for OOPHM in Firefox chrome code, but Chrome content scripts are going to be a different story. For now, our code is simple enough

[gwt-contrib] Re: Compiler Optimization Thought: Class merging

2009-11-03 Thread Matt Mastracci
I think the impact of anonymous classes will be significantly less once union types are implemented. As it stands right now, every anonymous class gets typeinfo and getClass because some code elsewhere is calling it on an variable that can't be tightened more than Object. On 2009-11-03, at

[gwt-contrib] Re: Random Thought: Compiler transformation Sync - Async

2009-11-02 Thread Matt Mastracci
The API is just a skeleton to experiment with all the strong-typing that would go along with porting Oni to Java, so there's not much there. It helped prove that the concept was sound if I had a chance to take a go at it and gave me some code to look at while planning it out. There's

[gwt-contrib] Re: Random Thought: Compiler transformation Sync - Async

2009-11-02 Thread Matt Mastracci
? do you show a please wait or not?). What we'd want is a framework that makes it easier to produce and reason about necessarily async patterns. On Mon, Nov 2, 2009 at 12:42 PM, Matt Mastracci matt...@mastracci.com wrote: The API is just a skeleton to experiment with all the strong-typing

[gwt-contrib] Re: Random Thought: Compiler transformation Sync - Async

2009-11-01 Thread Matt Mastracci
I find that there are two sources of a lot of boilerplate code for the async stuff I work on: 1. State machines 2. Coordinating multiple asynchronous events (ie: timers, multiple inflight requests and user events) For #1, the code usually ends up as a set of enums for simple states

[gwt-contrib] Re: Adding a DOM com.google.gwt.dom.client.Window class?

2009-08-17 Thread Matt Mastracci
Joel, This is definitely a can of worms! I spent some time thinking through the some of these points. Some additional comments inline... On 17-Aug-09, at 10:02 AM, Joel Webber wrote: At any rate, we *do* need something like this, and now seems as good a time as any to bring it up. In

[gwt-contrib] Adding a DOM com.google.gwt.dom.client.Window class?

2009-08-13 Thread Matt Mastracci
Hi all, I've been hacking around the lack of a true JavaScriptObject window in GWT for a while and I was wondering if there was any interest in me providing a patch for it. While the current com.google.gwt.user.client.Window works for most cases, you aren't able to interact with other

[gwt-contrib] Re: [google-web-toolkit] r5959 committed - Function Clustering, improves gzip compression by significant margin. ...

2009-08-13 Thread Matt Mastracci
Ray, This is really cool! On 13-Aug-09, at 1:22 PM, codesite-nore...@google.com wrote: Revision: 5959 Author: cromwellian Date: Thu Aug 13 12:21:36 2009 Log: Function Clustering, improves gzip compression by significant margin. Top-level block restructuring for IE7 is now done purely

[gwt-contrib] Re: New GWT RPC project: gwt-rpc-plus

2009-08-12 Thread Matt Mastracci
/etc for download. The DTOs are numerous / complex enough that writing some kind parallel serializer is prohibitive. Have you come across this use case before ? Thanks, Alex On Aug 8, 8:53 pm, Matt Mastracci matt...@mastracci.com wrote: Bart, One principle of design for the alternate RPC

[gwt-contrib] Re: New GWT RPC project: gwt-rpc-plus

2009-08-10 Thread Matt Mastracci
. Naturally the same annotation would appear on value types with List properties. Perhaps something similar could be used to whitelist sub class serializer generation. Comments ? On Sun, Aug 9, 2009 at 4:53 AM, Matt Mastracci matt...@mastracci.comwrote: Bart, One principle

[gwt-contrib] Re: New GWT RPC project: gwt-rpc-plus

2009-08-08 Thread Matt Mastracci
Guijt E: bgu...@gmail.com T: +31 6 30408987 Check out my blog: http://bart.guijt.me/blog/ A pizza with the radius 'z' and thickness 'a' has the volume pi*z*z*a On 8 aug 2009, at 8 aug, 04:58, Matt Mastracci wrote: Hey all, We've been working on a number of RPC enhancements locally

[gwt-contrib] Re: Any hints on why GWT's JUnit tests would be consistently timing out for me?

2009-08-08 Thread Matt Mastracci
Issac, Are you running under Linux? If so, your embedded Mozilla browser may be showing a prompt, but its window is hidden. Try running with - notHeadless. On 2009-08-08, at 11:55 AM, Isaac Truett itru...@gmail.com wrote: I'm trying to run the unit tests in GWT trunk. I've tried with

[gwt-contrib] New GWT RPC project: gwt-rpc-plus

2009-08-07 Thread Matt Mastracci
Hey all, We've been working on a number of RPC enhancements locally and thought that it might be helpful to open-source some of them (prompted by a recent suggestion from Ray Cromwell). I've created a new Google Code project that encapsulates them here:

[gwt-contrib] Re: Better support of IE6 for ImageResourceGenerator

2009-08-06 Thread Matt Mastracci
On 6-Aug-09, at 9:57 AM, John Tamplin wrote: If the transparency is just binary, then IE6 already supports PNG transparency, right? Aside from the hassle of detecting if a one- bit alpha channel will do, I think the J2D libraries we currently use won't generate one-bit alpha channels

[gwt-contrib] RPC forward/backward compat

2009-07-24 Thread Matt Mastracci
Hey all, We've been struggling with the issue of RPC forward/backward incompatibility for a little while and I thought I'd bring it to the list for discussion. As some of you know, one of our use-cases for GWT is embedding the compiled JS in a Firefox extension. Unfortunately, the

[gwt-contrib] Re: RPC forward/backward compat

2009-07-24 Thread Matt Mastracci
On 24-Jul-09, at 6:39 PM, BobV wrote: I have a design wave going on about how to add this to the new RPC implementation. Here's a cruddy copy-and-paste of the current state of the document. Bob, this is awesome! Is the plan to land this as part of deRPC, or is this a future feature that

[gwt-contrib] Re: RPC forward/backward compat

2009-07-24 Thread Matt Mastracci
On 24-Jul-09, at 9:11 PM, BobV wrote: Also, will this be supported on methods themselves? For instance, can I mark a new method parameter as @Optional so that older clients don't need to provide it? Conversely, could we remove a parameter from a method and still support clients

[gwt-contrib] Re: Optimizing away the builder pattern

2009-06-16 Thread Matt Mastracci
I've been pondering an SSA structure for the compiler that would make some of this stuff a lot easier to deal with. Instead of keeping the AST for the Java and JS trees around, we'd put everything into a unified data flow graph in memory (with appropriate side-effect barriers), optimize

[gwt-contrib] Re: Changing JsArrayT extends JavaScriptObject to JsArrayT

2009-06-15 Thread Matt Mastracci
I do as well - I'm mmastrac. On 15-Jun-09, at 8:02 PM, Ray Cromwell wrote: I do, cromwellian is my id on the sandbox. -Ray On Mon, Jun 15, 2009 at 6:14 PM, Bruce Johnsonbr...@google.com wrote: I'm starting to make a bit o' progress on this. I'll send out a design doc real soon

[gwt-contrib] Re: Optimize if statements to conditionals and boolean ops if possible

2009-06-11 Thread Matt Mastracci
No problem... I haven't handled the common super-expression case (if (test) { return a; } else {return b; } - return test ? a : b), but that one should be pretty easy to tackle for a limited set of common super-expressions. On 11-Jun-09, at 5:53 AM, Joel Webber wrote: FWIW:

[gwt-contrib] Re: Optimize if statements to conditionals and boolean ops if possible

2009-06-11 Thread Matt Mastracci
Both LGTM. Good catch, thanks. :) On 11-Jun-09, at 1:15 PM, Scott Blum wrote: Matt, Could you review these two follow-on patches? The second depends on the first. This is mostly non-functional cleanup to make things a little simpler to read. The only substantive change is this:

[gwt-contrib] Re: More if-statement optimizations in JsStaticEval

2009-06-10 Thread Matt Mastracci
SGTM. I'll start a new review with the remainder of the changes. On 10-Jun-09, at 2:16 PM, Scott Blum wrote: I thought I'd go ahead and commit what you have so far, if you don't object? On Wed, Jun 10, 2009 at 4:12 PM, mmastrac.altern...@gmail.com wrote: I'll update the patch with this

[gwt-contrib] Re: More if-statement optimizations in JsStaticEval

2009-06-10 Thread Matt Mastracci
After I sent that message, I peeked into EqualityNormalizer which is basically pre-munging all the equality operators that compare against null to Cast.isNull() and Cast.isNotNull() as I described below. On 10-Jun-09, at 8:16 PM, Matt Mastracci wrote: That construct isn't a generically

[gwt-contrib] Re: More if-statement optimizations in JsStaticEval

2009-06-09 Thread Matt Mastracci
Yeah... I would love to have a single AST to represent both of the language states - many optimizations don't happen because we toss all the Java type info during the conversion to JS. For instance, you can't safely optimize this: if (blah != null) to this: if (blah) without knowing

[gwt-contrib] Re: Suggestion for OOPHM

2009-06-07 Thread Matt Mastracci
On 7-Jun-09, at 8:39 AM, John Tamplin wrote: Yes, the very thing you want for real apps (async so you can drop back to the event loop and let the browser respond while waiting on IO) is the very thing you can't have for OOPHM, since you have to be able to block the executing code in

[gwt-contrib] Re: Suggestion for OOPHM

2009-06-07 Thread Matt Mastracci
On 6-Jun-09, at 6:24 PM, Mark Renouf wrote: Wow, I like it! This isn't as crazy as it sounds. After just watching the V8 talk from I/O, I've learned the JavaScript library is implemented in JavaScript (preloaded in a heap snapshot). The efficiency level they are hitting now makes this seem

[gwt-contrib] Re: Suggestion for OOPHM

2009-06-05 Thread Matt Mastracci
While this subject is up... Has anyone considered writing the OOPHM client stub as a Java applet and using netscape.javascript.JSObject to deal with the JS references? While it wouldn't support direct field references like the current plugins do, the server-side Jsni class could rewrite

[gwt-contrib] Re: Suggestion for OOPHM

2009-06-05 Thread Matt Mastracci
On 5-Jun-09, at 10:08 AM, Piotr Jaroszyński wrote: 2009/6/5 Matt Mastracci matt...@mastracci.com: While this subject is up... Has anyone considered writing the OOPHM client stub as a Java applet and using netscape.javascript.JSObject to deal with the JS references? Please no java

[gwt-contrib] Email address in from field @ gwt-code-reviews

2009-06-05 Thread Matt Mastracci
I've posted a couple of patches to the codereviews site, but I noticed that it's using my main google account as the from email (mmast...@gmail.com ) instead of my mailing list subscription address (matt...@mastracci.com). Any ideas how I might be able to set my from address on the

[gwt-contrib] Re: Eclipse Plugin and OSX woes

2009-04-19 Thread Matt Mastracci
expect it in a future release. As an absolute workaround, could you rename your java binary and create a shell script in its place that launches the real java binary with whichever args you want (prepended to the args given to the shell script)? jason On Fri, Apr 17, 2009 at 2:34 PM, Matt

[gwt-contrib] Re: Relaxing constraints on GWT.create()

2009-03-13 Thread Matt Mastracci
a method body, otherwise, you'll have to inline the whole method at the callsite (yuck!) -Ray On Thu, Mar 12, 2009 at 10:55 PM, Matt Mastracci matt...@mastracci.com wrote: +1 for this implementation. This is a lot clearer than a class - implementation lookup map or inlining the whole

[gwt-contrib] Re: Relaxing constraints on GWT.create()

2009-03-12 Thread Matt Mastracci
+1 for this implementation. This is a lot clearer than a class - implementation lookup map or inlining the whole method at each call site. As long as the bytecode is rewritten in hosted mode to match the expected order of operations, there shouldn't be any surprises at compile time.

[gwt-contrib] Re: installing code at global scope

2009-03-05 Thread Matt Mastracci
Lex, Have you tried using the string constructor for Function()? I believe that it creates a function whose lexical scope is bound to the top- level, no matter where it is executed. script var a = 2; function x() { var a = 3; return new Function(alert(a); a = 4;); } x()(); alert(a);

[gwt-contrib] Re: installing code at global scope

2009-03-05 Thread Matt Mastracci
() method in Firefox which allows an additional parameter to be specified as the context (see http://ajaxian.com/archives/evalfooa-objfn-how-you-arent-private-in-firefox) e.g. eval(script, $wnd); -Ray On Thu, Mar 5, 2009 at 2:10 PM, Matt Mastracci matt...@mastracci.com wrote: Lex, Have

[gwt-contrib] Re: installing code at global scope

2009-03-05 Thread Matt Mastracci
On 5-Mar-09, at 4:53 PM, Lex Spoon wrote: On Thu, Mar 5, 2009 at 5:10 PM, Matt Mastracci matt...@mastracci.com wrote: function x() { var a = 3; return new Function(alert(a); a = 4;); } I hadn't thought of that! Unfortunately, the code in question has definitions like function foo

[gwt-contrib] Re: RR : Implement web-mode stack traces and symbol map files

2009-02-19 Thread Matt Mastracci
Bob, Changes look really good. Some review notes: This code will terminate early if you have two anonymous functions in your call stack (possible for some DOM stack traces), since both will have name == anonymous: +// Avoid infinite loop: caller is not an activation record +

[gwt-contrib] Re: RR : Implement web-mode stack traces and symbol map files

2009-02-13 Thread Matt Mastracci
Bob, We've been doing the same thing for a while using a slightly different method. Some notes from our implementation: 1. The callee chain represents functions, rather than activation records as you'd expect. If you call a method re-entrantly, you'll end up in an infinite loop

[gwt-contrib] Re: RR : Implement web-mode stack traces and symbol map files

2009-02-13 Thread Matt Mastracci
exceptions. -- Bob. (Android) On Feb 13, 2009 1:25 PM, Matt Mastracci matt...@mastracci.com wrote: Bob, We've been doing the same thing for a while using a slightly different method. Some notes from our implementation: 1. The callee chain represents functions, rather than activation