Ben Chuanlong Du's Blog

It is never too late to learn.

Calling Rust from Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tools

pyo3

Rust bindings for Python, including tools for creating native Python extension modules. Running and interacting with Python code from a Rust binary is also supported.

maturin

Build and publish …

Tips on Gitpod

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. GitPod is a great web IDE for GitHub repositories. It supports both IDE and terminal environment via Docker, so a whole lot can be done if you are creative!

  2. customized layers …

String in Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. string is a primitive type in Golang, which means a string value has no methods on it but instead you have to use built-in functions (e.g., len) or functions in other modules (e.g., the strings