Call Rust code from Python (WASM and PythonMonkey)

Veröffentlicht am: 24 Juli 2023
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Call Rust code from Python (WASM and PythonMonkey) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Will Pringle 24 Juli 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 601 Mal angesehen und es wurde von 15 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!