Wednesday, November 27, 2019

Re: JsFunction length is zero


Do you think a patch like that has any chance to be accepted? or this is not considered to be an issue?

Seems like a valid behavior for JS libraries to check argument count, so I guess it should be accepted. Goktug or Roberto should probably review it.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/9232cdec-c84f-427a-a019-d0cef9262244%40googlegroups.com.

Re: JsFunction length is zero

Hi Jens,

Thanks for the reply and the pointer. Your answers are spot on as always but in this case I had managed to find the specific code fragment by my self.

I was thinking a patch could look like the accepted answer in this Stack Overflow question: https://stackoverflow.com/questions/7316688/how-to-programmatically-set-the-length-of-a-function

assuming arguments and arguments.length carry the necessary information.

Do you think a patch like that has any chance to be accepted? or this is not considered to be an issue?

Thanks



On Wed, Nov 27, 2019 at 1:57 PM Jens <jens.nehlmeier@gmail.com> wrote:
You can see here how GWT compiler creates lambdas: https://github.com/gwtproject/gwt/blob/master/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Runtime.java#L162

In case you also want to try to fix the issue ;-)

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/e6e9e9ea-e921-41c7-9283-9734902e3d41%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEzsNhqhPWbUQENie-mx-g-pMYWs-09vt5w8fqbf8qnUDQ%40mail.gmail.com.

Re: JsFunction length is zero

You can see here how GWT compiler creates lambdas: https://github.com/gwtproject/gwt/blob/master/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Runtime.java#L162

In case you also want to try to fix the issue ;-)

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/e6e9e9ea-e921-41c7-9283-9734902e3d41%40googlegroups.com.

Tuesday, November 26, 2019

JsFunction length is zero

Hi,

Looks like that some javascript libraries are checking on the argument length of the callbacks that are passed to them.

So for example D3 bisector can take a function with one or two arguments. If it is one then it is an accessor if it is two then it is a comparator.

I searched on github issues. Should I report it?

The following snippet demonstrates the problem. The Function.length should be 1 and not 0.

    @JsFunction      public static interface SomeFunction {          public double call(double x);      }  
    /**      * This is the entry point method.      */     @Override     public void onModuleLoad() {         final SomeFunction y = new SomeFunction() {             @Override             public double call(double x) {                 return 2 * x;             }         };         DomGlobal.console.log(y);         return;    }


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEzhR%3DGgF8S7SMmpq9WzjmqViKjZtcWLCKMp%3DaK0uZmHLQ%40mail.gmail.com.

Saturday, November 23, 2019

Our GWT app hangs on iPhone Safari.

We have a GWT 2.8.1 app (midasmed.com, beta), that runs fine on on both desktop and android devices on Chrome, Firefox, Edge and also on the Mac (Safari), but hang on iPhone Safari (iOS 13.1.3). I can't seem to isolate the problem - it hangs seemingly randomly, no exceptions are thrown, and no errors are shown in the Safari dev tools console. The app does quite a bit of javascript processing on the client. Any suggestions as to what could be causing this will be greatly appreciated!

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/dc3a8d75-0b55-4794-b88c-f2a6d4e4da57%40googlegroups.com.

Friday, November 22, 2019

Good news about Smart GWT

Hi all,

Few weeks ago Isomorphic Software mentioned that to support GWT it's pretty easy for them and will continue to do that while the project is alive.

http://blog.isomorphic.com/the-difference-between-smartclient-and-smart-gwt/

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/48f92ff8-5fc7-4e5e-a57f-5175f1743e05%40googlegroups.com.

Thursday, November 21, 2019

PatternFly Java

Hi all,

I'm working on a GWT version of PatternFly [1]. PatternFly [2] is an open source design system built to drive consistency and unify teams. It's open source and sponsored by Red Hat. 

PatternFly comes with a set of design guidelines and components. There's support for plain HTML / CSS and React. PatternFly Java adds support for GWT. Currently only a subset of the PatternFly components is implemented. But I'm planning to add support for more / all components in the coming months.

PatternFly Java heavily depends on Elemento [3] and tries to support an API which is both easy to use and flexible enough to address special use cases. There's also a showcase [4] which demonstrates the current status.

I'd love to get feedback especially about the API design. Please file your ideas, critics and any other feedback as GitHub issues under [5].

Thanks 
Harald

[3] https://github.com/hal/elemento

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/9b592778-ab67-4be2-8ba7-82315bf16037%40googlegroups.com.