https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • f

    future-boots-43048

    12/12/2020, 11:38 PM
    Most of the compute will be running on the back end.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:38 PM
    Streaming simulation data from the server sounds really cool.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:38 PM
    Yes, then just some kind of visual updates streamed via WebSockets/SSE.
  • f

    future-boots-43048

    12/12/2020, 11:38 PM
    Remember -- most of the graph will actually be running on the cloud somewhere.
  • f

    future-boots-43048

    12/12/2020, 11:38 PM
    Yup.
  • f

    future-boots-43048

    12/12/2020, 11:39 PM
    So it's just visual updates streamed over SSE ...
  • f

    future-boots-43048

    12/12/2020, 11:39 PM
    Together with a little bit of interactivity sprinkled in.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:39 PM
    How frequent are your updates? That spinning turbine could be a lot of data.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:39 PM
    1/second?
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:39 PM
    60/second?
  • f

    future-boots-43048

    12/12/2020, 11:39 PM
    Application dependent ... but I think around 5 or 10/second is about the ballpark I'm shooting for.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:41 PM
    It's almost like Microsoft's xCloud -- streaming video games to your XBOX. 😄
  • f

    future-boots-43048

    12/12/2020, 11:41 PM
    And video will probably be handled with a different mechanism.
  • f

    future-boots-43048

    12/12/2020, 11:41 PM
    Yeah ...
  • f

    future-boots-43048

    12/12/2020, 11:41 PM
    It's a lot like a game engine.
  • f

    future-boots-43048

    12/12/2020, 11:41 PM
    The back end is a mix of Python and C++.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:42 PM
    It's a fascinating trade-off. How quickly could you download the results of the simulation, vs. doing some of the calculations on the client... because C++ should transpile into WebAssembly.
  • f

    future-boots-43048

    12/12/2020, 11:42 PM
    C++ simulation kernels glued together with Python.
  • f

    future-boots-43048

    12/12/2020, 11:42 PM
    You don't want to be doing the heavy lifting on the client.
  • f

    future-boots-43048

    12/12/2020, 11:42 PM
    A lot of the 'simulation' is machine learning stuff ...
  • f

    future-boots-43048

    12/12/2020, 11:43 PM
    So generating and consuming potentially Petabytes of data.
  • f

    future-boots-43048

    12/12/2020, 11:43 PM
    But I want RAD tools to easily generate visualizations of what's going on in the browser.
  • f

    future-boots-43048

    12/12/2020, 11:43 PM
    Sort of like a Jupyter notebook.
  • f

    future-boots-43048

    12/12/2020, 11:44 PM
    Except not a notebook. A system model.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:44 PM
    Yup.
  • f

    future-boots-43048

    12/12/2020, 11:46 PM
    In fact, some of the back end will be using multiple instances of (probably) Unity to generate synthetic imagery, and then using those synthetic images to train neural networks, and then evaluating the results, possibly by comparing with data coming back from an autonomous vehicle, and feeding that data back into the simulation to make it more representative of what's going on in the world.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:46 PM
    So, I know we're pretty far off of htmx's basic use cases. But whatever JS you need to run on your client browsers, I'd try to keep it as static as possible. Pass in arguments to call a
    render()
    function every 1/10 of a second if you need to, but try to keep something you can depend on, instead of swapping out Javascript. I think you'll be asking for trouble if you head down that road. 🙂
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:46 PM
    Wow. That's going to be very cool when you get it running. Promise to "show and tell" when it's ready?
  • f

    future-boots-43048

    12/12/2020, 11:46 PM
    Yup!
  • f

    future-boots-43048

    12/12/2020, 11:47 PM
    This is us, BTW:- http://xplain.systems/ -- just a placeholder page for the moment ... but I'll let you know when we (eventually) have something.
1...100101102...1146Latest