Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Colin Alworth
    @niloc132
    is this a compile time failure?
    i thought i had understood from related code that this could take a dotted reference and break it down
          JsStatement createGwtOnLoadFunctionCall =
              constructInvocation("ModuleUtils.addInitFunctions", arguments).makeStmt();
    for example
    but perhaps that is used as a key (irritating how sometimes strings must be individual js identifiers, and sometimes not...)
    Rocco De Angelis
    @rdeangelis83
    Unable to locate index method: Object.defineProperty. Yep during the compile time.
    I will try to fix it tomorrow morning.
    Colin Alworth
    @niloc132
    interestingly, the code you referenced says it is Object.defineProperties, but actually is Runtime.defineProperties
    perhaps these are java references and i missed the point - i was trying to come up with the js name reference
    Rocco De Angelis
    @rdeangelis83
    Yahhh I have seen that. :)
    Colin Alworth
    @niloc132
    i'll have a patch for you shortly - locally i did a bit of other cleanup, ill try to run this today and make sure it goes
    Runtime.defineProperties is a helper that does some extra work, in gwt
    i don't think we actually want that, based on the chromium link you gave me
    but it would obfuscate better
    if i get it running, i'll put a patch up on gwt-review for you to try
    Rocco De Angelis
    @rdeangelis83
    @niloc132 THX!
    Short question: What is J2Wasm?
    Thomas Broyer
    @tbroyer
    An experiment to output Web Assembly rather than Closure-style JS.
    Rocco De Angelis
    @rdeangelis83
    WOW
    Colin Alworth
    @niloc132
    (there is also a kotlin backend now too - ostensibly your java can be passed through j2cl to emit kotlin sources)
    @rdeangelis83 i'm sorry, i didnt get around to finishing something, but i'll put up a gist if you want to try what i did sketch out - i think the structure is right, but i didn't get the chance to validate it
    1 reply
    Rocco De Angelis
    @rdeangelis83
    @niloc132 THX 🙏🏻 I will give it tomorrow a try
    Miroslav Pokorny
    @mP1
    always wondered how much of blazor output is actually wasm, especially considering the question of GC.
    Or Goshen
    @Oberonc
    how can I debug server side in a project with client/shared/server ?
    how to attach a debugger ?
    I have a dead lock situation and I have hard time figuring the cause
    Colin Alworth
    @niloc132
    @Oberonc easiest answer is to run the server as normal, whatever you do in production, and attach the debugger to that - typically you just pass an extra jvm arg, but sometimes your IDE has specific integration
    if you need to debug gwt at the same time, sdm can run and let you serve its js from any web server that can serve normal js
    if you are already using gwt's DevMode process, just starting it with your IDE's debug settings will let you debug the server classes normally, but we generally advise against that
    Rocco De Angelis
    @rdeangelis83
    Maybe also helpful for others, I have repaired the Chrome devtools formatters for GWT (orginal code from Sergey Vasilinets):
    https://gist.github.com/rdeangelis83/cec831abb34903fe251ede29fdbe7b12
    The code contains some obfuscated property and method name which maybe needs to be adapted.
    That is something that could be improved in the future.
    Frank Hossfeld
    @FrankHossfeld
    nice work
    Rocco De Angelis
    @rdeangelis83
    @niloc132 "Function Name Property" patch works like a charm :)
    image.png
    Rocco De Angelis
    @rdeangelis83
    @niloc132 do you think that is really necessary to support the old function.displayName property?
    Colin Alworth
    @niloc132
    @rdeangelis83 haven't researched yet to see who else uses it, but probably should leave it in at least a little while for old chrome installs
    John Huss
    @johnthuss
    The possibility of using kotlin as a source language for j2cl is cool. This is one of the things holding me back for diving into kotlin and using it everywhere instead of java.
    Colin Alworth
    @niloc132
    @johnthuss last i checked (about 3 years ago) IJ did a pretty decent job of auto-converting java to kotlin
    it got confused about SAM interfaces for lambdas, but those are worth getting right imho, possibly by hand, rather than giving it a real interface
    Thomas Broyer
    @tbroyer
    Fwiw, the current support for Kotlin is as a target language, not a source language: https://github.com/google/j2cl/blob/10fdd30b2d55c58c71c0fabb4fdc8ebe2bd1f6a0/build_defs/internal_do_not_use/j2kt_library.bzl
    You can target JS with Kotlin/JS then: https://kotlinlang.org/docs/js-overview.html
    John Huss
    @johnthuss
    OK. What is the use case for using kotlin as a target? Is this to improve on IntelliJ's built-in conversion function from java to kotlin sources?
    Thomas Broyer
    @tbroyer
    I have no idea. Possibly a replacement for J2ObjC where Java is transformed to Kotlin and then compiled for iOS through Kotlin/Native?
    Colin Alworth
    @niloc132
    right, sorry i didn't clarify that above, this is a new backend, not a frontend (the only frontends are still jdt for java or javac for java)
    i have not wandered in to the tests or what docs are present to see what kinds of use cases they imply
    Rocco De Angelis
    @rdeangelis83
    @niloc132 what steps are now necessary to get the function name property patch available in the next release? Can I take over something or help you somehow??
    Jens Nehlmeier
    @jnehlmeier
    Is there any way to send an arraybuffer (provided through JS File API, wrapped into an Uint8Array) via GWT-RPC as byte array?
    Jefferson Quesado
    @JeffQuesado_twitter

    Is there any way to send an arraybuffer (provided through JS File API, wrapped into an Uint8Array) via GWT-RPC as byte array?

    I got a workaround for this