Re: [racket] garbage collection and process idling

2010-10-16 Thread Jay McCarthy
On Sat, Oct 16, 2010 at 9:32 PM, Greg Hendershott wrote: > I thought I saw a thread devoted to calling collect-garbage > periodically, when I browsed the web-server code before ... but I > can't seem to find it again now. The command line version used to do that... I think. I routinely create suc

Re: [racket] Racket and music

2010-10-16 Thread Richard Cleis
I have never read or played sound files with Racket, except via system calls. Some Racketeers have implemented PortAudio. You can check the PLaneT server for that. Precise synchronization of I/O and sound is tricky. With what kind of programming are you familiar? rac On Oct 16, 2010, at 8:2

Re: [racket] garbage collection and process idling

2010-10-16 Thread Greg Hendershott
I thought I saw a thread devoted to calling collect-garbage periodically, when I browsed the web-server code before ... but I can't seem to find it again now. > Eventually, we should improve the collector (or replace it with a > better one) to support incremental collection. My recent (albeit lim

Re: [racket] garbage collection and process idling

2010-10-16 Thread Hendrik Boom
On Sat, Oct 16, 2010 at 07:24:42PM -0600, Matthew Flatt wrote: > At Sat, 16 Oct 2010 13:40:43 -0400, Neil Van Dyke wrote: > > Any thoughts on how, by default, timing of garbage collection cycles is > > affected by whether the process is "idle". > > > > For example, if non-GC threads are all waiti

Re: [racket] Racket and music

2010-10-16 Thread Richard Cleis
Analyze sounds from a microphone? rac On Oct 16, 2010, at 4:56 PM, Sébastien Cano wrote: > Hi everyone, > > I'm a beginner in Racket and I plan to make a rhythm game. > Do you think it is possible? Would it be easy? > I don't know where to start from. > The program has to analyze sounds, and th

Re: [racket] garbage collection and process idling

2010-10-16 Thread Matthew Flatt
At Sat, 16 Oct 2010 13:40:43 -0400, Neil Van Dyke wrote: > Any thoughts on how, by default, timing of garbage collection cycles is > affected by whether the process is "idle". > > For example, if non-GC threads are all waiting on events, might the > thread with GC be more likely to trigger a GC

Re: [racket] racket vs. racket/base

2010-10-16 Thread Matthew Flatt
At Sat, 16 Oct 2010 11:52:49 -0700, Sam Phillips wrote: > Is there a useful rule of thumb for deciding if a module should be in > the racket > language or the racket/base language? Use `racket/base' for any library that you intend to give to others. Otherwise, use `racket' if you find it more conv

[racket] Racket and music

2010-10-16 Thread Sébastien Cano
Hi everyone, I'm a beginner in Racket and I plan to make a rhythm game. Do you think it is possible? Would it be easy? I don't know where to start from. The program has to analyze sounds, and that's the hard part... Thanks in advance. _ For list-r

Re: [racket] racket vs. racket/base

2010-10-16 Thread Neil Van Dyke
I actually noticed a bug in the code of a large system a couple days ago, thanks to "require"s of non-base Racket modules. Finding the bug was prompted by a "Why does this module require *that* module?" reaction when I was cleaning up "require"s. (Turns out someone had mistakenly conflated tw

Re: [racket] racket vs. racket/base

2010-10-16 Thread Robby Findler
My experience has been the only time I benefit from #lang racket/base over #lang racket in terms of a noticeable runtime cost is when I'm writing little scripts and running them via "racket" on the commandline. FWIW. Robby On Sat, Oct 16, 2010 at 4:09 PM, Carl Eastlund wrote: > On Sat, Oct 16, 2

Re: [racket] racket vs. racket/base

2010-10-16 Thread Carl Eastlund
On Sat, Oct 16, 2010 at 4:31 PM, Neil Van Dyke wrote: > Sam Phillips wrote at 10/16/2010 02:52 PM: >> >> Is there a useful rule of thumb for deciding if a module should be in >> the racket language or the racket/base language? >> > > I, for one, always use "racket/base". > > In a sidebar alongside

Re: [racket] racket vs. racket/base

2010-10-16 Thread Neil Van Dyke
Sam Phillips wrote at 10/16/2010 02:52 PM: Is there a useful rule of thumb for deciding if a module should be in the racket language or the racket/base language? I, for one, always use "racket/base". In a sidebar alongside the table of contents of the Reference (nope, it's not an ad, nor a

[racket] racket vs. racket/base

2010-10-16 Thread Sam Phillips
Is there a useful rule of thumb for deciding if a module should be in the racket language or the racket/base language? Cheers, Sam _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] testing student programs

2010-10-16 Thread Eli Barzilay
40 minutes ago, Todd O'Bryan wrote: > I know this has come up on the list before, and I've reread those > threads but am little confused. > [...] > It seems like if I use make-module-evaluator, For student languages it might be better to use `make-evaluator'. (With `make-module-evaluator' you sho

Re: [racket] [OT] Re: Fundamentals

2010-10-16 Thread Jakub Piotr Cłapa
On 16.10.10 18:29, Neil Van Dyke wrote: Jakub Piotr Cłapa wrote at 10/16/2010 11:57 AM: On 14.10.10 11:44, Noel Welsh wrote: The distinction is a bit arbitrary, as with a one-to-one mapping you can convert from one to the other with no loss of information. AFAIK this is true in general since

Re: [racket] testing student programs

2010-10-16 Thread Nadeem Abdul Hamid
I don't think it should be that difficult once you get an evaluator set up. I've done something like what you want, taking some ideas from the handin server code. What I came up with (no fancy macros) is you define a test specification for an assignment like this (in a #lang racket file):

[racket] testing student programs

2010-10-16 Thread Todd O'Bryan
I know this has come up on the list before, and I've reread those threads but am little confused. Here's a sample student program file: -- ; volume-of-solid: number number number -> number ; given the length, w

[racket] garbage collection and process idling

2010-10-16 Thread Neil Van Dyke
Any thoughts on how, by default, timing of garbage collection cycles is affected by whether the process is "idle". For example, if non-GC threads are all waiting on events, might the thread with GC be more likely to trigger a GC at that idle time, rather than when some threads are working? R

Re: [racket] [OT] Re: Fundamentals

2010-10-16 Thread Neil Van Dyke
Jakub Piotr Cłapa wrote at 10/16/2010 11:57 AM: On 14.10.10 11:44, Noel Welsh wrote: The distinction is a bit arbitrary, as with a one-to-one mapping you can convert from one to the other with no loss of information. AFAIK this is true in general since in the raw binary form you have to disti

[racket] [OT] Re: Fundamentals

2010-10-16 Thread Jakub Piotr Cłapa
On 14.10.10 11:44, Noel Welsh wrote: The distinction is a bit arbitrary, as with a one-to-one mapping you can convert from one to the other with no loss of information. AFAIK this is true in general since in the raw binary form you have to distinguish code from data and as far as my knowledge

Re: [racket] [BULK] Fundamentals

2010-10-16 Thread Mathew Kurian
There is a lot of good information here. Thank you all who contributed. Mathew Kurian -- 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 a

Re: [racket] ftp connexion

2010-10-16 Thread Neil Van Dyke
scouic wrote at 10/16/2010 09:46 AM: Before, i'm just trying to write a function 'ftp-upload-file, because it can serve for many users .. Good luck. Two documents that might be useful: http://www.ietf.org/rfc/rfc959.txt http://www.ietf.org/rfc/rfc1579.txt -- http://www.neilvandyke.org/

Re: [racket] ftp connexion

2010-10-16 Thread scouic
thanks. Before, i'm just trying to write a function 'ftp-upload-file, because it can serve for many users .. if i can't do that, i'll post here :) 2010/10/16 Neil Van Dyke > scouic wrote at 10/16/2010 09:14 AM: > > i have written a bash file (ubuntu) and a batch file (windows) who upload >> my

Re: [racket] ftp connexion

2010-10-16 Thread Neil Van Dyke
scouic wrote at 10/16/2010 09:14 AM: i have written a bash file (ubuntu) and a batch file (windows) who upload my_file.txt on my server. Can i launch, for example in windows, ftp-upload.bat via racket for upload my file on my server ? Yes, you can do that. There are many different procedures yo

Re: [racket] ftp connexion

2010-10-16 Thread scouic
sorry, first message has not been sent : this is it : Hi all, I have a little problem for ftp connexion : i want to download my_file.txt at example.com/upload/my_file.txt in my current directory : this is my code : (define cd (current-directory)) (define foo (ftp-establish-connection "example.com"

Re: [racket] ftp connexion

2010-10-16 Thread Neil Van Dyke
Do you mean how to upload files from Racket via FTP? I don't see any documentation about uploading in "http://docs.racket-lang.org/net/ftp.html";. Nor do I see any code for upload in "collects/net/ftp-unit.rkt". I think that you would probably have to write an "ftp-upload-file" procedure yo

Re: [racket] ftp connexion

2010-10-16 Thread scouic
nb : i've search a way to launch a file from racket, but i found nothing ... if you have links, i'm interested _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] network programming in scheme

2010-10-16 Thread Neil Van Dyke
김태윤 wrote at 10/16/2010 06:49 AM: these day, I am abstracting some program that uses internet A tutorial on doing client/server Internet programming at the level of TCP sockets is at: http://docs.racket-lang.org/more/index.html Most of the Internet protocols you use are layered atop TCP. TC

[racket] network programming in scheme

2010-10-16 Thread 김태윤
hello~ these day, I am abstracting some program that uses internet but I have no idea where should I start first. could somebody please give me an advice? useful link, tutorial, sort of things thanks in advanced _ For list-related administrative tas