Logic programming and rapid prototyping