Re: [racket] [plt-edu] real-time graphics for simultion?

2010-10-18 Thread Mathew Kurian
Making graphs on that might be challenging. Is that the only way? -- Mathew Kurian Seven Lakes High School Cell: 8324932862 | Home: 2814929526 Do all the good you can, by all the means you can, In all the ways you can, in all the places you can, At all the times you can, to all the people you can

Re: [racket] [plt-edu] real-time graphics for simultion?

2010-10-18 Thread Robby Findler
2htdp/universe I'd say. Robby On Monday, October 18, 2010, geb a wrote: > > > --- On Mon, 10/18/10, geb a wrote: > >> From: geb a >> Subject: [plt-edu] real-time graphics for simultion? >> To: plt-...@list.cs.brown.edu >> Date: Monday, October 18, 2010, 9:50 AM >> Hello, >> >> I have a few stu

Re: [racket] A list of vectors

2010-10-18 Thread Everett Morse
Update to my previous post, I missed a ` character (just ran it to make sure I was sane). The line is actually: (list `#(,(regexp-replace* a-string (vector-ref (first T) 0) (string-append "<<" a-string ">>") Thanks, -Everett On 10/18/2010 03:23 PM, scouic wrote: Hi all, here more than

Re: [racket] A list of vectors

2010-10-18 Thread Everett Morse
On 10/18/2010 03:23 PM, scouic wrote: this is the function : (define (rush! T super-list a-string) (if (empty? T) super-list ;; here is the problem (rush! (rest T) (append super-list (list (regexp-replace* a-string (vector-ref (

Re: [racket] A list of vectors

2010-10-18 Thread scouic
Big thanks, this works now \o/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] A list of vectors

2010-10-18 Thread YC
Higher order functions will be what you are looking for. In this case - map and vector-map. http://docs.racket-lang.org/reference/pairs.html#(def._((lib._racket/private/map..rkt)._map)) http://docs.racket-lang.org/reference/vectors.html#(def._((lib._racket/vector..rkt)._vector-map)) Use map to

[racket] A list of vectors

2010-10-18 Thread scouic
Hi all, here more than three hours that i'm locked on a function, i defer to you =) My problem : i have a list of vectors, each vectors represents a text syntax (not html syntax, just text), and were created with the result of a format sqlite SELECT operation. For example, my list of vectors L is

Re: [racket] un-tarring and un-zipping files?

2010-10-18 Thread Eli Barzilay
Three minutes ago, Danny Yoo wrote: > > The resulting zip/tar/tgz files should be unpackable by the > > standard tools.  (There is no racket code that does that, since > > creating a standard archive is easy, but parsing one runs into > > problems due to incompatibilities of these archives.) > > O

Re: [racket] un-tarring and un-zipping files?

2010-10-18 Thread Danny Yoo
> The resulting zip/tar/tgz files should be unpackable by the standard > tools.  (There is no racket code that does that, since creating a > standard archive is easy, but parsing one runs into problems due to > incompatibilities of these archives.) Ok. Is there a standard library for packaging up

Re: [racket] un-tarring and un-zipping files?

2010-10-18 Thread Eli Barzilay
About a minute ago, Danny Yoo wrote: > How do I untar or unzip the files produced by the zip and tar > modules? I've been staring at: > > http://docs.racket-lang.org/file/tar.html > http://docs.racket-lang.org/file/zip.html > > I can create archives perfectly well: it's the decompression

[racket] un-tarring and un-zipping files?

2010-10-18 Thread Danny Yoo
How do I untar or unzip the files produced by the zip and tar modules? I've been staring at: http://docs.racket-lang.org/file/tar.html http://docs.racket-lang.org/file/zip.html I can create archives perfectly well: it's the decompression step that I'm clueless about.

[racket] "HtDP-style" sound exercises

2010-10-18 Thread John Clements
Am I allowed to use the HtDP brand name :)? Online at http://www.brinckerhoff.org/clements/csc123-fa10/sound-primer/sound-primer.html I have about a dozen pages of HtDP-style text+exercises built on top of my RSound planet package. The challenge is how to deal with generating sounds: do you

Re: [racket] How to use typed/racket within Emacs and scheme top level ???

2010-10-18 Thread Neil Van Dyke
Sam Tobin-Hochstadt wrote at 10/18/2010 11:43 AM: Typed Racket is designed to be used in modules. The REPL is supported for simple interactions, but the form-at-a-time nature makes some things much harder, and some things impossible (such as mutually-recursive functions). Since some of these

[racket] Fw: [plt-edu] real-time graphics for simultion?

2010-10-18 Thread geb a
--- On Mon, 10/18/10, geb a wrote: > From: geb a > Subject: [plt-edu] real-time graphics for simultion? > To: plt-...@list.cs.brown.edu > Date: Monday, October 18, 2010, 9:50 AM > Hello, > > I have a few students solving differential equations using > scheme.  Specifically, we have three firs

Re: [racket] How to use typed/racket within Emacs and scheme top level ???

2010-10-18 Thread namekuseijin
holy crab! why would someone in his own mind prefer Emacs over a modern and slick DrRacket environment? Let the old OS RIP before it gets sentient and wreaks (even more) havoc onto the world! On Thu, Oct 14, 2010 at 2:28 AM, Scott McLoughlin wrote: >  I tried (require typed/scheme) in the schem

[racket] Books for review in the Journal of Functional Programming

2010-10-18 Thread Simon Thompson
The Journal of Functional Programming publishes book reviews. I have just updated: list of books for review in the journal of functional programming, available here: http://www.cs.kent.ac.uk/people/staff/sjt/JFP/available.html which also has a link to a set of review guidelines. If you review a

Re: [racket] discarding initialization with delay + reset

2010-10-18 Thread Keiko Nakata
>> I speculate that an operation of 'update x1' is captured therefore >> discarded. But how this is implemented? Do you have a reference >> implementation or something that I can consult? > > Do what Matthias suggested -- but the code in question is pretty > tricky. You can also browse the srfi

Re: [racket] How to use typed/racket within Emacs and scheme top level ???

2010-10-18 Thread Sam Tobin-Hochstadt
On Sun, Oct 17, 2010 at 9:32 PM, Hari Prashanth wrote: > Currently Typed Racket at repl does not completely work... Yes, and this is likely to remain the case, at least in general. Typed Racket is designed to be used in modules. The REPL is supported for simple interactions, but the form-at-a-ti

Re: [racket] discarding initialization with delay + reset

2010-10-18 Thread Eli Barzilay
Four hours ago, Keiko Nakata wrote: > Hello, > > Can I regard this behavior as intended semantics? Yes. > I speculate that an operation of 'update x1' is captured therefore > discarded. But how this is implemented? Do you have a reference > implementation or something that I can consult? Do

[racket] Transparent area's

2010-10-18 Thread Christophe Vandenberghe
I am fairly new to scheme and I have been experimenting with the Graphics Toolkit from Racket. I am trying to work with a background image and have everything else be on top of that image. The problem is that most area's come with a grey background that I can't seem to get rid of. So what I ha

Re: [racket] how does call/cc and let/ec exactly works?

2010-10-18 Thread Jens Axel Søgaard
2010/10/18 김태윤 : > how does call/cc and let/ec exactly works? Read http://www.cs.indiana.edu/hyplan/dfried/appcont.pdf -- Jens Axel Søgaard _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] how does call/cc and let/ec exactly works?

2010-10-18 Thread 김태윤
thank you for your replying does call/cc always working with let/ec? when it comes to compare with your code, it looks like.. call/cc is meaning of "get out of this function and evaluate next function and comeback (to inside of let/ec) for evaluate rest of the code" is it right? if so, I don't und

Re: [racket] discarding initialization with delay + reset

2010-10-18 Thread Matthias Felleisen
If you use drracket to code, use check syntax on your expression, right-click on delay or force, and request to jump to the definition. This will trigger an error message --ignore it! Look for force/ and force and delay to understand how things are handled in this world. Racket truly is an op

[racket] discarding initialization with delay + reset

2010-10-18 Thread Keiko Nakata
Hello, Can I regard this behavior as intended semantics? (let* ([x0 (delay (control k I))] [x1 (delay (force x0))]) (reset (force x1)) (force x1) 0) raises an error 'force: reentrant promise x1'. I speculate that an operation of 'update x1' is captured therefore discarded. But how this

[racket] how does call/cc and let/ec exactly works?

2010-10-18 Thread 김태윤
hello I am thinking of such a code like.. #lang scheme (require racket/gui) (let ([v (let/ec out (dynamic-wind (lambda () (display "in ")) (lambda () (display "pre ") (display (call/cc out)) #f)

Re: [racket] How to use typed/racket within Emacs and scheme top level ???

2010-10-18 Thread Neil Van Dyke
Scott McLoughlin wrote at 10/18/2010 12:18 AM: The Web site at the URL you name still claims that the Quack available for download is from "2009-10-14" - a year old. Perhaps it's because my rigorous quality assurance process for Emacs hacks takes a year for each release. Actually, that was