Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Comparison of Collections in C++ and Java
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Plain Old Array
-
The length/size of array is as in the declaration. Each element of the array is initialized to the default value (null for object).
-
Array in Java does …
Debug C/C++ Code Using GDB
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
lines use : while functions use ::
-
use relative path from the executable to implementation files!!!
b ../../tree.cpp:31 if knot->name()=="GO:0006139"
-
it seems that there is a bug in …
Tips on C++
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
IDE
-
Eclispe CDT is a good IDE for C/C++ development in Unix/Linux sytem. Configuration of Eclipse CDT in Windows system is not pleasant. Netbeans and code::blocks are good …
Speed up Python Using Native Code
Tips and Traps¶
- It is never a good idea to do pre-mature optimization. Always profile (please refer to Profile Performance of Python Applications and Python Profiler for JupyterLab Notebooks) your code before you optimize it. If you do decide to optimize you Python code, there are multiple approaches. First, think about whether you can improve your algorithm. Please refer to Python Performance Tips
Tips on C++ Compilers
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
GCC
-
User option
-lpthread
to link the thread library when your code use the thread library. If you do not use, the option-lpthread
, you can probably compile your coe without …