tkausl
  • Member for 6 years, 11 months
  • Last seen more than a week ago
Hash table based key/value dictionary in C++ with murmur hash function, linked list buckets in 200 LOC
6 votes

I don't know the exact details about how hashtables work, neither do i know the murmur hash function, so i can't say anything about your algorithm but i'd like to comment your general code a little ...

View answer
C++ linked list with too many pointers
5 votes

struct link{ int data; link *next; }; Are you sure you want this to be outside of the class? This could be in the private section in the class link_list since the outside world does not need ...

View answer
Queue for distributing tasks between threads
5 votes

Is there a way to keep both implementations of push DRY? The only difference is the type of the argument. I actually think you don't need the void push(const T& object), a universal reference ...

View answer
Convert string array to string with separator
Accepted answer
4 votes

Before I review your code I want to point out that Java has a String.join() method which does exactly that. Now to your code: You use StringBuilder, good. You take care of not appending a seperator ...

View answer
Yet another OpenGL Shader: the Builder pattern and lifetime management
4 votes

I'd like to add a few things. GLShaderProgram linkProgram() { glLinkProgram(programId_); GLShaderProgram theProgram(programId_); deleteAttachedShaders(programId_); ...

View answer
cmake for a toy programming language
Accepted answer
2 votes

I'm by no means a professional CMake user, I try to follow best practices though and have seen many talks and articles about modern CMake best practices, so lets go through your CMakeLists. set(...

View answer
Generic Stack (Array and Linked List) Implementation
Accepted answer
2 votes

Looks good to me, only a few things to note: public static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; You only check if the size exceeds the MAX_ARRAY_SIZE on construction. What happens in ...

View answer
Multi-player game server accessing and querying MongoDB
1 votes

Since the text i wrote was a little bit long for a comment i post it as answer. Okay, back to the beginning: public static ClientSingleton getInstance() { if(uniqueInstance == null) { ...

View answer