https://linen.dev logo
Join Discord
Powered by
# ceramic
  • m

    miniature-lawyer-98519

    04/17/2023, 11:05 AM
    Still, u need to generate that class
  • m

    miniature-lawyer-98519

    04/17/2023, 11:06 AM
    i dont get my ahead around that yet
  • b

    billowy-waiter-28954

    04/17/2023, 11:35 AM
    Yes, you'll have to generate the code no matter what with some build step
  • b

    billowy-waiter-28954

    04/17/2023, 12:48 PM
    @miniature-lawyer-98519 What code editor do you use?
  • m

    miniature-lawyer-98519

    04/17/2023, 12:48 PM
    Mmm idea mostly
  • m

    miniature-lawyer-98519

    04/17/2023, 12:48 PM
    Or android studio
  • m

    miniature-lawyer-98519

    04/17/2023, 12:48 PM
    vscode rarely
  • m

    miniature-lawyer-98519

    04/17/2023, 12:49 PM
    Yeah, but the key of flutter dev is hot reload mate
  • b

    billowy-waiter-28954

    04/17/2023, 12:49 PM
    Maybe you should use Haxe then 😆
  • b

    billowy-waiter-28954

    04/17/2023, 12:51 PM
    You could probably manage to have some kind of daemon that checks your change in realtime and update the generated code automatically. That's a bit complicated to setup at first but it would work, even with hot reload I guess
  • b

    billowy-waiter-28954

    04/17/2023, 12:51 PM
    If using vscode you could create a plugin that takes care of running that daemon for you in your working directory (but I guess this is also doable in idea/android studio)
  • a

    ambitious-knife-25690

    04/17/2023, 1:12 PM
    or make a hashlink backend for ceramic and then use hot reloading through that
  • a

    ambitious-knife-25690

    04/17/2023, 1:13 PM
    tbh I guess you could also use electron target to hotreload, but haxe's native js export doesn't work very well with that
  • a

    ambitious-knife-25690

    04/17/2023, 1:37 PM
    i thought ceramic only does asset hotreloading?
  • a

    ambitious-knife-25690

    04/17/2023, 1:37 PM
    does it do more? 👀
  • b

    billowy-waiter-28954

    04/17/2023, 1:52 PM
    Ah, no it doesn't, but afaik you don't really hot reload hashlink code either right?
  • a

    ambitious-knife-25690

    04/17/2023, 1:54 PM
    you can hot reload code in hashlink
  • a

    ambitious-knife-25690

    04/17/2023, 1:54 PM
    just not everything is supported
  • a

    ambitious-knife-25690

    04/17/2023, 1:54 PM
  • a

    ambitious-knife-25690

    04/17/2023, 1:55 PM
    I'm not sure if they have any plans on improving that functionality though, i remember reading that things get quite complicated when you start trying to reload full classes
  • b

    billowy-waiter-28954

    04/17/2023, 1:56 PM
    code hot reload is tricky
  • b

    billowy-waiter-28954

    04/17/2023, 1:56 PM
    I tried to setup some js hot reload
  • b

    billowy-waiter-28954

    04/17/2023, 1:56 PM
    but failed to make it work
  • a

    ambitious-knife-25690

    04/17/2023, 1:57 PM
    yeah i think it requires quite a bit
  • a

    ambitious-knife-25690

    04/17/2023, 1:57 PM
  • a

    ambitious-knife-25690

    04/17/2023, 1:57 PM
    This library kind of tries to bring that ability to the haxe js target
  • b

    billowy-waiter-28954

    04/17/2023, 1:58 PM
    The idea was to rebuild everything with haxe and do some kind of runtime diff, but there were too many edge cases
  • a

    ambitious-knife-25690

    04/17/2023, 1:59 PM
    the way the modular lib did was allow haxe to export js to multiple files
  • a

    ambitious-knife-25690

    04/17/2023, 1:59 PM
    so you just reload the file/class
  • a

    ambitious-knife-25690

    04/17/2023, 1:59 PM
    kha took a similar approach for krom
1...108109110...124Latest