[gwt-contrib] Elemental2 1.0 release date

2018-04-03 Thread Paul Stockley
Any idea when Elemental2 1.0.0 will be released? The RC1 has been out there for a while now. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [gwt-contrib] Re: Business proposition of GWT 3.0 - what is it good for vs. other solutions out there?

2017-05-22 Thread Paul Stockley
May 21, 2017 at 7:04:19 AM UTC-4, Paul Stockley wrote: >> >> I am really interested to hear how you can make a version of GWT RPC as >> fast as a pure JSON approach. We take a tree of thousands of objects and >> just use one JSON.parse / JSON.stringify call to deserialize

Re: [gwt-contrib] Re: Business proposition of GWT 3.0 - what is it good for vs. other solutions out there?

2017-05-21 Thread Paul Stockley
I am really interested to hear how you can make a version of GWT RPC as fast as a pure JSON approach. We take a tree of thousands of objects and just use one JSON.parse / JSON.stringify call to deserialize / serialize which happens within the browser in C++ code. No other processing is

Re: [gwt-contrib] Re: Business proposition of GWT 3.0 - what is it good for vs. other solutions out there?

2017-05-20 Thread Paul Stockley
I have to agree. A long time ago we moved away from GWT RPC to an approach that used straight JSON. This forced on us by the poor performance on mobile devices. Right away we saw 3 to 5x speed improvement and significant code size reduction. Sure the developer experience wasn't quite as nice.

Re: [gwt-contrib] Re: Elemental2 and JsInterop base beta releases available.

2017-05-11 Thread Paul Stockley
Do you have a general idea for how long the Beta phase will take? Is it predicated on reaching a certain quality level? On Tuesday, May 9, 2017 at 6:06:12 PM UTC-4, Goktug Gokdogan wrote: > > BTW, if you are using elemental2, keep in mind that these are beta > releases to get feedback and APIs

[gwt-contrib] 2.8.x release

2017-03-17 Thread Paul Stockley
Are there any plans to put out a 2.8.1 release? I see there have been a number of fixes/enhancements since the initial 2.8 release. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails

[gwt-contrib] Re: Problem with JsInterop

2016-08-30 Thread Paul Stockley
If you are passing Resolver into some function. You could instead create 3 Resolver interfaces and then overload the function so that it took each of the resolver interfaces. On Saturday, August 27, 2016 at 9:51:50 AM UTC-4, Arnaud TOURNIER wrote: > > Hi, > > I am playing with js Promises and

[gwt-contrib] Re: Hide GWT Development Mode window

2016-08-25 Thread Paul Stockley
Thanks, I just ran the code server. The main reason I did this is because Idea runs both the code server and Jetty Server together and passes the same class path to both. Our app has a lot of server dependencies and not too many client specific ones. By breaking them up I was able to tailor the

[gwt-contrib] Hide GWT Development Mode window

2016-08-19 Thread Paul Stockley
When launching the SDM code server, is it possible to hide the swing UI window? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-08-09 Thread Paul Stockley
ithub.com/gwtproject/gwt/issues/9343 > > On Saturday, August 6, 2016 at 8:38:21 PM UTC+2, Paul Stockley wrote: >> >> I reset my project from scratch and it is now working. There must have >> been some residual stuff left from the last snapshot build I used. I will >&

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-08-06 Thread Paul Stockley
e an issue with them. On Sunday, July 31, 2016 at 1:59:35 PM UTC-4, Paul Stockley wrote: > > I am away from a computer for a week. When I get back I will provide more > details. I can remove junit. Not sure why it was there. -- You received this message because you are subscribed to the

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-07-31 Thread Paul Stockley
I am away from a computer for a week. When I get back I will provide more details. I can remove junit. Not sure why it was there. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-07-31 Thread Paul Stockley
The Mac project is pretty much nearly all client code. The only lib it includes in web inf is junit. To be clear this is using the sdk version of Gwt, not maven. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this

[gwt-contrib] 2.8.0 RC1 issue

2016-07-30 Thread Paul Stockley
I have a couple of different issues with the new RC1 build. On my mac project, I get the following error when starting devmode from the initellij debug launch config The code server is ready at http://127.0.0.1:9876/ Code server started in 20.08 s ms 2016-07-30

Re: [gwt-contrib] Re: GWT 2.8 rc1 work items

2016-07-07 Thread Paul Stockley
Any idea when we can expect a RC1 build? On Monday, June 13, 2016 at 5:59:44 AM UTC-4, Thomas Broyer wrote: > > > > On Monday, June 13, 2016 at 11:37:05 AM UTC+2, Daniel Kurka wrote: >> >> Also keep in mind that we need a green build before cutting RC1 in open >> source (and this only runs

[gwt-contrib] Experimental release of Elemental2

2016-07-02 Thread Paul Stockley
Would it be possible to break the project into a few packages? It would make it easier to find things. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [gwt-contrib] Re: Elemental2 - What's the big secret?

2016-06-17 Thread Paul Stockley
The question I have is more general. What will the scope of Elemental 2 be? Will it include collections and json support like elemental or will it be just an interface to browser API's? On Thursday, June 16, 2016 at 4:28:08 PM UTC-4, Ray Cromwell wrote: > > > With these kinds of purely code

[gwt-contrib] Future direction for common JS api's

2016-05-18 Thread Paul Stockley
I am at the point in my GWT-React project where I need to come up with a future proof way of handling low level server communication. I was contemplating implementing the new Fetch API (with polyfills for older browsers). This would also need the promise API. The question I have is what will

Re: [gwt-contrib] Re: Generator and Linker maintenance and changes

2016-05-03 Thread Paul Stockley
I don't think migrating away from Generators to APT means you are forced to move off 2.8. In fact, I was hoping to move incrementally as each subsystem is migrated to become APT based. Then in the future, our code base would be close to moving to J2CL. In a couple of months or so I was planning

Re: [gwt-contrib] Creating an Array class using Interop

2016-05-02 Thread Paul Stockley
'T set > 'jre.checks.checkLevel" to MINIMaL everything works fine? That's very > surprising. You should reproduce the the issue and file a bug. > > On Mon, May 2, 2016 at 12:03 PM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> It wasn't to get around underlyi

Re: [gwt-contrib] Creating an Array class using Interop

2016-05-02 Thread Paul Stockley
2, 2016 at 2:06:08 PM UTC-4, Goktug Gokdogan wrote: > > If you need to disable cast checking, you are definitely doing something > wrong; you should fix underlying problem instead of disabling checks. > > On Sun, May 1, 2016 at 6:19 AM, Paul Stockley <pstoc...@gmail.com &g

[gwt-contrib] Re: How to unit test JsInterop code

2016-05-02 Thread Paul Stockley
I was looking more to do some basic sanity tests of JsInterop interfaces against actual Javascript libraries (to detect changes in API etc). I hadn't looked at GWTTestCase for a while but remembered it ran DevMode. Looks like I will be able to use webMode. On Sunday, May 1, 2016 at 12:55:24 PM

Re: [gwt-contrib] Potentially simple optimization when creating ObjectLiterals

2016-05-02 Thread Paul Stockley
$wnd.Object" > with "{}". It's possible to write a peephole pass to fix this in the > Compiler, but I think given the number of people clamoring for GWT 2.8 > and the other more pressing issues, this would be low on the totem > pole. > > > On Sun, May 1, 201

[gwt-contrib] How to unit test JsInterop code

2016-05-01 Thread Paul Stockley
What is the best way to unit test JsInterop code? Am I correct that GWTTestCase doesn't work? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[gwt-contrib] Potentially simple optimization when creating ObjectLiterals

2016-05-01 Thread Paul Stockley
When you define an object literal as @JsType(isNative = true, namespace = JsPackage.GLOBAL, name="Object") public class SomeObjLiteral { } Calling new on this results in the following javascript code 'new $wnd.Object'. You could just emit {} instead. It is surprising the number times you

[gwt-contrib] Creating an Array class using Interop

2016-05-01 Thread Paul Stockley
I am trying to create a native JsType to represent a javascript Array. Up to this point I have been using JSNI. Below is the outline of what I have. I want to use an Interface as my eventual goal is to be able to define JSON structures using the same class on client and server.

Re: [gwt-contrib] Re: Elemental 2 and J2CL timeline

2016-04-29 Thread Paul Stockley
I think once 2.8 is out the door we should definitely pursue setting up some projects to tackle the things that won't be in J2CL. This will really help a lot to alleviate many peoples fears, especially those with large projects that use Widgets, UiBinder etc. There has been a lot of vague

[gwt-contrib] Re: Elemental 2 and J2CL timeline

2016-04-27 Thread Paul Stockley
the generated code, and you can reference that rather than a > constructor. > > On Tuesday, April 26, 2016 at 8:30:21 AM UTC-5, Paul Stockley wrote: >> >> Does anyone have any idea when elemental 2 will be available? Also what >> is a rough timeline for a version on

[gwt-contrib] get the obfuscated name of a class method in code?

2016-04-26 Thread Paul Stockley
Is it possible to get the obfuscated name of a class method in code? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[gwt-contrib] Elemental 2 and J2CL timeline

2016-04-26 Thread Paul Stockley
Does anyone have any idea when elemental 2 will be available? Also what is a rough timeline for a version on J2CL being available, is it 6 months, a year or more away? The reason I ask is that I am thinking about how our company can migrate to the new compiler. We will need widgets and

Re: [gwt-contrib] Lambda overhead

2016-04-17 Thread Paul Stockley
Given that it will be realistically a couple of years before most large projects could migrate to J2CL, it would be really nice to have a more optimal code generation for lambda's, especially for JsFunction. When 2.8 gets released, I think people will really start taking advantage of existing

Re: [gwt-contrib] Lambda overhead

2016-04-15 Thread Paul Stockley
On Fri, Apr 15, 2016 at 6:11 AM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> Am I right in saying that java 8 lambda's under the covers is implemented >> as an anonymous inner class? Is this also true for SAM interfaces annotated >> with JsFunction annotated inter

Re: [gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-15 Thread Paul Stockley
" and let every app choose their own subset but I don't > have time to implement it and took the shortcut for the > "--generateJsInteropExports " case. > > On Wed, Apr 13, 2016 at 6:16 AM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> I agree that i

[gwt-contrib] Lambda overhead

2016-04-15 Thread Paul Stockley
Am I right in saying that java 8 lambda's under the covers is implemented as an anonymous inner class? Is this also true for SAM interfaces annotated with JsFunction annotated interfaces? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To

Re: [gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-13 Thread Paul Stockley
rom Java code. I'm open to any suggestions. > > On Tue, Apr 12, 2016 at 9:10 AM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> I think this flag in its current form is evil. If you forget it your code >> will work in SDM and not in production. I would recommend one of th

[gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-12 Thread Paul Stockley
I think this flag in its current form is evil. If you forget it your code will work in SDM and not in production. I would recommend one of the following: 1) Have export on by default and have a flag to turn it off 2) or have SDM prune the non-exported classes from the code. On Tuesday, April

[gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-12 Thread Paul Stockley
Also, forgot to mention. I had quite a few issues with the Beta that went away in the latest snapshot build. On Tuesday, April 12, 2016 at 11:11:17 AM UTC-4, Paul Stockley wrote: > > Are you compiling with -generateJsInteropExports ? > > On Tuesday, April 12, 2016 at 9:57:10 AM UT

[gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-12 Thread Paul Stockley
Are you compiling with -generateJsInteropExports ? On Tuesday, April 12, 2016 at 9:57:10 AM UTC-4, Ignacio Baca Moreno-Torres wrote: > > This code: > public class Client implements EntryPoint { > Console log = Browser.getWindow().getConsole(); > > @Override public void onModuleLoad() { >

[gwt-contrib] Re: Proposal for making Object literals more intuitive to define

2016-04-07 Thread Paul Stockley
, April 7, 2016 at 6:51:06 AM UTC-4, Thomas Broyer wrote: > > > > On Wednesday, April 6, 2016 at 5:46:49 PM UTC+2, Paul Stockley wrote: >> >> This is the only way you can create a true object literal equivalent in >> JsInterop (i.e. no prototype other than Object) >&

[gwt-contrib] Re: Proposal for making Object literals more intuitive to define

2016-04-06 Thread Paul Stockley
This is the only way you can create a true object literal equivalent in JsInterop (i.e. no prototype other than Object) The following is as close as you can get to say { prop1 : 1 } JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object") class SomeLiteral() { int prop1 }

[gwt-contrib] Proposal for making Object literals more intuitive to define

2016-04-06 Thread Paul Stockley
Would it be possible add support for JsType(literal=true). I am not proposing this would work according to the future object literal spec. It would just be the equivalent of JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object), I think this would make the code a lot more intuitive

Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-22 Thread Paul Stockley
SomeObjectLiteral(), o -> { o.field1 = > 1; o.field2 = "str"; }); > > } > > > Copied from kotlin (although without method extensions and method inline > is not the same ;)), this is usable for client and server code when you > need to initialize small pojos without fluent

Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-21 Thread Paul Stockley
I have come up with 3 approaches to creating object literals given the current JsInterop capabilities: *1) Construct and set the fields individually* @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") class SomeObjectLiteral { int field1; String field2; }

[gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-21 Thread Paul Stockley
> > I am making decent progress refining the API and making it more usable. I > have decided to do a direct port > > of http://todomvc.com/examples/react/#/. One of the reasons I chose this was so I could have a direct comparison of the Javsascript vs Java code. I am about half way done. The

Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-21 Thread Paul Stockley
I think having a really succinct way of dealing with JS Object literals will be key to inter-op with existing java script code. Is the plan to land the enhanced support in the 2.x code base or will this be j2cl only? I really hope it will be included on 2.x In the meantime I have come up with

Re: [gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-19 Thread Paul Stockley
Success! With some javascript hacking I have managed to get it working. I can retrieve props and state and also set state from an onClick callback. Below is my contrived solution @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") public class AbstractClassicComponent {

Re: [gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-19 Thread Paul Stockley
I tried using a JsType instead of JavaScriptObject and it is still undefined. I have logged a ticket with the details. On Wednesday, March 16, 2016 at 12:05:30 PM UTC-4, Goktug Gokdogan wrote: > > > > On Wed, Mar 16, 2016 at 8:51 AM, Paul Stockley <pstoc...@gmail.com >

[gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-19 Thread Paul Stockley
I am running the latest snapshot build as of a couple of days ago and starting SD mode with Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir,

[gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-19 Thread Paul Stockley
> > Well I think I have hit a roadblock with the current state of JsInterop. > Given the code below > > > public class Example { > > @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") > private static class State extends BaseState { > public String

Re: [gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-18 Thread Paul Stockley
Success! With some javascript hacking I have managed to get it working. I can access state and props and set state as a result of an onClick event. I think it might be possible to get react fully working. Below is my somewhat contrived solution -- You received this message because you are

[gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-15 Thread Paul Stockley
I have made a bit more progress. I managed to get functional components working. @JsType(isNative = true) private static class FuncProps extends BaseProps { public String aProp; } static final public native FuncProps makeFuncProps() /*-{ return {}; }-*/; @Override public void

Re: [gwt-contrib] Trying to use JsInterop to work with React

2016-03-15 Thread Paul Stockley
I didn't have any success with any of the methods you presented. See below import java.util.function.Function; @JsType(namespace = JsPackage.GLOBAL, name="CustomComponent") public class CustomComponent extends React.Component { public BaseProps props; public ReactElement render() {

[gwt-contrib] Constructing a new JsType(isNative=true) object

2016-03-14 Thread Paul Stockley
Is it legal to call new on a class marked as JsType(isNative=true)? When I try it, I get a runtime error. @JsType(isNative=true, name="HTMLProps", namespace=JsPackage.GLOBAL) public class HTMLProps { ... } new HTMLProps() results in the following code new $wnd.HTMLProps which is undefined.

[gwt-contrib] Re: Latest snapshot appears to be missing files

2016-03-14 Thread Paul Stockley
I guess the 2.8 beta that was released included it. On Monday, March 14, 2016 at 3:59:18 PM UTC-4, Thomas Broyer wrote: > > Asm was removed back in 2.7, it's standard asm 5. > Note that this is only true if the JARs published to the Central > Repository. -- You received this message because

[gwt-contrib] Re: Latest snapshot appears to be missing files

2016-03-14 Thread Paul Stockley
Thanks. It also looks like asm was removed from gwt-dev.jar. what happened to this? On Monday, March 14, 2016 at 2:35:24 PM UTC-4, Thomas Broyer wrote: > > Those have moved into their own JAR > (com.google.jsinterop:jsinterop-annotations IIRC) -- You received this message because you are

[gwt-contrib] Latest snapshot appears to be missing files

2016-03-14 Thread Paul Stockley
The gwt-user-2.8.0-20160314.060945-195.jar snapshot is missing the jsinterop.annotations package. Is the build known to be broken? -- You received

Re: [gwt-contrib] Trying to use JsInterop to work with React

2016-03-14 Thread Paul Stockley
Then use as getConstructor(".MyComponent") > > (Requires you to enable JsInterop exports -generateJsInteropExports) > > 4) A fragile JSNI hack that may break in any version: > > native Function getConstructor(Class clazz) /*-{ > return @Class::getPrototypeFo

[gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-13 Thread Paul Stockley
I got the following working. Seems like there should be a cleaner way. @JsType public class CustomComponent { public static ReactElement render() { return React.createElement("div", null, "It works"); } static final public native JavaScriptObject makeSpec() /*-{

Re: [gwt-contrib] Trying to use JsInterop to work with React

2016-03-13 Thread Paul Stockley
If I can get a fully working proof of concept I may consider creating a project on github. However, there is still a lot to prove before I get to that stage. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group

Re: [gwt-contrib] Trying to use JsInterop to work with React

2016-03-13 Thread Paul Stockley
ate correct code inside your function to access those properties, >> but I would be less sure about non-static helper methods still being around >> in the generated component. >> >> On Sun, Mar 13, 2016 at 3:35 PM Paul Stockley <pstoc...@gmail.com >> > wrote:

[gwt-contrib] Trying to use JsInterop to work with React

2016-03-13 Thread Paul Stockley
We have started using React (using ES6 and FlowTypes) which is quite nice. However, we have a large GWT application that we want to start embedding React within. This makes perfect sense for migrating away from Widgets to a more modern approach. So I decided I would try and define a Java Api

[gwt-contrib] Re: Jsinterop and Angular2

2015-11-20 Thread Paul Stockley
I think you will have a hard time using Angular 2 with GWT as it stands. I asked questions about supporting some of the more advanced features used by Angular2 such as decorators and they are not supported. In addition, you would have to take the output from GWT and run it through babel or a

[gwt-contrib] Re: New JsInterop document

2015-11-19 Thread Paul Stockley
We wrote our own RPC mechanism that is based entirely on JSON, mainly for performance reasons on mobile. The client works with JS Overlay representation of the server DTO objects. We have a tool that automatically generates the JSO's, Looking at the new interop spec's it would be really nice

Re: [gwt-contrib] Re: New JsInterop document

2015-11-13 Thread Paul Stockley
JS. There's > no real plans to support ES6 in GWT, but you could arrange enough hacks > with Generator/Linker/Library stuff to make GWT 2.x stuff consumable from > ES6 code. > > On Fri, Nov 13, 2015 at 1:21 PM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> A num

[gwt-contrib] Re: New JsInterop document

2015-11-13 Thread Paul Stockley
A number of the new frameworks (Angular 2, Aurelia) are planning on using ES6 and ES7 features such as Modules, Decorators, Generators and Async functions etc. Are there plans to support these on the 2.x code base or would these only be supported by j2cl in the future? On Friday, October 23,

Re: [gwt-contrib] JSInterop @JsProperty overriding name

2015-07-30 Thread Paul Stockley
Is there a better idea of exactly what Js Interop will look like when 2.8 is released. The document referenced above was last updated on Sept 2014. From this proposal, what will and wont make it into 2.8. This whole area has become very confusing with all the changes in direction that seem to

Re: [gwt-contrib] Re: Code for GSS support (GssResource) pushed. Please review.

2014-10-24 Thread Paul Stockley
Is there a way to do an explicit one-time conversion to the new gss format? I would want to do this on my major css files so I can take advantage of the new features. On Friday, October 24, 2014 4:37:18 AM UTC-4, Thomas Broyer wrote: On Thursday, October 23, 2014 11:40:08 PM UTC+2, Julien

[gwt-contrib] Re: Next GWT Contributor Hangout

2013-10-31 Thread Paul Stockley
When will the video be posted. Thx On Friday, October 25, 2013 5:08:19 PM UTC-4, Bhaskar Janakiraman wrote: The next GWT contributors hangout will be on Wednesday, Oct 30, 10.45 - 11.30am PST. We are making a change to the hangout sessions: it will be a regular hangout and not a

[gwt-contrib] Length of obfuscated class names

2012-07-05 Thread Paul Stockley
I am was looking at the size of the generated output for a program we run on the ipad and noticed that the injected css and html strings were taking quite a lot of space. All the obfuscated class names appear to be 10 characters long. Is there a reason they need to be this long? Couldn't they

[gwt-contrib] 2.4 Uibinder code inefficiency

2011-12-20 Thread Paul Stockley
I use a lot of HTML panels so I can use native html for as much layout and styling as possible for performance reasons. I try and minimize the number of widgets I use which is especially helpful on mobile devices. As a result, I use quite a lot of css class references to either local uibinder