Diffusion and membrane technology