Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Stefan Schmiedl
On Tue, 11 Jan 2011 16:28:50 -0600 Robby Findler wrote: > I don't quite understand if you're showing us the full output or if > we're seeing something that's abridged somehow (I thought you were > saying that we're seeing only one line for every 20 seconds, but that > would mean that the webserve

Re: [racket] Require macros

2011-01-11 Thread Ryan Culpepper
On 01/11/2011 09:08 AM, Eduardo Bellani wrote: Hello list. I am having a bit of a pain with trying to create a custom require syntax. I am trying to save some typing in an MVC like application by building some macros to recognize in the test files where the files to be tested are. I have 2 doub

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Robby Findler
I don't quite understand if you're showing us the full output or if we're seeing something that's abridged somehow (I thought you were saying that we're seeing only one line for every 20 seconds, but that would mean that the webserver took several minutes to start up which doesn't seem right) but,

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Stefan Schmiedl
Dear readers, I have some more experimental data on this issue. On Mon, 10 Jan 2011 18:00:35 +0100 Stefan Schmiedl wrote: > On Mon, 10 Jan 2011 06:53:36 -0700 > Matthew Flatt wrote: > > > Meanwhile, I'm not sure why you're seeing GCs at all when the server is > > idle. The GCs unexpected, rig

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Ben Dean
Great- thanks, all! I was leaning towards OpenCV since it looks like the best opportunity to get to know the ffi/unsafe module, and make something interesting at the same time. I'm sure I'll be back with more questions any minute... On Tue, Ja

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Anthony Cowley
On Tue, Jan 11, 2011 at 9:58 AM, Ben Dean wrote: > Hmm, thanks, I really appreciate the help.  Obviously an oversight on my > part, but I'm targeting OSX and the built-in apple "iSight" or whatever they I heartily recommend OpenCV's highgui module. I've used this on Mac OS X and Linux for interfa

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Michael Larson
I have a few lines to get you going from objc... I use OpenCL and OpenGL in the captureOutput delegate so your on your own there but this would be a start. - (void)awakeFromNib { NSError *error = nil; if (!mCaptureSession) { // Set up a capture session that outputs ra

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Todd O'Bryan
On Tue, Jan 11, 2011 at 5:28 AM, Noel Welsh wrote: > On Mon, Jan 10, 2011 at 9:53 PM, Greg Hendershott > wrote: >> >> What does it mean for the GC to collect a negative number of bytes? > > I'm ducking this one... Clearly it means that the garbage collector thought it could throw something out,

Re: [racket] How to keep comments when reading a file?

2011-01-11 Thread Todd O'Bryan
I think what I really want to do is to be able to use wxme-read, but have some way for it to not throw out comments, or wxme-port->text-port, but be able to supply my own handlers for non-textual snips. It seems like one of these two should be possible (there is register-lib-mapping!), but there a

[racket] Require macros

2011-01-11 Thread Eduardo Bellani
Hello list. I am having a bit of a pain with trying to create a custom require syntax. I am trying to save some typing in an MVC like application by building some macros to recognize in the test files where the files to be tested are. I have 2 doubts I think, one is how to retrieve the module nam

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Nevo
I've been using QuickTime framework to capture iSight frame before, which is pretty easy. Not sure if that's what you want. Here's a couple of links from google .. http://developer.apple.com/library/mac/navigation/index.html#section=Frameworks&topic=QTKit http://iloveco.de/adding-isight/ http://sta

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Neil Van Dyke
Perhaps someone who knows Mac OS X can chime in. If I had to guess, I would say you'll be making FFI calls to some well-documented Apple library. You can disregard that Linux UVC page. Ben Dean wrote at 01/11/2011 09:58 AM: Hmm, thanks, I really appreciate the help. Obviously an oversight on

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Ben Dean
Hmm, thanks, I really appreciate the help. Obviously an oversight on my part, but I'm targeting OSX and the built-in apple "iSight" or whatever they iCall it. It looks like it's on the list for UVC. I'm pretty new to this game, and have very little experience with language interop and device drive

Re: [racket] Run rocket lunching program in HtDP2 from cammand line

2011-01-11 Thread Matthias Felleisen
On my Mac, $ racket rocket.rkt works just fine, though I will say I am surprised how long it takes to display the canvas. -- Matthias On Jan 10, 2011, at 10:20 PM, tungsh wrote: > > Is their a way to lunch the rocket in the following program > using command line? > ;; > ;; d:/animate

[racket] Run rocket lunching program in HtDP2 from cammand line

2011-01-11 Thread tungsh
Is their a way to lunch the rocket in the following program using command line? ;; ;; d:/animate.rkt ;; (require 2htdp/image) (require 2htdp/universe) (define rocket (bitmap "d:/rocket.png")) (define (create-rocket-scene height) (place-image rocket 50 height (empty-scene 100 100))) (animate cr

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Neil Van Dyke
Noel Welsh wrote at 01/11/2011 05:31 AM: Then depending on the platform and webcam different APIs are available. Yeah, webcam support has always been a mess, on all platforms. If you're on GNU/Linux, I'm not sure of the current best approach, but I guess would probably start with Linux UVC

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Noel Welsh
I looked into webcams a while ago and couldn't find any universal API to access them. For a start it depends on the platform you're using. Then depending on the platform and webcam different APIs are available. N. On Tue, Jan 11, 2011 at 7:00 AM, Ben Dean wrote: > > > > I'm wondering how much it

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Noel Welsh
On Mon, Jan 10, 2011 at 9:53 PM, Greg Hendershott wrote: > > What does it mean for the GC to collect a negative number of bytes? I'm ducking this one... > P.S. I thought "Azul's pauseless garbage collector" > (http://www.artima.com/lejava/articles/azul_pauseless_gc.html, which I > found via http

Re: [racket] How to keep comments when reading a file?

2011-01-11 Thread Jukka Tuominen
Hi, some time ago I asked about a somewhat related problem (see the original message at the bottom). Shortly, in my case I want to _modify_ the source code and have the output include both the modified code and all comments in their original places. Unfortunately it is still to be solved, and I h