@ffracture

9 Followers
14 Following
60 Posts
A fairly boring middle-aged software developer.
Aesop Rock - Kirby (Official Video)

YouTube

@c25l You mentioned python doesn't support using a dictionary as a key to another dictionary. I would be the main reason for this is because of mutability. If you look at arrays in python you see it doesn't support hash either. But if you look at tuples (which are basically immutable arrays) it does support hash.

>>> hash([1,2,3])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'list'
>>> hash((1,2,3))
-378539185

@c25l I remembered where I saw use of hash maps as keys. It was the scala collections library.

Here is a link to where hashCode is defined for most maps:

https://lampsvn.epfl.ch/trac/scala/browser/scala/tags/R_2_9_1_final/src//library/scala/collection/GenMapLike.scala#L34

Which leads to:

https://github.com/scala/scala/blob/v2.12.1/src/library/scala/util/MurmurHash.scala#L1

Which leads to a git hup repo:

https://github.com/aappleby/smhasher

GenMapLike.scala in scala/tags/R_2_9_1_final/src/library/scala/collection – Scala

@c25l But this is true of any object you might use as a key to map.
@c25l I didn't know there were people still using it. nice. I don't see a direct reason why a collection couldn't be used as a hash key. I have worked with libraries that have allowed this. It isn't really anything special. A collection or any other composite type (class/record/etc) aren't really that different. The one thing you may consider is that hashmaps are usually mutable. If you mutate a hashmap after using it as a key, you can run into issues.
@c25l Uhhh is that a gopher URL?
@madewulf I have invested a large number of hours in UI testing. Multiple browsers, mobile, even web enabled game consoles. We even looked at testing regression for UI layout with screenshot comparison. Looking back we got the most value by adding flighting capabilities and extensive metrics collection which allowed fast determination of failures in production.
Is there a name for the technique some people use when you ask them a specific question and they respond with a statement that has nothing to do with the original question, but the statement is something few people would ever disagree with?
Wish me luck.
@j216 This one feels like it has 3 dimensions to it. I like it. It makes me think it would be cool to look into generative 3D art.