Archive for the ‘capabilities’ Category

Idea for capabilities

After looking at the source code in Capabilities.c I think a rudimentary implementation to add dynamic capabilities can work like this: Wait, until it is safe to change the capabilities structure. Allocate memory for number_of_capabilities + 1 Copy old capabilities structure to new allocated one Relink to new memory location To be honest, I don’t [...]

Where am I?

And what am I doing here? I currently read (more or less randomized) remarks about GHC’s source code; the codebase is quite huge (and probably the biggest code base that I’ve ever worked with): Extension Lines .lhs 300482 .hs 473479 .c 184039 .h 448394 combined 1406394 Found using wc -l `find . -name \*.` Thankfully [...]

Started hacking on GHC capabilities

Today I’ve started the small personal hacking project of implementing dynamic capatiblities in GHC‘s parallel runtime system; I’ll blog about my efforts, problems and solutions and would be grateful for any hints, comments or pointers for more documentation. I began by talking with Simon Marlow and discussing the idea. He said that it’s a least worthwhile [...]