Live data from Hacker News

Show HN: Subth.ink – write something and see how many others wrote the same

subth.ink

51–60 of 60 posts

Re: Show HN: Subth.ink – write something and see how many others wrote the same

#53
post #2

This would be more interesting if it was generalized. Using a hash, even one character difference will result in a miss. If I could have it analyze my blog and then find people who have similar ideas that would be incredibly useful.

https://en.wikipedia.org/wiki/Locality-sensitive_hashing

Re: Show HN: Subth.ink – write something and see how many others wrote the same

#57
I have managed to crack 4 words out of the top 10:

- #5 6f18270a4ed02a134851520202a104a33721423c35b7f5421e0081ec732793b1 - sex

- #6 8ababd402810b2a412142dcc71ea3083ccbab886c48a48948d286eee161c72ad - hash of fedb9943d8c4c51392815a187ce4ba732c539038fd28b4bda8543e4616d767c1

- #7 4ef69019c65909ffbb470597e3c5afe05ea8a866a0d3b9f950f0bcf057924b52 - hello world

- #10 dad6326d44d6f94c5668be9e5a5b762415fc2a3097d47742a7cf62d37e5e8287 - hash of 8ababd402810b2a412142dcc71ea3083ccbab886c48a48948d286eee161c72ad

The first one is probably brute force by a single person since it is at a round 10,000.

Re: Show HN: Subth.ink – write something and see how many others wrote the same

#60
For strings, just add string-conversions to your .cabal and `import Data.String.Conversions` and you can use `cs` to convert between the five, it'll typically figure out from context what type you need. E.g.

    import Data.String.Conversions
    import Data.Text qualified as T
    
    main = do
      url 
I don't think you need to really understand monad transformers to use them, just know that sometimes you're in "SomethingThatBuildsOnIO" and so you need to liftIO when using IO things.
Post reply on HN