I have to do a year-long research project and my goal is to make a JavaScript distributed computing platform. I'll have the summer to do that, but I need a concrete example to demonstrate it.
My instructors would like something substantial: no massive radix sorts or stuff like that. I was thinking about doing statistical weather forecasting, but that might be a bit complex.
I need ideas of simulations or calculations which are (fairly) simple. I'm still in high school so I don't want to port Folding@Home since I have no idea how that works...
TIA.
How about bitcoin mining? Basically you just hash some input and a random 4-byte sequence twice with sha256, then compare the output to some (also supplied from the input) target value.
There is already an existing javascript implementation out there, however, so you won't be breaking new ground. Then again, if it's just high school that shouldn't be a requirement..?
There's a fairly simple-to-follow Python implementation here: https://github.com/jgarzik/pyminer
精彩评论