Skip to content

Build a web app over a translated model #589

Answered by travisfranck
LSarribouette asked this question in Q&A
Discussion options

You must be logged in to vote

@LSarribouette I'll give a first answer to your questions.

Should I use the JS output of the model or the WebAssembly?

It mainly depends on the size of your model, by which I mean the number of total calculations (# variables multiplied by the # timesteps). If it is small to medium, I think pure JS would be fine. If it is very large, you could consider WebAssembly. There is a SDE setup difference depending on your target, with WebAssembly requiring Emscripten.

That said, it also depends on your needs. If you're okay with a very large model running a bit longer then pure JS would also be okay. For instance, if you don't need responsive user interaction, then pure JS works. WebAssembly is m…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@chrispcampbell
Comment options

@LSarribouette
Comment options

@travisfranck
Comment options

@chrispcampbell
Comment options

@LSarribouette
Comment options

Answer selected by LSarribouette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants