Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

218
Visualizações
What are the different steps Rust and JS have to make reading user input (event handling), with WASM?

Event Handlers seem like a hassle in Rust, and I'm wondering how big, and what precisely the advantages would, or could be. What are the extra steps JS either has or doesn't have to make compared to Rust, using WASM?

An example I can find reading input in JS and executing the code in Rust: Click event read in JS. As far as I'm understanding here. JS directly uses the converted Rust function in WASM.

An example reading mouse input in Rust: Mouse move in Rust. In this example, Rust calls the JS eventhandler, which than all gets converted to WASM and executed?

AND -> Does the same apply for reading keyboard inputs?

Can someone ELI5? What happens step by step, and as I asked, what would be the advantages?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda