Call Rust code from Python (WASM and PythonMonkey)

Publicado em: 24 Julho 2023
no canal de: Will Pringle
601
15

Use PythonMonkey to load WebAssembly modules from Rust into Python and execute Rust functions from a Rust library.

Follow along with this GitHub repository:
https://github.com/Distributive-Netwo...

View the medium post for this video
  / executing-rust-in-python-using-webassembly  

This tutorial covers
Compiling a Rust library to WebAssembly using wasm-bindgen and wasm-pack
Executing WASM code from Python

If you're interested in PythonMonkey or WebAssembly check these out
PythonMonkey Documentation: https://docs.pythonmonkey.io/
Checkout PythonMonkey here: https://pythonmonkey.io/
Calling C WASM from Python    • How to execute C from Python (Using WebAss...  

Test PythonMonkey on Google Colab:
https://colab.research.google.com/dri...

0:00 Intro & Overview
0:14 PythonMonkey
0:57 Installing Rust and Python
2:33 Writing a sample Rust Library
5:28 Rewriting nodejs in Python (temporary)
9:03 Calling Rust from Python
9:50 Fixing an error
10:33 Compiling with ./build.sh
11:30 Adding a function to our rust library
13:37 Conclusion


Nesta página do site você pode assistir ao vídeo on-line Call Rust code from Python (WASM and PythonMonkey) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Will Pringle 24 Julho 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 601 vezes e gostou 15 espectadores. Boa visualização!