Ben Chuanlong Du's Blog

It is never too late to learn.

Foreign Language Integration in Rust

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

cc

cc is a build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into …

Operators in Different Programming Languages

Python Bash C/C++ Java Julia
and and -a && && &&
or or -o || || ||
not not ! ! ! !
bit and & & & & &
bit or | | | | |
bit not ~ ~ ~ ~ ~
bit xor ^ ^ ^ ^ ^
vector and
vector or
vector not
equals == -eq == == ==
not equal != -ne != != !=
greater than > -gt > > >
less than < -lt < < <
greater than or equal to >= -ge >= >= >=
less than or equal to …

Parallel and Concurrency Programming in C++11

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

  1. If you use g++ to compile your parallel program which uses the thread library, you need to use the option -lpthread. For more information, see the post GNU/GCC.

  2. The join …