Live data from Hacker News

Viewing profile — mklencke

mklencke

HN member
Joined
Sat, May 14, 2011, 4:25 PM UTC
HN karma
6
Public activity
6 items

About mklencke

No profile information was provided.

Recent public activity

  1. comment
    Comment #8692222

    In some cases, 2x or 4x is worth the risk. Imagine having a warehouse-scale computer where you can use 50,000 CPUs instead of 200,000.

  2. story
  3. comment
    Comment #2549644

    I'm just making it up as I go along, it's not the prettiest thing. What would you do, in C?

  4. comment
    Comment #2548950

    True, but that can be overcome by another function that just gives you an address to put a new item. You would say, for example: *(int *)vector_expand(v) = 2;

  5. comment
    Comment #2548417

    In this case, I'm not storing void pointers in the data structure, but I'm using the void pointer as a direct address into "elements". The memory layout is just a sequence of items…

  6. comment
    Comment #2547945

    The RAII benefits are definitely there and STL containers are pretty awesome, but you can still create generic containers in C by using void pointers. For example, a simple vector …