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

    future-boots-43048

    12/12/2020, 11:21 PM
    So I can't dynamically change the javascript at runtime.
  • f

    future-boots-43048

    12/12/2020, 11:22 PM
    Which is what I want for that full Chris Granger / Brett Victor experience.
  • f

    future-boots-43048

    12/12/2020, 11:22 PM
    🙂
  • f

    future-boots-43048

    12/12/2020, 11:23 PM
    So right now I'm pondering the abomination that would be storing the whole javascript function as a string on one of the data- attributes and then eval-ing it somehow.
  • f

    future-boots-43048

    12/12/2020, 11:23 PM
    (You can tell I'm not a javascript programmer)
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:24 PM
    Yes, updating Javascript functions via SSE sounds like a bad time.
  • f

    future-boots-43048

    12/12/2020, 11:25 PM
    A bad time... but also AWESOME.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:26 PM
    It's hard for me to decipher what you're actually changing via these push updates (sorry, I don't know the language you're using). But, what ARE you changing? Would it be possible to include most of that Javascript on the client ahead of time, and then just stream parameters down to it?
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:26 PM
    ala JSONP? https://www.w3schools.com/js/js_json_jsonp.asp
  • f

    future-boots-43048

    12/12/2020, 11:30 PM
    This is pretty much out of the htmx wheelhouse now ... so very much not your problem...
  • f

    future-boots-43048

    12/12/2020, 11:31 PM
    But I'm making a competitor to Simulink ...
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:31 PM
    True 🙂 I am just interested in all of the use cases...
  • f

    future-boots-43048

    12/12/2020, 11:31 PM
    https://uk.mathworks.com/products/simulink.html
  • f

    future-boots-43048

    12/12/2020, 11:31 PM
    So, Simulink is a development tool based on a dataflow model.
  • f

    future-boots-43048

    12/12/2020, 11:32 PM
    Very much a data-push computational model.
  • f

    future-boots-43048

    12/12/2020, 11:32 PM
    I've built the runtime engine.
  • f

    future-boots-43048

    12/12/2020, 11:32 PM
    https://pypi.org/project/xact/
  • f

    future-boots-43048

    12/12/2020, 11:32 PM
    https://github.com/wtpayne/xact
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:32 PM
    frantically clicking
  • f

    future-boots-43048

    12/12/2020, 11:32 PM
    And now I'm trying to make a UI for it.
  • f

    future-boots-43048

    12/12/2020, 11:34 PM
    So, computationally, it's a Kahn Process Network ... https://en.wikipedia.org/wiki/Kahn_process_networks ... which is to say, the same as every other dataflow-based no-code tool out there ...
  • f

    future-boots-43048

    12/12/2020, 11:34 PM
    (This is basically a dataflow-based low-code-ish development environment).
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:34 PM
    from the explainer video... "simply press the run button"
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:34 PM
    if only...
  • f

    future-boots-43048

    12/12/2020, 11:35 PM
    The nodes in the dataflow graph are distributed ... potentially over many different computers.
  • f

    future-boots-43048

    12/12/2020, 11:36 PM
    Of course, because I do everything in 'hard mode' ... I want the UI for xact to be written in ... xact.
  • f

    future-boots-43048

    12/12/2020, 11:36 PM
    Which means smashing the dataflow paradigm and the HATEOAS paradigm together repeatedly until something breaks.
  • f

    future-boots-43048

    12/12/2020, 11:37 PM
    The blocks in the diagram are components.
  • f

    future-boots-43048

    12/12/2020, 11:37 PM
    Sometimes they are not just components in the compute graph .. they are also UI components.
  • g

    gorgeous-ghost-95789

    12/12/2020, 11:38 PM
    Yeah, there's a lot going on in their explainer. Depending on how much of this you're duplicating, there will be several tons of Javascript running on your client browsers.
1...99100101...1146Latest