From: Adam S. <ash...@bl...> - 2002-04-30 15:39:25
|
From: Ken A. <kan...@bb...> - 2003-03-31 20:51:15
|
I guess i don't understand how these new environmnets work. When i load this file, and run (interruptButton) I get the error (jl:button "Interrupt" Color.red$ (jl:action (lambda interruptButton~2 (e)...) )) t = Thread[main,5,main] ==================================== SchemeException:[[ERROR: undefined variable "processConArgs"""]] > What am i doing wrong? (environment-import jlib.JLIB.class "jl:") (import "java.awt.Color") (define (interruptButton) ;; Provides an interrupt button for this thread. ;; JScheme execution will be interrupted on the next procedure call. (let* ((t (Thread.currentThread)) (win (jl:window "Interrupt" (jl:border (jl:north (jl:label (.toString t))) (jl:center (jl:button "Interrupt" Color.red$ (jl:action (lambda (e) (Scheme.interrupt t))))))))) (.pack win) (.show win))) |
From: Timothy H. <tim...@ma...> - 2003-03-31 21:11:57
|
Could you try loading it without the compiled class, i.e., use (evnironment-import "jlib/JLIB.scm") instead of (environment-import jlib.JLIB.class) The problem might be in the interaction of the compiler with the module system... When I use "jlib/JLIB.scm" instead of jlib.JLIB.class, everything works beautifully... I'll look into why the compiler isn't working will with modules..... ---Tim--- On Monday, March 31, 2003, at 03:50 PM, Ken Anderson wrote: > I guess i don't understand how these new environmnets work. When i load > this file, and run > (interruptButton) > I get the error > (jl:button "Interrupt" Color.red$ (jl:action (lambda interruptButton~2 > (e)...) )) > t = Thread[main,5,main] > > ==================================== > SchemeException:[[ERROR: undefined variable "processConArgs"""]] >> > What am i doing wrong? > (environment-import jlib.JLIB.class "jl:") > (import "java.awt.Color") > (define (interruptButton) > ;; Provides an interrupt button for this thread. > ;; JScheme execution will be interrupted on the next procedure call. > (let* ((t (Thread.currentThread)) > (win (jl:window "Interrupt" > (jl:border > (jl:north (jl:label (.toString t))) > (jl:center (jl:button "Interrupt" > Color.red$ > (jl:action > (lambda (e) > (Scheme.interrupt t))))))))) > (.pack win) > (.show win))) > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user > |
From: Ken A. <kan...@bb...> - 2003-03-31 21:40:56
|
At 04:12 PM 3/31/2003 -0500, Timothy Hickey wrote: >Could you try loading it without the compiled class, i.e., use > (evnironment-import "jlib/JLIB.scm") >instead of > (environment-import jlib.JLIB.class) OK, if i do (environment-import "jlib/JLIB.scm" "jl:") it works. I'm sure the compiler is what the problem is. >The problem might be in the interaction of the compiler with the module system... > >When I use "jlib/JLIB.scm" instead of jlib.JLIB.class, everything works beautifully... > >I'll look into why the compiler isn't working will with modules..... > >---Tim--- > > >On Monday, March 31, 2003, at 03:50 PM, Ken Anderson wrote: > >>I guess i don't understand how these new environmnets work. When i load >>this file, and run >>(interruptButton) >>I get the error >>(jl:button "Interrupt" Color.red$ (jl:action (lambda interruptButton~2 >>(e)...) )) >> t = Thread[main,5,main] >> >> ==================================== >>SchemeException:[[ERROR: undefined variable "processConArgs"""]] >>What am i doing wrong? >>(environment-import jlib.JLIB.class "jl:") >>(import "java.awt.Color") >>(define (interruptButton) >> ;; Provides an interrupt button for this thread. >> ;; JScheme execution will be interrupted on the next procedure call. >> (let* ((t (Thread.currentThread)) >> (win (jl:window "Interrupt" >> (jl:border >> (jl:north (jl:label (.toString t))) >> (jl:center (jl:button "Interrupt" >> Color.red$ >> (jl:action >> (lambda (e) >> (Scheme.interrupt t))))))))) >> (.pack win) >> (.show win))) >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: ValueWeb: >>Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >>No other company gives more support or power for your dedicated server >>http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >>_______________________________________________ >>Jscheme-user mailing list >>Jsc...@li... >>https://lists.sourceforge.net/lists/listinfo/jscheme-user > > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >Jscheme-user mailing list >Jsc...@li... >https://lists.sourceforge.net/lists/listinfo/jscheme-user |
From: Ken A. <kan...@bb...> - 2004-09-22 20:29:11
|
There is a google billboard that encodes a puzzle in a URL: {first 10-digit prime found in consecutive digits of e}.com While you can now solve this puzzle by googling, you learn more by actually solving it. Here i use a spigot algorithm to compute digits of e one at a time: http://openmap.bbn.com/~kanderso/jscheme/google.scm I've been able to confirm 17000 digits in about 3 hours of cpu time. |