[racket] performance problem in math/matrix

From: Tobias Hammer (tobias.hammer at dlr.de)
Date: Sun Jan 20 09:24:34 EST 2013

On Sun, 20 Jan 2013 15:09:42 +0100, Jens Axel Søgaard  
<jensaxel at soegaard.net> wrote:

> Note: Disable "Populate "compiled" directories (for faster loading)"
>           to run it in DrRacket. To disable: Choose the language menu.
>           Choose the menu item "Choose language". Click the button
>           "advanced". Then disable.
>
> If it is enabled, I currently get this curious error from the compiler:
>
> ../collects/compiler/cm.rkt:438:6: write: cannot marshal value that is
> embedded in compiled code
>   value: #<ctype:float>
>
> I unsure whether it is a bug in my code, or in cm.rkt.

Most likely you ran into 3D-syntax (as i did before :)
http://lists.racket-lang.org/dev/archive//2012-July/010101.html

Without knowing the exact location of the error, i think you tried to pass  
a ctype from phase 1 to 0 by simply inserting it there (e.g by #,ctype).  
But as a ctype can't be printed it can't be stored in the compiled  
bytecode.

Tobias


Posted on the users mailing list.