July 2024 Rustacean meetup 🤝 C4GT

In collaboration with Code for GovTech

Vineet Naik

@naiquevin

Using Rust + Webassembly to build a browser based metronome

Submitted Jul 17, 2024

In this talk I plan to cover the basics of compiling Rust code to webassembly and using it to build applications in the browser (along with some Javascript[1]).

I recently experimented with this approach to build a basic metronome. Code examples will be used from there.

Tentative outline for the talk:

  • Short intro about webassembly and it’s advantages
  • Crates and tools
  • High level overview of how it works
    • writing Rust code that JS can call and vice versa
    • dev workflow
  • Very brief intro about Metronome and the WebAudio API
  • Examples from the metronome code
    • Debugging rust code at runtime
    • Error handling
    • Callbacks
  • Other interesting possibilities
  • Links and references

[1] Working understanding of Js is sufficient. I’ll briefly explain the WebAudio API that’s used in the metronome implementation

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

A community of rust-lang contributors and end-users from Bangalore. We also have presence on the following telegram channels https://t.me/RustIndia https://t.me/keralars https://t.me/fpncr Twitter handle: https://twitter.com/rustlangin more