Ben Chuanlong Du's Blog

It is never too late to learn.

The Deref Trait in Rust

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

  1. In short, do NOT implement the Deref trait unless you are absolutely sure that it's needed! According to Rust Official Doc - Deref, Deref should only be implemented for smart pointers. The …

Thread-Local Storage for Rayon

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

There might be issue if the code relies on Drop of the struct. For example, if you create a BufWriter in thread-local storage, last buffered output might not flush. You have …

Rust for IoT

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

tock-os

tock-os Tock is an embedded operating system designed for running multiple concurrent, mutually distrustful applications on Cortex-M and RISC-V based embedded platforms. Tock's design centers around protection, both from potentially …

Free High Performance Computing Resouces

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

Cloud Platforms

Some cloud platform forms offer free trials or credits.

Using GPUs

A Beginners Guide to Basic GPU Application for Integer Calculations https://saturncloud.io/blog/a-beginners-guide-to-basic-gpu-application-for-integer-calculations/#:~:text …

Tips on LXD

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

  1. LXD only works in Linux. It is not supported on macOS or Windows.

  2. LXD does not require a CPU which supports virtualization.

  3. Docker is a more user-friendly alternative to LXD containers …