For Programmers: Free Programming Magazines  


Home > Archive > Scheme > March 2004 > load-extension & mred









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author load-extension & mred
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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com