Hacker News new | past | comments | ask | show | jobs | submit | lolptdr's comments login

I'm getting the same problem, just a static image panning around.


Hmm, I don't see any free token. I agree that one free token is a good way to get interest going.


As a curious FE developer with no C experience, this was very interesting. Thanks for writing the article!


What would you recommend to practice Watts’ ideas?


“Vedanta Treatise” by A Parthasarathy and a visit to the Vedanta Academy

Disclaimer: author is my teacher


Insight meditation


Why does phrack.org domain not use SSL protocol?


No need since it is really plan text files ?


Damn, this is impressive. Wish there were more annotations of other notable sky objects in addition to what's shown.




Newbie question: why would a hash function ever result in hash collision? Why can't a hash function guarantee a unique output value?


Related: pigeonhole principle.

If you have n buckets, and n+1 items you're guaranteed to have a shared bucket.

In the case of hash algorithms you're taking an arbitrary sized input and "compressing" (in quotes because this is one way, you can't decompress it because of collisions) into a fixed size. If you permit more inputs to your hash function than there are hash values, then you will eventually have a collision.

A stupid awful hash function: n mod 100

So long as n is less than 100, you will never have a collision. But as soon as you compute the hash of n = 100, you will get a collision (with 0 in this case). Now, real world hash algorithms have larger spaces they map to, and more complicated mappings, but they all have this same problem. The larger the space (like 256-bits versus 64-bits) the less likely collisions become, but it could still happen.


Hash functions represent a chunk of data with fewer bits than the original data, hence there's always a _chance_ of a collision. With cryptographic hashes, the output of the hash function is relatively large in size, making the probability of an accidental hash collision vanishingly small. For example, sha-256 hash algorithm can result in over 115 quattuorvigintillion different values.

The hashing functions used with hash tables typically reduce the hashed value to one of only tens or hundreds of values, making collisions unavoidable. Typically, a hash table will try and manage the number of available slots to be roughly equal to the number of items stored in the hash to achieve performance that is a good balance of lookup time and memory requirements. For an extreme example, In Ruby, hashes of less than a certain size (6, I believe) are just represented internally as a list because the overhead of using an actual hash table is greater than just iterating through every item in the list.


A hash function has a limited range of outputs (e.g. for a hashtable it might be a number only a few bits large), whereas the space of possible inputs is larger or even unrestricted - e.g. could be arbitrary text.

If you have a space of possible inputs that isn't larger thant the outputs, then you can indeed design hash functions that do not collide.


Think what happens when the number of possible outputs is smaller than the number of possible inputs.

If we have a hash function f(n) that outputs a number between 1-100, but n can be any number between 1-1000, then some inputs must result in collisions.


Very similar experience to me. I grew up in the 90s in a suburb of Dallas, TX. The most interesting things we did in elementary school was play Oregon Trail on Apple IIe and make obnoxious sounds in Kid Pix once we upgraded to iMacs. In High School, a CS curriculum existed but hardly any interest or marketing the AP CS classes were made. HTML and web development classes started to make its way in late 90s.


Genuine ignorance on my part: why is that?


For one, No checks are done to ensure dependencies exist before running a script unless done explicitly.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: