Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Trip-codes

Name: Anonymous 2007-08-15 9:47 ID:rAGjFXj3

What's a good way to generate trip codes like 4chan uses?  Taking the user IP as an argument.

Name: Anonymous 2009-08-18 2:39

>>56
That like claiming C++ is the fastest language.
No actually, it's not. C++ does not win the speed game in any problem domain. Anything it is reasonably good at C does better. The same can't be said for a hashtable, which has constant time insertion, lookup, and deletion. You won't find such behavior in any other data structure. I'm not sure what you are trying to say regarding indexing vs pointer arithmetic, but if you are arguing that either one of them is faster, you are wrong.

Name: Anonymous 2009-08-18 3:13

>>59
Are you fucking retarded? I meant find, which is synonymous with lookup. Obviously you have never actually used a hashtable before. It similarly looks like you've never actually used an array before thanks to this amusing number:
while deletion is zeroing the cell
Keep embarrassing yourself, please.

Name: Anonymous 2009-08-18 3:25

>>62
You use them by never needing to find an element in them? Interesting way to COMPLETELY FUCKING IGNORE THE DOWNSIDE. Guess what? I never use a hashtable to hash anything, so the effective time is zero, much faster than a garray. Beat that. Also, rather ironically, if you use a modern compiler the difference in speed between a hashmap and an array should be neglible. I doubt you will test this yourself or consider something that doesn't agree with your "beliefs" but most modern compilers actually produce faster code for a std::vector than an array.

Name: Anonymous 2009-08-18 4:17

>>64
You have no clue when it comes to data structures do you? You took the original problem, made a blind comment that hashtables aren't the "fastest" data structure. Now when it turns out the argument doesn't suit you, you manage to get the idea (or rather force it for lack of anything meaningful to say) that somebody needs a database. No, nobody wants a database. A hashtable isn't intended to be a database. Stop juggling around saying "oh what about x, oh no y, thats not right when I could do z."

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List