Author Archive

Ubuntu 64 Bit and GHCs Garbage Collector

Hi,
Update: I tested a kernel 2.6.31-12 (from kernel.org) and had the same (if not even worse) behaviour as with 2.6.31-19. So, I apologize. It has nothing to do with Ubuntu per se, but probably with the linux-kernel; that makes me wonder if I haven’t done something faulty: that behaviour should have attracted the attention of [...]

Visualizing rising iteration depth in a voltage diffusion model

Using my PASTHA library (more follows soon) to parallelize stencil calculations I wrote a few wrapper scripts for gnuplot and gifsicle to visualize the voltage diffusion for a metal plane for rising iteration depths:

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 think it’s so easy; but [...]

GHC’s 6.12 new dynamic linking and file sizes

GHC 6.12 finally supports dynamic linking, leading too much smaller binaries: For the standard HelloWorld example

module Main where
 
main = putStrLn "Hello World"

the binaries went from 427.000 bytes (stripped) to 10.736 bytes! That’s great

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 [...]

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 [...]

GHC 6.12 RC1 and Ubuntu 9.10 (Karmic Koala)

I’m excited about GHC 6.12 and hope it is released soon. Currently I have some problems with Ubuntu 9.10 and its Linux kernel 2.6.31-14. It seems that GHC 6.12 will solve (some) of my problems.
For the examplary unoptimized code

– Compile with ghc-6.10.4 -O2 -threaded –make Example.hs -o example
module Main where
import GHC.Conc
import Control.Concurrent
import Control.Monad
import System.Environment
import Data.List
————————————————————
main [...]

Relaunch

Hello, I’m relaunching mlesniak.com. Most of the old content (a raytracer and a tetris game in Java, biolib-Stuff) is gone at the moment but will probably be re-added over time. If you want details to a blog entry that you’ve found via Google’s cache just write me a mail.