| wakowako 2004-03-29, 5:39 pm |
| hi i'm an italian student of informatic eng. i'm
currently useing plt scheme (204) to learn myself scheme.
i've written a script that rotates an image, but it is too
slow, so i've compiled it to native code, but when i triy to
load it in mred an error message come out from the stdoutput
window:
reference to undefined identifier: color%
the source file starts in this way:
(let* ((blu (make-object color% 40 45 150))
(no-pen (send the-pen-list find-or-create-pen blu 0
'transparent))
(blu-brush (send the-brush-list find-or-create-brush
blu 'solid)))
(define simulation-window
(instantiate frame% ()
(label "rotazione")
[...]
etc..
the script works...
can't i use native code with mred?
thanks
p.s. i used it succesfully with mzscheme, but the difference
was 2 sec on 18 total secs. and the algoritm was an
insertion sort of 50000 random numbers stored in a list.
why? was the algoritm too simple? is there hope that my mred
program runs faster?
thanks again
ww
|