Re: Jsinterop: java arrays, native arrays, JsArray and strings

2019-12-18 Thread Kirill Prazdnikov
> > So > >- Arrays, double are mapped to native types. > > Not really, for float[] or for double[] there is corresponding Float32Array and Float64Array, or Int32Array for int[]. But the GWT uses JsArray of JsObjects and use JsNumber (boxed double) for any primitive types. As result, any

Generate user.agent independent code

2018-12-21 Thread Kirill Prazdnikov
I prefer to select the one single permutation: -- 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+unsubscr...@googlegroups.com. To post to this

Re: First application working as both J2CL and gwt2 at the same time

2018-11-27 Thread Kirill Prazdnikov
I mean different. Not collapsed, but single perm with sso linker. -- 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+unsubscr...@googlegroups.com.

Re: First application working as both J2CL and gwt2 at the same time

2018-11-27 Thread Kirill Prazdnikov
I agree, if you compare GWT vs J2CL program, then it is fair to switch GWT to single permutation single-script linker before to measure. And even more fair is to compare all if the compilers [GWT, J2CL, TeaVM], in terms of script size (compressed) and in terms of code performance (not DOM

Why the GWT complier used so much memory?

2018-09-04 Thread Kirill Prazdnikov
GWT is a Java application. JVM use all memory you allow it to use. -- 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

Re: Problem with replacing the class

2018-07-23 Thread Kirill Prazdnikov
> > What you want to achieve can be done through "super sourcing". See > “Overriding one package implementation with another” at > http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml > Thanks, that works. -- You received this message because you are

Problem with replacing the class

2018-07-19 Thread Kirill Prazdnikov
Hi I`m having troubles to replace one class by another This is the class I want to replace: package delightex.math.fp; public class FloatBits { public static int floatToRawIntBits(float v) { return Float.floatToIntBits(v); } public static float intBitsToFloat(int v) { return

Arrays and JSNI in J2CL

2018-07-13 Thread Kirill Prazdnikov
Hi, I've heard that mysterious J2CL does not support JSNI, good. But how then the Float32Array is implemented ? As far as I know, there is no JSIndexer-like (hello TeaVM) annotation in JsInterop ? Currently everyone is using JSNI llike public static native float getF(Float32Array data,

Re: Out Of Memory error with huge payload in IE 11 + GWT

2018-04-11 Thread Kirill Prazdnikov
Fix what ? You app or IE11 ? Do you need random access to 2GB data in your web app ? How do you use this 2GB data ? as a JSON ? or as an ArrayBuffer ? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: Submit POST data with no callback

2018-04-11 Thread Kirill Prazdnikov
What about JsInterop ? Use the new fetch or old school XMLHttpRequest -- 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

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Kirill Prazdnikov
JSNI is not recommended. If you can assign types, go with JsInterop, if not -> then you have a map String->? -- 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

Re: GWT 2.8.2 release

2017-10-27 Thread Kirill Prazdnikov
We also have a new regression with 2.8.2. We have some problems with String[] as generics argument, we will try to develop a test later. -- 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

Very big performance problem with Long

2017-10-26 Thread Kirill Prazdnikov
Hi, the problem is that Long.rotateLeft is more then 10x times slower then its copy paste as private long rotateLeft(long w, int r) { return (w << r) | (w >>> -r); } can this be fixed ? -- You received this message because you are subscribed to the Google Groups "GWT Users" group.

Re: Strange issue

2017-10-24 Thread Kirill Prazdnikov
It is strange that the problem is not reproducible on my working Windows PC. Also it work on a MAC. It seems to be kind of floating. -- 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

Strange issue

2017-10-24 Thread Kirill Prazdnikov
Hi, we have a strange error on our build server after migrate to 2.8.2: [18:51:49][Step 4/4] [INFO] --- gwt-maven-plugin:2.8.2:compile (default) @ cospaces-studio-gwt --- [18:51:52][Step 4/4] [INFO] Compiling module delightex.CoSpaces [18:52:30][Step 4/4] [INFO]Tracing compile failure path

Re: WebAssembly a good fit for the future of GWT?

2017-09-26 Thread Kirill Prazdnikov
Hi вторник, 26 сентября 2017 г., 18:44:27 UTC+3 пользователь salk31 написал: > > In the scale of thing the Java -> WebAssembly is probably relatively easy > bit? > No, Java is HARD to execute. For example it is not possible to "unwind" or to walk the stack in WebASM, so java execution must

WebAssembly a good fit for the future of GWT?

2017-09-26 Thread Kirill Prazdnikov
TeaVM is capable of Java to WebASM translation. However you must understand that WebASM can not access to * DOM * Network * WebGL * WebAudio * GC * Any JavaScript Object It can only do [+, -, *, /, read, write] of [int8, int16, int32, int64, float32, float64] and make calls to

Data class in JsInterop

2017-09-15 Thread Kirill Prazdnikov
Hi, I need the following code needs to be generated: function f(a,b) { return { a:a, b:b }; } This is super - easy in JSNI mode. However to be in the modern stream and to be portable I trying to do that using JsInterop @JsType(namespace = JsPackage.GLOBAL) public class JsClass { public

JavascriptObject.createObject().cast() ClassCastException

2017-09-08 Thread Kirill Prazdnikov
I do not see any usage of *Impl, are they there ? -- 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+unsubscr...@googlegroups.com. To post to this

Re: ClassCastException in generics

2017-08-24 Thread Kirill Prazdnikov
https://bugs.chromium.org/p/chromium/issues/detail?id=758240 -- 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+unsubscr...@googlegroups.com. To

Re: ClassCastException in generics

2017-08-23 Thread Kirill Prazdnikov
> > > >> Then my next question: >> >> if GWT generates checkckast as "yze_g$(fileBuffer_0_g$, >> $wnd.ArrayBuffer)", where "$wnd.ArrayBuffer" is a type >> how can I ask GWT to generate checkckast to ArrayBuffer, not to >> $wnd.ArrayBuffer ? >> > > In case you *really* need to reference a

Re: ClassCastException in generics

2017-08-23 Thread Kirill Prazdnikov
> > public static native FileReader newFileReader() /*-{ > return new *$wnd*.FileReader(); > }-*/; > > This will not help, fileReader.resultArrayBuffer()returns not a instance of $wnd.ArrayBuffer anyway. -- You received this message because you are subscribed to the Google Groups "GWT

Re: ClassCastException in generics

2017-08-23 Thread Kirill Prazdnikov
> > >1. your GWT script? If which option did you use ScriptInjector. If yes >- did you setWindow? > > Yes this is all our GWT script, nothing extra. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: ClassCastException in generics

2017-08-23 Thread Kirill Prazdnikov
> > instanceOfArrayBuffer for file = false > instanceOfArrayBuffer for good copy = true > > Uncaught Error: java.lang.ClassCastException > I think that it is a problem for generics. GWT will fail its checkcast for any instance of system type (like array buffer or whatever) for any

Re: ClassCastException in generics

2017-08-23 Thread Kirill Prazdnikov
> > ArrayBuffer arrayBuffer = fileReader2.resultArrayBuffer(); > > Logger.log("instanceOfArrayBuffer for file = " + > isInstanceOfArrayBuffer(arrayBuffer)); > > ArrayBuffer good = new ArrayBuffer(arrayBuffer.getByteLength()); > > new Int8Array(good).set(new Int8Array(arrayBuffer)); > >

Re: ClassCastException in generics

2017-08-23 Thread Kirill Prazdnikov
> > Is the FileReader "instanceof $wnd.FileReader"? (Walk up the chain) What is interesting, FileReader created with JSNI *is not* isInstanceOfFileReader, public static native FileReader newFileReader() /*-{ return new FileReader(); }-*/; but FileReader created with jsType and

Re: ClassCastException in generics

2017-08-22 Thread Kirill Prazdnikov
This is the result of https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer How that can be fixed ? -- 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

Re: ClassCastException in generics

2017-08-22 Thread Kirill Prazdnikov
> Could it possibly be that the ArrayBuffer is coming from another browsing > context? (iframe) > What would the following output? > > private native boolean isInstanceOfArrayBuffer(Object x) /*-{ > return x instanceof $wnd.ArrayBuffer; > }-*/; > > On Tuesday, August 22, 2017 at 2:04:30

Re: ClassCastException in generics

2017-08-22 Thread Kirill Prazdnikov
t the ArrayBuffer in a List, Array, Set? >- Something else? > > I looked but I didn't find in the thread the description of the java > caller that throws the exception. > > > On Tue, Aug 22, 2017 at 3:04 PM, Kirill Prazdnikov <pki...@gmail.com > > wrote: > >> Sorry, c

Re: ClassCastException in generics

2017-08-22 Thread Kirill Prazdnikov
Sorry, copypaster error, here is the fixed getType(buffer) = [object ArrayBuffer] typeOf(buffer) = object вторник, 22 августа 2017 г., 15:02:49 UTC+3 пользователь Kirill Prazdnikov написал: > > Here it is: > > getType(buffer) = [object ArrayBuffer] > typeOf(buffer) = [obj

Re: ClassCastException in generics

2017-08-22 Thread Kirill Prazdnikov
Here it is: getType(buffer) = [object ArrayBuffer] typeOf(buffer) = [object ArrayBuffer] private native String getType(Object x) /*-{ return Object.prototype.toString.call(x); }-*/; private native String typeOf(Object x) /*-{ return typeof x; }-*/; понедельник, 21 августа 2017 г.,

Re: ClassCastException in generics

2017-08-21 Thread Kirill Prazdnikov
uffer extension? > If you print the variable you are trying to cast in the console? Does it > says that's an ArrayBuffer? > > I jave been fighting with jsinterop exceptions for some time and I know > that it can be very frustrating. > > Vassilis > > > >

Re: ClassCastException in generics

2017-08-21 Thread Kirill Prazdnikov
Im talking about standard ArrayBuffer https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer >From the console of the web browser: What is it required to create a new > ArrayBuffer? > > -- You received this message because you are subscribed to the Google

Re: ClassCastException in generics

2017-08-21 Thread Kirill Prazdnikov
Ok, according to the doc, the name: > Customizes the name of the type in generated JavaScript. If not > provided, the simple Java name will be used. That means that for my case @JsType(isNative = true, namespace = JsPackage.GLOBAL) > public abstract class ArrayBuffer { ... } This is

Re: ClassCastException in generics

2017-08-18 Thread Kirill Prazdnikov
I do not get your suggestion. How that will help. -- 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+unsubscr...@googlegroups.com. To post to this

Re: ClassCastException in generics

2017-08-18 Thread Kirill Prazdnikov
I do not think I can use name = "Object" with @JsType(isNative = true, namespace = JsPackage.GLOBAL) public abstract class ArrayBuffer { ... } -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving

ClassCastException in generics

2017-08-18 Thread Kirill Prazdnikov
Hi, I`m always getting ClassCastException if I use @JsType(isNative = true) object as a generic template argument. Is it possbile to do something with that ? Is it possbile to avoid check-cast generation if the generic is used with @JsType type ? Thanks -- You received this message

Accessing "basic" JS Object in JsInterop callback

2017-08-15 Thread Kirill Prazdnikov
What prevents you using a proper JsType for callback arg ? public interface Callback { void call(ArgT event); } @JsType inerface ArgT { @JsProperty A getA(); @JsProperty B getB(); // e.t.c } -- You received this message because you are subscribed to the Google Groups "GWT Users"

Re: Can I remove compile permutations for the default language

2017-08-07 Thread Kirill Prazdnikov
> > I recommend you dropping permutations at all. Leaving the one. > We did this few years ago and it`s good. And how do you did that ? > The following in .gwt.xml -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this

Can I remove compile permutations for the default language

2017-07-20 Thread Kirill Prazdnikov
I recommend you dropping permutations at all. Leaving the one. We did this few years ago and it`s good. -- 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

Re: Devmode in NetBeans

2017-06-19 Thread Kirill Prazdnikov
Actuallty, the new Dev Mode is also very good for me (under non-free IDEA though) -- 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

how to avoid JSNI

2017-06-16 Thread Kirill Prazdnikov
Hi, since arrays are very slow (see https://github.com/gwtproject/gwt/issues/9501) I have to use the following code to workaround: public native byte[] createFastInt8(int size) /*-{ return new Int8Array(size); }-*/; The same time I want to avoid using JSNI to be future compatible so How

Re: Any issues running in detailed (or pretty) style in production?

2017-06-07 Thread Kirill Prazdnikov
We use single permutation (safari) for all browsers, if you do not, you have to look at target\projectName-1.0-SNAPSHOT\projectName\compilation-mappings.txt in order to understand which script is current. Then go to target\projectName-1.0-SNAPSHOT\WEB-INF\deploy\projectName\symbolMaps

Re: Any issues running in detailed (or pretty) style in production?

2017-06-07 Thread Kirill Prazdnikov
just look in to the directory and look into the files. damn easy i don't remember exactly (can build my project and write later) среда, 7 июня 2017 г., 23:54:42 UTC+3 пользователь rjcarr написал: > > > There is a file (produces during build) with all names mapping to java > methods. You can

Re: Any issues running in detailed (or pretty) style in production?

2017-06-07 Thread Kirill Prazdnikov
Hi They're getting an unresponsive script error, and the browser will tell > them where it is, but the code is obfuscated. > It is not an issue if you have obfuscated stack trace. There is a file (produces during build) with all names mapping to java methods. You can de-obfuscate it manually.

[gwt-contrib] Re: Elemental2 1.0.0-beta-1 and casting behaves unexpectedly

2017-05-31 Thread Kirill Prazdnikov
Hi, I have the same issue and use the same JSNI hack It is interesting why GWT does runtime type checks for @JsType(isNative = true) ? Why is it reasonable ? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group

Code not working fine with IE11

2017-05-24 Thread Kirill Prazdnikov
default permutation for Chrome (safari) works perfectly for us under all browsers (FF, EDGE, Chrome, Safari) -- 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

Performace of String.hashCode

2017-05-19 Thread Kirill Prazdnikov
Hi, it seems like compute of String.hashCode lead to making a new string to be created each call: String key = ":" + str; Isnt it a performance penalty ? I removed body of StringHashCache.getHashCode and replaced it with simple return compute(str); After that I got 15x times boost in my

JSNI -> JsInteop

2017-05-17 Thread Kirill Prazdnikov
Hi, I`m looking for methods to migrate completely to JsInterop. It is not clear how to translate for (var id in object) { ... } ? Any suggestions ? Thanks -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: java.util.Lists in Gwt super dev mode debugger

2017-05-02 Thread Kirill Prazdnikov
Im using 2017.1.2, the latest production build -- 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+unsubscr...@googlegroups.com. To post to this

Re: java.util.Lists in Gwt super dev mode debugger

2017-05-02 Thread Kirill Prazdnikov
-- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group

java.util.Lists in Gwt super dev mode debugger

2017-05-02 Thread Kirill Prazdnikov
Hi, I work in IDEA and see this messages too, however it does not stop you opening lists and see its content. IDEA can not stingify an array, but it can open it, just press +. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from

Re: GWT/Maven development cycle takes much too long

2017-04-19 Thread Kirill Prazdnikov
> > You did not address the special problem with the two maven projects: > Yes, sorry about that I'm not maven expert, I don`t know details. We use IDEA to start superdevmode and use maven modules list in parent pom so that there is no need to mvn-install all the modules and IDEA maven plugin

GWT/Maven development cycle takes much too long

2017-04-18 Thread Kirill Prazdnikov
First of all I recommend remove all permutations. This is very easy, add this to module.gwt.xml: This will use the only perm for all browsers. That are not needed actually. Then you can omit GWT compilation at all before you are going to start super-dev-mode because codeserver itself will

Re: Slow debugging with SDM

2017-04-11 Thread Kirill Prazdnikov
The same issue we have in IDEA GWT debugger. Debugging GWT apps consumes 100% CPU all the time in Chrome. It is slightly faster using the latest Chrome Canary. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: Compilation of a large GWT application?

2017-04-11 Thread Kirill Prazdnikov
We have detached a complex script projectional editor with completion. The interface was very easy - to provide containing element, context for completion, the script itself and callbacks for saving the scripts. -- You received this message because you are subscribed to the Google Groups "GWT

Re: Compilation of a large GWT application?

2017-04-10 Thread Kirill Prazdnikov
As far as I know this will add lots of GWT internal stuff which I not going to export. Right ? понедельник, 10 апреля 2017 г., 21:57:33 UTC+3 пользователь Daniel Kurka написал: > > If you compile your gwt app with -generateJsInteropExports any @JsType is > accessible in global scope: > >> >>

Re: Compilation of a large GWT application?

2017-04-10 Thread Kirill Prazdnikov
You can also use DOM Elememts as an interop types. -- 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+unsubscr...@googlegroups.com. To post to this

Re: Compilation of a large GWT application?

2017-04-10 Thread Kirill Prazdnikov
The approach is very simple and easy, you use you detached GWT app like any other JS script. Any GWT app is a JS script. 1st you need to define the interface of the detached module in terms of JsInterop: isNative = true. You can only use Strings, numbers, arrays and isNative = true interfaces.

Re: Generator Class Name

2017-04-10 Thread Kirill Prazdnikov
GWT 3? It is real ? -- 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+unsubscr...@googlegroups.com. To post to this group, send email to

Compilation of a large GWT application?

2017-04-09 Thread Kirill Prazdnikov
Think about to split your app into several apps and interop between them via jsinterop. We did that and detach 1 mb of genersted js app. Our app is pretty big, resulting js is 3mb, we use single perm for all browsers and not using gwt i18n. But you can not use any java type to interop

Re: Caching of Static Files in GWT

2017-03-29 Thread Kirill Prazdnikov
Please, this forum is about GWT Java->JS compiler, not about how to configure this or that web server. Thanks -- 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

Re: Animating images in GWT

2017-02-15 Thread Kirill Prazdnikov
Use can use requestAnimaionFrame, as we do. (https://studio.cospaces.io) It has exact and precise timing information in the argument -- 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

Re: List of native JsType

2017-02-08 Thread Kirill Prazdnikov
Hi, You can use @JsProperty instead of "int value;": @JsProperty public abstract int getValue(); -- 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

Re: float[] is super slow

2017-02-06 Thread Kirill Prazdnikov
The reason I'm asking is because Super-source solution can not change all "new int[...]" invocations in my program. As far as I understand, the SS solution can change some ArrayFactory and each time I need to use it I have to write ArrayFactory.createFloatArray. "new float[]" will not be

Re: float[] is super slow

2017-02-06 Thread Kirill Prazdnikov
OK thanks. How can I personally patch the compiler to use Float32Array Int8Array, Int16Array, Int32Array, e,t,c ? Is it super-hard ? Is there a single place that generates new basic type array ? If it is possible I could deploy the patched version to our company local repository. Thanks

float[] is super slow

2017-02-04 Thread Kirill Prazdnikov
Hi, the problem is that it is too slow compare to Float32Array. Especially it is super-slow it everything except chrome: FF, IE\EDGE. More then that, it produce tonns of garbage (in FF and EDGE) working with large images: Here I wrote some float[] code to emulate water surface

Re: Method gives a different result than Javascript after wrapping it using JsInterop.

2017-02-04 Thread Kirill Prazdnikov
better to Double ( null might be possible) -- 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+unsubscr...@googlegroups.com. To post to this group,

[gwt-contrib] Re: Thoughts on DevMode

2017-01-13 Thread Kirill Prazdnikov
> > have been pushing for more than a year now to delete it from GWT proper > too. > Are there any updates on that ? Is there some patch for review ? Thanks -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this

Re: GWT 2.8.0 released

2017-01-06 Thread Kirill Prazdnikov
This depends on amount of code and permutations you build. -- 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+unsubscr...@googlegroups.com. To post

Re: Need some help with debugging an issue in GWT SDM compiler

2016-12-16 Thread Kirill Prazdnikov
some time finding a probable bug in the > compiler itself and give back to the community by fixing it than constantly > working around the issue. > > On Saturday, December 17, 2016 at 2:11:09 AM UTC+1, Kirill Prazdnikov > wrote: >> >> mvn clean and clean temp folder befo

Re: Need some help with debugging an issue in GWT SDM compiler

2016-12-16 Thread Kirill Prazdnikov
mvn clean and clean temp folder before compile will help суббота, 17 декабря 2016 г., 0:49:30 UTC+3 пользователь Nándor Előd Fekete написал: > > Hi! > > I have this strange problem in SDM, where a method in the generated output > JS gets defined under a name, but gets referenced under another

Re: [gwt-contrib] Re: Size of output is little large

2016-12-13 Thread Kirill Prazdnikov
That sounds very good, can you share the source ? The 3) and 4) is most interesting. Thanks Ray Cromwell: > > FYI: https://plus.google.com/+RayCromwell/posts/VK8URgZiLbS > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe

[gwt-contrib] Re: Size of output is little large

2016-12-13 Thread Kirill Prazdnikov
Hello, Thanks for the explanation, did the job, and removed "$wnd.setTimeout($entry(assertCompileTimeUserAgent));" at the entry point. But document.compatMode.severity=IGNORE did not change anything in code generation, it still generates severity =

Re: Windows 10 compatibility

2016-12-13 Thread Kirill Prazdnikov
Are there any plans to remove legacy dev-mode ? -- 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+unsubscr...@googlegroups.com. To post to this

[gwt-contrib] Size of output is little large

2016-12-12 Thread Kirill Prazdnikov
Hi, I have a simple GWT program: https://gist.github.com/kirillp/c443966b28ca68cd21e51ff802fde97d And it compiles and run. However, in single permutation "safari" and SSO linker it produce about 1100 lines of (auto-formatted) code including user agent parser, adds a window listener, e.t.c

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-30 Thread Kirill Prazdnikov
mber 29, 2016 at 6:44:37 AM UTC-8, Kirill Prazdnikov wrote: >> >> Do you use SSO ? SSO script is smaller then no SSO. Did you run CC on it ? >> >> 29 нояб. 2016 г. 17:29 пользователь "Etienne Basso" <ebas...@gmail.com> >> написал: >> >&g

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-29 Thread Kirill Prazdnikov
I've tried WITHOUT any success to use closure compiler externally with >>> GWT 2.8 >>> See my question here: https://groups.google.co >>> m/forum/#!searchin/google-web-toolkit/closure$20compiler% >>> 7Csort:date/google-web-toolkit/k_kjIv9Klsg/LZAZiUf9BAAJ >

[gwt-contrib] Re: What is the status of J2CL?

2016-11-28 Thread Kirill Prazdnikov
It is interesting: does J2CL support JSNI or not. Currently, @JsIndexer annotation does exist, so that it is impossible to work with js-arrays without JSNI. There are possibilities for J2CL: to have @JsIndexer, to support JSNI, both, something else. Konstantin, have you ever considered using

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-28 Thread Kirill Prazdnikov
on real > world projects. And in the end the code compiled with closure was slower in > every case (although smaller). So I never understood why anyone would want > to use that closure compile on top of gwt compile. > > Op donderdag 24 november 2016 15:05:50 UTC+1 schreef Kirill P

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-26 Thread Kirill Prazdnikov
Hi > I've tried WITHOUT any success to use closure compiler externally with GWT > 2.8 > Did you try SSO ? Did you run Closure Compiler on SSO output script ? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-25 Thread Kirill Prazdnikov
Hi Jens, What if we have SSO linker ? Then no hacks is needed, right ? Then just run the Google Closure Compiler on the output. -- 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

Re: GWT UI Library: which one?

2016-11-24 Thread Kirill Prazdnikov
Can you show screen how modern UI should look like ? Is there a Js library that renders a nice looking UI ? -- 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

Re: Announcing Dikalo

2016-11-24 Thread Kirill Prazdnikov
and the native mobile clients. All GWT. > This sounds very good. How do you compile a GWT app to native app ? As far as I know GWT is Java -> JS compiler. How do you that translate JS to native ? Or do you execute Js in a native app ? -- You received this message because you are

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-24 Thread Kirill Prazdnikov
Hi, I think you can - enable single permutation, single script linker - run the tool from maven build: apply gwt maven plugin, and then apply required version of Closure Compiler On Thu, Nov 24, 2016 at 5:43 PM, Óscar Frías Barranco wrote: > > >> Do you plan to bring

Re: GwtMaterialDesign vs gwt-polymer-elements

2016-11-24 Thread Kirill Prazdnikov
> > > 4. Future-proofing regarding GWT 3.0, using only JS-Interop with no widgets > And no JSNI ? -- 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

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-24 Thread Kirill Prazdnikov
Do you have performance measurements ? Did the performance better for 2.7 ? Did you measured real transfer traffic (web server supports real-time GZ compression over HTTP) ? Thanks On Thursday, November 24, 2016 at 3:46:49 PM UTC+3, Óscar Frías Barranco wrote: > > Hi. > > We are trying to

Re: GWT 2.8.0 compile warnings

2016-11-24 Thread Kirill Prazdnikov
On Thursday, November 24, 2016 at 12:13:23 AM UTC+3, Jens wrote: > > Also try deleting your gwt-unitCache. > This helps for our case many times per day. Even more we have a special single-button-task in IDEA that clears all gwt-unitCache(es) and this really helps in compilation and

Re: GWT Code Splitting: The GWT Stuff and My Core Java Classes

2016-11-20 Thread Kirill Prazdnikov
Kotlin JS is what you are asking for, it is a modular system. -- 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+unsubscr...@googlegroups.com. To

Re: Payment gateway for an existing GWT application

2016-11-20 Thread Kirill Prazdnikov
> Can anyone point me to the right direction on how do I implement this? > Examples will be very beneficial. Thanks. > Try to understand JsInterop, and then you will easy link and use any JS lib with your app. -- You received this message because you are subscribed to the Google Groups

Re: Problem with GWT 2.8

2016-11-19 Thread Kirill Prazdnikov
All cmp operations with NaN returns false. -- 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+unsubscr...@googlegroups.com. To post to this group,

Re: Class cast problem

2016-11-15 Thread Kirill Prazdnikov
In this situation, for some reason, a call to castToNative(Object src, JavaScriptObject jsType) (Cast.java:155) is generated. And no parameter jsType is present. However it seems reasonable to call to castToJso(Object src). -- You received this message because you are subscribed to the

Class cast problem

2016-11-15 Thread Kirill Prazdnikov
Hi I have two JsNative classes: @JsType(isNative = true, namespace = JsPackage.GLOBAL) public abstract class ArrayBuffer {...} and @JsType(isNative = true) public interface JSObject { @SuppressWarnings("unchecked") @JsOverlay default T cast() { return (T) this; } } and I

Re: Internet Explorer Google Web Toolkit Plugin Installing but not Working.

2016-11-14 Thread Kirill Prazdnikov
Why not to approve the dev-mode-delete.patch ? -- 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+unsubscr...@googlegroups.com. To post to this

Re: GWT UI Library: which one?

2016-11-13 Thread Kirill Prazdnikov
We end up writing own UI elements, portable across GWT, TeaVM, RoboVM, MOE and Android -- 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

Re: Internet Explorer Google Web Toolkit Plugin Installing but not Working.

2016-11-13 Thread Kirill Prazdnikov
I`m not sure, but I saw people were saying that they will deprecate all of dev mode code finally, one day... No dev mode - no questions -- 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

Re: Single JS for all browsers with SIngle Script Linker

2016-11-13 Thread Kirill Prazdnikov
better to use one single script for all browsers rather then collapsing all different scripts: our app works well for all browsers: https://studio.cospaces.io/#Gallery четверг, 10 ноября 2016 г., 5:03:14 UTC+3 пользователь Marko написал: > > It works with ! > > Thank you! > > Marko > > On

Re: Compiler error

2016-11-09 Thread Kirill Prazdnikov
It seems like it is a java.lang.NullPointerException in the compiler at com.google.gwt.dev.jjs.impl.Pruner.transformToNullMethodCall(Pruner.java:608) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: Can a GWT Dev Mode plugin be rewritten for Chrome using NACL?

2016-11-05 Thread Kirill Prazdnikov
I think people complaining because debug in chrome so slow today. There are some bugs. I use old build of chrome to debug apps. On Saturday, November 5, 2016 at 1:48:29 PM UTC+3, Thomas Broyer wrote: > > > > On Saturday, November 5, 2016 at 11:23:33 AM UTC+1, Ariel Viera wrote: >> >> Is

Re: jqm4gwt ver. 1.4.7 released

2016-10-29 Thread Kirill Prazdnikov
On Saturday, October 29, 2016 at 4:12:00 PM UTC+3, Alain wrote: > > > https://github.com/jqm4gwt/jqm4gwt/blob/master/library/src/main/java/com/sksamuel/jqm4gwt/button/JQMButton.java > > Have not checked the entire code. > Thanks, I see lots of gwt-user dependencies: Widget, ClickHandler,

  1   2   3   >