Little Notion on Stack & Heap on Golang

Golang doesn't expect developers to manage whether a variable is allocated on stack or heap memory. It claims to take care of it completely. As the official documentation said, Each variable in Go exists as long as there are references to it Let's take this simple illustration to see it closer. Snippet 1 func functionA() … Continue reading Little Notion on Stack & Heap on Golang

Advertisements

psalm 101

Reading psalms of king David moves my heart from one situation to the other quiet quickly. From fear to victory, from worry to full of worship. I am reading the chronological version of Bible by Tyndale (NLT). Although it was not stated clearly what exactly David was facing, I can start feeling his moments. One … Continue reading psalm 101

clang build failed after upgrading to OS X 10.10 Yosemite

In OSX environment, I use clang to build c, c++, objective-c programs. Even gcc actually is symlink to clang command. This error happened to me after upgrading to OSX 10.10. Before the upgrade, clang command can build with no doubt. These are two error that happened to me. ./libmemcached-1.0.18/libmemcached/memcached.h:39:10: fatal error: 'libmemcached-1.0/memcached.h' file not found … Continue reading clang build failed after upgrading to OS X 10.10 Yosemite