Ben Chuanlong Du's Blog

It is never too late to learn.

Parallel Computing in Java

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

The following are a few tips for multithreading parallel computing in Java.

  1. Instance fields, static fields and elements of arrays are stored in heap memory and thus can be shared between …

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 …

Tips on the Almond Scala Kernel

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

  1. kernel.silent(true) supress outputs of cells.

  2. Currently each line in a cell have an output, which is messy. There are 2 ways to avoid this.

    val resObj = {
        ...
        ...
    }
    
    {{
        ...
        ...
    }}
    

References

Use Spark …

Remove System Applications in macOS

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

The macOS has some system applications (e.g., Numbers, Keynotes, etc.) come installed by default. You cannot uninstall them from Application in Finder. However, there's one way to remove those applications …