Live data from Hacker News

Engineyard Challenge Python Code

fpaste.org

1–10 of 28 posts

Re: Engineyard Challenge Python Code

#4

Ahh, I see that you're generating an entirely new random string each iteration. Interesting. I've done mine in Pike, which will be faster (though not as fast as C). http://github.com/jamesotron/HashChallenge/tree/master

I've started mine in erlang. I'm going to run 10 dollars worth of ec2 time and see how far I get.

Re: Engineyard Challenge Python Code

#5
post #4

Ahh, I see that you're generating an entirely new random string each iteration. Interesting. I've done mine in Pike, which will be faster (though not as fast as C). http://github.com/jamesotron/HashChallenge/tree/master

I've started mine in erlang. I'm going to run 10 dollars worth of ec2 time and see how far I get.

I've got mine in C. I probably won't run it, just wrote it for fun. Honestly, if you were thinking of spending a cent on this competition, I think you'd get a better ROI buying a SuperLOTTO ticket.

Re: Engineyard Challenge Python Code

#6
Theoretically I'm having around 500 CPUs with 3gHz each and 2000GB RAM at my disposal. Maybe I should give it a try. Hint: University Cluster =)

Anyway thanks for the code examples, I'm pretty sure I can learn something from them.

Re: Engineyard Challenge Python Code

#7
post #4

Earlier quoted context omitted.

I've started mine in erlang. I'm going to run 10 dollars worth of ec2 time and see how far I get.

I've got mine in C. I probably won't run it, just wrote it for fun. Honestly, if you were thinking of spending a cent on this competition, I think you'd get a better ROI buying a SuperLOTTO ticket.

Lotto tickets aren't nearly as much fun as coding, so what's another 10 bucks.

Personally I'd run through a thousand bucks of computer time to play around with something or test a hunch before considering a lotto ticket.

Lotto tickets are taxes for people that are not good in mathematics.

Re: Engineyard Challenge Python Code

#8
post #7

Earlier quoted context omitted.

I've got mine in C. I probably won't run it, just wrote it for fun. Honestly, if you were thinking of spending a cent on this competition, I think you'd get a better ROI buying a SuperLOTTO ticket.

Lotto tickets aren't nearly as much fun as coding, so what's another 10 bucks. Personally I'd run through a thousand bucks of computer time to play around with something or test a hunch before considering a lotto ticket. Lotto tickets are taxes for people that are not good in mathematics.

or they just play for fun

Re: Engineyard Challenge Python Code

#10
I dont wish to be, umm, mean. But I know of at least 3 companies (ours included) that could run this in a few minutes.

this is my code (using mighty, our python based cluster service):

  import mighty

  word_generator = mighty.word_generator("wordlist",(mighty.APPEND_NUMERALS,5))
  phrase_generator = mighty.word_concentate(word_generator,' ')

  job = mighty.match_to_hash('PROVIDEDHASH',mighty.SHA1,phrase_generator.iterate_all)
  job.priority = mighty.CRITICAL
  mighty.submit_job(job)
Done. Takes about 5 minutes (I wont enter - it's not fair).

EDIT: added CRITICAL as the priority or it takes longer :)

EDIT: ok so the code is a bit the wrong side of the tracks. It wouldnt take long to refactor it :)

Post reply on HN