[erlang-questions] Pointless md5 Problem

Dan Gudmundsson <>
Thu May 7 08:25:03 CEST 2009

You can get access to your GPU through wxErlang and OpenGL,
so you can even write that code in erlang.
Though you have to write the gpu-shaders in GLSL.

Setup a couple of machines with monster gfx cards and start hacking.

A project would be to build a small 'cuda' library for erlang on top
of opengl.

Have fun
PS: I have code examples for using shaders and frame buffer usage
if anyone really wants to do this.

Cameron Kerr wrote:
> Erlang is not a language for computational heavy-lifting, but is great 
> for organising such work. A better solution could be to use a port to 
> send jobs to something a bit more suited, such as a small C/whatever 
> program... you could even imagine this working to be a CUDA program.
> On 07/05/2009, at 1:39 PM, Colin Z wrote:
>> So I came across a pointless/impossible problem someone had about md5 
>> hashing. The goal is to find an MD5 hash that hashes to itself: MD5( X 
>> ) = X
>> My goal in coming up with a solution "finder" was just as an exercise 
>> in distributed Erlang, not necessarily to achieve the near impossible 
>> and brute force the problem.
>> I wrote up a quick and dirty distributed app, but the performance 
>> seems really bad (around 10,000 keys/sec on a 3700+ Athlon) It scales 
>> nicely, but 10,000 keys/sec/machine is terrible when other languages 
>> can get 1M+/sec (some CUDA GP/GPU implementations get 300M+/sec)
>> So, now my interest lies in what's so slow about my code....maybe it's 
>> Erlang's md5 implementation, or more probably how I'm generating the 
>> random string?
>> What does everyone think?
> -- 
> Cameron Kerr < <mailto:>>
> Teaching Fellow, Computer Science, University of Otago
> ------------------------------------------------------------------------
> _______________________________________________
> erlang-questions mailing list
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list