Louis Feng | Out of Core

brain dump of things

  • Home
  • Blog
    • Tools
    • Algorithms
    • Design
    • Code
  • Projects
    • Shell Maps
    • Anisotropic Noise Samples
  • About
You are here: Home / Archives for 2011

Archives for 2011

iOS Development: Proper Use of initWithNibName:bundle: Affects UITableViewController

July 6, 2011 by Louis Feng 1 Comment

I think this post will be useful to someone new to the iOS development. One of the most important and commonly used classes in Cocoa is UIViewController. Creating any non-trivial application will involve subclass and creating your own view controller. There are a lot of topics and tutorials elsewhere, so I’m not going to repeat […]

Filed Under: Blog, Code, Mobile Tagged With: cocoa, iOS, ipad, iphone, nib, software engineering, UITableViewController, UIViewController

Programming iOS 4: Making Simple Ideas Complicated?

June 30, 2011 by Louis Feng 2 Comments

I have done a bit of iOS development lately. While trying to get myself familiarized with the new platform, I came across this book titled “Programming iOS 4”. I skimmed through some sections and found this paragraph: You should not use a view controller in any other way. It is not, for example, appropriate to […]

Filed Under: Code, Mobile Tagged With: book, iOS, ipad, iphone, view controller

Scripted Debug Using GDB To Find Memory Leak

June 29, 2011 by Louis Feng 4 Comments

I recently ran test into some hard to find memory leaks. The program only runs on Linux. The memory leaks are detected using a custom memory allocator (using an atomic counter for allocation/deallocation size). In single thread mode, the program terminated without leaking, but running in multithread mode resulted in 1.7 to 4 KB of […]

Filed Under: Blog, Code, Tools Tagged With: C++, diff, GDB, memory leak

C++ Container Iterator Invalidation

April 5, 2011 by Louis Feng 7 Comments

In a recent coding review a coworker pointed out in my code that modifying a STL list might invalidate the iterators pointing to the elements in the list. That’s a good observation. I know STL map will not invalidate iterators when elements are inserted or erased from the container (except the elements that’s modified). But […]

Filed Under: Blog, Code Tagged With: C++, container, iterator, list, map, stl, vector

LLVM, Clang, and (no) Auto Vectorization

March 5, 2011 by Louis Feng 2 Comments

A few days looking into LLVM + Clang, I really liked how they are set up and how they work. I played with the IR code and JIT a little bit, then I realized that Clang and LLVM don’t support auto vectorization (as of current release 2.8).

Filed Under: Blog, Tools Tagged With: clang, llvm, vectorization

How to Build LLVM and Clang on Windows

March 5, 2011 by Louis Feng 1 Comment

It’s surprisingly easy. First, I’d ignore the instruction on LLVM’s page, and rather follow the instruction on Clang’s project page, which is much more concise and will build both LLVM and Clang.

Filed Under: Tools Tagged With: clang, llvm, windows

Archives

  • February 2012
  • July 2011
  • June 2011
  • April 2011
  • March 2011

Tags

book C++ clang cocoa container diff GDB git iOS ipad iphone iterator list llvm map memory leak nib software engineering stl UITableViewController UIViewController vector vectorization view controller windows

Return to top of page

Copyright © 2026 Louis Feng | Out of Core