Re: [racket] Flatten syntax and runtime phases?

2012-06-15 Thread Ryan Culpepper
On 06/15/2012 10:41 PM, Nick Sivo wrote: Hi, I have the following code: #lang racket (require mzlib/defmacro) (defmacro w/uniq (name . body) `(let ([,name (gensym)]) ,@body)) (defmacro in (x . choices) (w/uniq g `(let ([,g ,x]) (or ,@(map (lambda (c) `(eqv? ,g ,c))

[racket] Flatten syntax and runtime phases?

2012-06-15 Thread Nick Sivo
Hi, I have the following code: #lang racket (require mzlib/defmacro) (defmacro w/uniq (name . body) `(let ([,name (gensym)]) ,@body)) (defmacro in (x . choices) (w/uniq g `(let ([,g ,x]) (or ,@(map (lambda (c) `(eqv? ,g ,c)) choices) Naturally, it fails: expand: unbo

Re: [racket] querying the machine's system time...

2012-06-15 Thread Rüdiger Asche
oh I see - I fell into that trap before (with sleep) where the function naming/doc wording suggest a second granularity. I should stop looking at function names and start looking at parameter types. Sorry for that and thanks again! - Original Message - From: "Matthew Flatt" To: "Rü

Re: [racket] querying the machine's system time...

2012-06-15 Thread Matthew Flatt
I'm confused by the question. Maybe you have and old version where 'seconds->date' accepts only integers? The current version accepts a real, and so fractional seconds can be in the argument to 'seconds->date'. On Jun 16, 2012, at 12:14 PM, Rüdiger Asche wrote: > but is there a conversion fu

Re: [racket] querying the machine's system time...

2012-06-15 Thread Rüdiger Asche
but is there a conversion function to the system time similar to seconds->date for milliseconds (didn't find one in the docs)? Once more, what I need to do is examine the timing relationship between different applications one of which is Racket and the other isn't (but uses the system clock on

Re: [racket] querying the machine's system time...

2012-06-15 Thread Matthew Flatt
Use `current-inexact-millseconds' (and divide by 1000) instead of `current-seconds'. At Sat, 16 Jun 2012 06:03:30 +0200, Rüdiger Asche wrote: > I need a millisecond granularity though (or at least 100 ms) - > GetSystemTime() provides that... > > Thanks! > > - Original Message - > From:

Re: [racket] querying the machine's system time...

2012-06-15 Thread Rüdiger Asche
I need a millisecond granularity though (or at least 100 ms) - GetSystemTime() provides that... Thanks! - Original Message - From: "Matthew Flatt" To: "Rüdiger Asche" Cc: Sent: Friday, June 15, 2012 10:53 PM Subject: Re: [racket] querying the machine's system time... I think you

Re: [racket] Is there a way to search across archives on a subject?

2012-06-15 Thread Nadeem Abdul Hamid
Did you try the google group http://groups.google.com/group/racket-users/or other options on the http://racket-lang.org/community.html page? On Friday, June 15, 2012, Don Green wrote: > For example, > I imagine that there were questions and answers about getting Racket to > access PLT Scheme coll

[racket] Is there a way to search across archives on a subject?

2012-06-15 Thread Don Green
For example, I imagine that there were questions and answers about getting Racket to access PLT Scheme collections. I'd like to look for these on users@racket-lang.org archives but this seems to be very tedious... select a dated archive, then seach for the subject, select another dated archive, the

Re: [racket] Problem getting Racket to use my version 4.2 collection(s).

2012-06-15 Thread Matthew Flatt
You should not have to change the suffix. If you require a path that ends in ".ss" and the file doesn't exist, then the error will be reported in terms of an ".rkt" suffix (since the module loader tries both). So, just to be sure, the file "/DG/programs/accounts/email-exists.ss" does exist, right?

[racket] Problem getting Racket to use my version 4.2 collection(s).

2012-06-15 Thread Don Green
Hi, The first line below shows my command line entry. The remaining lines show the result. Obviously, Racket is looking for a .rkt version of my .ss file. Do I really have to change my extensions? There must be a better way. Thanks racket -i --addon /don/.plt-scheme/4.2.1/collects/DG/programs/a

Re: [racket] querying the machine's system time...

2012-06-15 Thread Matthew Flatt
I think you want `current-seconds' and `seconds->date' (where the latter lets you pick local or UTC). At Fri, 15 Jun 2012 18:01:31 +0200, Rüdiger Asche wrote: > Hi there, > > I need to compare time events in my Racket application against output from a > third-party application that most probably

Re: [racket] users Digest, Vol 82, Issue 52

2012-06-15 Thread Patrick King
On Fri, Jun 15, 2012 at 12:00 PM, wrote: > > 2. Re: H264 Codec in Racket (Neil Toronto) > On 06/14/2012 07:32 PM, Anurag Mendhekar wrote: > > This, along with other complexities in the standard, cause h264 code to > > be mostly hideous, although video coding is based on very elegant > > mathemat

[racket] MSB8012 conversion error compiling Racket with VS2010

2012-06-15 Thread Cristian Baboi
After converting solution files from VS2008 to VS2010, I get errors like MSB8012: $(TargetName) ('libmzgc') does not match the Linker's OutputFile property value '..\..\..\lib\libmzgcxxx.dll' ('libmzgcxxx') in project configuration 'Release|x64'. This may cause your project to build

[racket] querying the machine's system time...

2012-06-15 Thread Rüdiger Asche
Hi there, I need to compare time events in my Racket application against output from a third-party application that most probably uses GetsystemTime() or GetLocalTime() for its time stamps, so I need to access those functions as well (or other functions that contain the same information). How