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 …

Label Image Data Quickly Without Crowdsourcing

If you have to label images for your project but have no budget for crowdsourcing, here are some simple tips which might help you reduce time on human labeling significantly.

Approach 0: Train a Model on Already Labeled Data and Use it to Label New Data

If you already have some labeled data, you can train a simple model on it and use it to help you label new data.

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. In Golang, a string is implemented as a struct containing a data pointer (pointing to a read-only slice of bytes) and a length.

  2. Raw string literals, delimited by backticks (back quotes), are interpreted literally. They can contain line breaks, and backslashes have no special meaning.