https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • hmm, not familiar with those, what api?
    a

    ambitious-knife-25690

    04/09/2023, 8:12 PM
    hmm, not familiar with those, what api?
  • well, you would probably have to roll out your own, but, my basic understanding of this app is its going to make 20 requests to a url (with a change in some param) and process the data?
    b

    bright-gpu-74537

    04/09/2023, 8:13 PM
    well, you would probably have to roll out your own, but, my basic understanding of this app is its going to make 20 requests to a url (with a change in some param) and process the data?
  • yeah
    a

    ambitious-knife-25690

    04/09/2023, 8:14 PM
    yeah
  • so i would have a queue / pool... you kick off, say 3, request, when they finish they call a "processData", at the end of that processData it calls a "checkQueue" which would kick of another...
    b

    bright-gpu-74537

    04/09/2023, 8:15 PM
    so i would have a queue / pool... you kick off, say 3, request, when they finish they call a "processData", at the end of that processData it calls a "checkQueue" which would kick of another...
  • ahh, i'm basically doing that already
    a

    ambitious-knife-25690

    04/09/2023, 8:16 PM
    ahh, i'm basically doing that already
  • the next result can't be requested until the previous requested has returned a result
    a

    ambitious-knife-25690

    04/09/2023, 8:16 PM
    the next result can't be requested until the previous requested has returned a result
  • but you are doing something in a timer, which i dont quite understand
    b

    bright-gpu-74537

    04/09/2023, 8:16 PM
    but you are doing something in a timer, which i dont quite understand
  • ahh, i get what you're saying, you're saying do it as a response to a successful result rather than "keep checking" for a successful result
    a

    ambitious-knife-25690

    04/09/2023, 8:18 PM
    ahh, i get what you're saying, you're saying do it as a response to a successful result rather than "keep checking" for a successful result
  • exactly, the "done" (of the http) is what kicks off the next, not a timer checking
    b

    bright-gpu-74537

    04/09/2023, 8:19 PM
    exactly, the "done" (of the http) is what kicks off the next, not a timer checking
  • cool! i'll try that!
    a

    ambitious-knife-25690

    04/09/2023, 8:19 PM
    cool! i'll try that!
  • thanks!
    a

    ambitious-knife-25690

    04/09/2023, 8:19 PM
    thanks!
  • np - ill knock up a simple example tomorrow if you dont get anywhere - mainly just to make sure there isnt threading issues introduced by core/http
    b

    bright-gpu-74537

    04/09/2023, 8:20 PM
    np - ill knock up a simple example tomorrow if you dont get anywhere - mainly just to make sure there isnt threading issues introduced by core/http
  • a

    ambitious-knife-25690

    04/09/2023, 8:33 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1094721849646133408/image.png▾

  • i get rid of timers and the app is angry 😄
    a

    ambitious-knife-25690

    04/09/2023, 8:33 PM
    i get rid of timers and the app is angry 😄
  • ahh, it is unhappy with my use of timer.delay elsewhere
    a

    ambitious-knife-25690

    04/09/2023, 8:36 PM
    ahh, it is unhappy with my use of timer.delay elsewhere
  • <@385014891750096896> to follow up from yesterday, i got rid of timers and the app seems to just get "stuck" for no "obvious" reason
    a

    ambitious-knife-25690

    04/10/2023, 12:26 PM
    @bright-gpu-74537 to follow up from yesterday, i got rid of timers and the app seems to just get "stuck" for no "obvious" reason
  • I'm not sure if its due to threads but tracing everything, it all seems correct
    a

    ambitious-knife-25690

    04/10/2023, 12:26 PM
    I'm not sure if its due to threads but tracing everything, it all seems correct
  • interestingly, moving the app to something like kha and it crashes
    a

    ambitious-knife-25690

    04/10/2023, 12:27 PM
    interestingly, moving the app to something like kha and it crashes
  • Oh interesting, on hashlink the app blocks but it doesn't stop working
    a

    ambitious-knife-25690

    04/10/2023, 12:48 PM
    Oh interesting, on hashlink the app blocks but it doesn't stop working
  • if a timer is async and i call a sync http request in it - shouldn't that be non-blocking?
    a

    ambitious-knife-25690

    04/10/2023, 2:12 PM
    if a timer is async and i call a sync http request in it - shouldn't that be non-blocking?
  • The HaxeUI core's code for *Button.onMouseUp* contains a commented ``event.cancel();``. Is it remains of a debugging session, or maybe old code not removed ? I'm asking in case it's a bug and buttons are supposed to cancel the clicking event :P
    e

    early-butcher-76809

    04/10/2023, 2:14 PM
    The HaxeUI core's code for Button.onMouseUp contains a commented ``event.cancel();``. Is it remains of a debugging session, or maybe old code not removed ? I'm asking in case it's a bug and buttons are supposed to cancel the clicking event :P
  • ahhh, dang, yeah
    a

    ambitious-knife-25690

    04/10/2023, 2:23 PM
    ahhh, dang, yeah
  • awkward situation where every target breaks differently but none of them have the behaviour
    a

    ambitious-knife-25690

    04/10/2023, 2:24 PM
    awkward situation where every target breaks differently but none of them have the behaviour
  • im actually finding something really interesting with haxe http: ive setup a request queue and it _always_ pauses on the 8th request and hangs... debugging it now, but its really hard to grep the code
    b

    bright-gpu-74537

    04/10/2023, 2:24 PM
    im actually finding something really interesting with haxe http: ive setup a request queue and it always pauses on the 8th request and hangs... debugging it now, but its really hard to grep the code
  • that is pretty much *exactly* what was happening to me
    a

    ambitious-knife-25690

    04/10/2023, 2:25 PM
    that is pretty much exactly what was happening to me
  • it was freezing on the 4th request
    a

    ambitious-knife-25690

    04/10/2023, 2:25 PM
    it was freezing on the 4th request
  • its something to do with the socket i think
    b

    bright-gpu-74537

    04/10/2023, 2:25 PM
    its something to do with the socket i think
  • i get the request data but for some reason it just "stops" after that point, no obvious reason for the issue
    a

    ambitious-knife-25690

    04/10/2023, 2:26 PM
    i get the request data but for some reason it just "stops" after that point, no obvious reason for the issue
  • Sure, thank you !
    e

    early-butcher-76809

    04/10/2023, 2:27 PM
    Sure, thank you !
  • it might be worth mentioning that *some* of the data can be read, it just silently gets stuck at some point
    a

    ambitious-knife-25690

    04/10/2023, 2:28 PM
    it might be worth mentioning that some of the data can be read, it just silently gets stuck at some point
1...162816291630...1687Latest