Re: [racket] Accessing Win32 API from Racket

2011-11-10 Thread Harry Spier
Matthew Flatt wrote: > Or `shell-execute'? > This is even better! Many thanks, Harry _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Accessing Win32 API from Racket

2011-11-10 Thread Harry Spier
Dear Robby, >From the documentation this seems to be exactly what I need! The more I get to know Racket the more impressive it is. On the one hand everything is so high-level, well thought out, simple and straight forward . Unlike Python I don't even have to install an extension to do Wind

Re: [racket] Accessing Win32 API from Racket

2011-11-10 Thread Matthew Flatt
Or `shell-execute'? At Thu, 10 Nov 2011 19:49:13 -0600, Robby Findler wrote: > Does 'system' do what you want? > > Robby > > On Thu, Nov 10, 2011 at 7:45 PM, Harry Spier wrote: > > Dear list members, > > Is there an extension or package for Racket that can call the Win32 API ?  I > > don't need

Re: [racket] Accessing Win32 API from Racket

2011-11-10 Thread Robby Findler
Does 'system' do what you want? Robby On Thu, Nov 10, 2011 at 7:45 PM, Harry Spier wrote: > Dear list members, > Is there an extension or package for Racket that can call the Win32 API ?  I > don't need the whole API.   I only need to execute a Win32 shell command to > open a file with its defau

[racket] Accessing Win32 API from Racket

2011-11-10 Thread Harry Spier
Dear list members, Is there an extension or package for Racket that can call the Win32 API ? I don't need the whole API. I only need to execute a Win32 shell command to open a file with its default application indicated by the files extension. I have a small python utility I want to conve

Re: [racket] V5.2 (sequence? 2)

2011-11-10 Thread J G Cho
Well, a number is a seq of length 1, I suppose. Although my brain thinks list or vector when it sees the term... I had to skip v5.1.2 due to some incomprehensible error. Other than this and plot module providing a new proc 'inverse' which caused minor errors, it seems to work really well. Change

Re: [racket] match and debug in Advanced Student

2011-11-10 Thread Matthew Flatt
This problem was caused by a bug in the bytecode compiler. The bug was exposed by usual code (including a `set!' to an other unused procedure `let' binding) in the "Debug" button's transformation of the expanded `match' form. I've pushed a repair to the git repo. At Tue, 08 Nov 2011 23:17:32 -050

Re: [racket] profiling

2011-11-10 Thread Neil Toronto
Expanding on what Robby said about the statistical profiler (the `profile' module) being more useful: I've found that the statistical profiler more often correctly reports the names and source locations of functions. It also doesn't require compiling your code with profiling enabled - it just w

Re: [racket] long lines in definitions window

2011-11-10 Thread Jos Koot
Thanks I looked in the preferences and did not notice the edit menu item. Jos -Original Message- From: robby.find...@gmail.com [mailto:robby.find...@gmail.com] On Behalf Of Robby Findler Sent: jueves, 10 de noviembre de 2011 17:32 To: Jos Koot Cc: users@racket-lang.org Subject: Re: [racke

Re: [racket] long lines in definitions window

2011-11-10 Thread Robby Findler
Edit | Wrap Text Robby On Thu, Nov 10, 2011 at 10:24 AM, Jos Koot wrote: > If I recall correctly, long lines in the definitions window of DrRacket were > automatically split such as to be visible in even a small window. Nowadays I > see a scrollbar appear and lines are not shown split up. This i

[racket] long lines in definitions window

2011-11-10 Thread Jos Koot
If I recall correctly, long lines in the definitions window of DrRacket were automatically split such as to be visible in even a small window. Nowadays I see a scrollbar appear and lines are not shown split up. This is in DrRacket, version 5.2.0.1--2011-11-07(7d607fd/a) [3m]. Is there an option to

Re: [racket] profiling

2011-11-10 Thread Adam Shaw
Excellent! This is very helpful -- thanks! Regards, Adam On Nov 10, 2011, at 9:44 AM, Robby Findler wrote: > Turning on profiling is an action in the Language dialog. It needs to > be set up before your program is compiled (which the below doesn't > do). > > Robby

Re: [racket] profiling

2011-11-10 Thread Robby Findler
Turning on profiling is an action in the Language dialog. It needs to be set up before your program is compiled (which the below doesn't do). Robby On Thu, Nov 10, 2011 at 9:34 AM, Adam Shaw wrote: > Thanks -- although when I tried this a dialog popped up saying "There is no > profiling informa

Re: [racket] profiling

2011-11-10 Thread Adam Shaw
Thanks -- although when I tried this a dialog popped up saying "There is no profiling information available. Please be sure that profiling is enabled..." So, I added two lines of code above the def'n of even?: (require errortrace) (profiling-enabled #t) Same dialog pops up even so. Regards, A

Re: [racket] profiling

2011-11-10 Thread Robby Findler
Sorry, just 'profile'. Robby On Thu, Nov 10, 2011 at 9:32 AM, Robby Findler wrote: > There's also the (probably more useful) racket/profile library that > uses sampling. > > Robby > > On Thu, Nov 10, 2011 at 9:28 AM, Shriram Krishnamurthi > wrote: >> Here's a program: >> >> #lang racket >> >>

Re: [racket] profiling

2011-11-10 Thread Robby Findler
There's also the (probably more useful) racket/profile library that uses sampling. Robby On Thu, Nov 10, 2011 at 9:28 AM, Shriram Krishnamurthi wrote: > Here's a program: > > #lang racket > > (define (even? n) >  (if (zero? n) true (odd? (sub1 n > > (define (odd? n) >  (if (zero? n) false (

Re: [racket] profiling

2011-11-10 Thread Shriram Krishnamurthi
Here's a program: #lang racket (define (even? n) (if (zero? n) true (odd? (sub1 n (define (odd? n) (if (zero? n) false (even? (sub1 n Go to Language | Choose Language, click on Show Details, and at the top-right, select "Debugging and profiling". Now run the program and in the inte

[racket] profiling

2011-11-10 Thread Adam Shaw
Can someone point me to instructions and/or tutorial materials on how to profile programs in DrRacket? I would appreciate it. Thanks! Regards, Adam _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Building Racket 5.2 dumps core on OpenBSD

2011-11-10 Thread Carson Chittom
Building Racket 5.2 on OpenBSD 5.0 (amd64) dumps core with the following error. I don't know enough to debug it, but I'll be glad to provide any requested information. I don't know about other iterations of the Racket 5.x series, but 5.1.2 and 5.1.3 built and worked perfectly. raco setup: runnin

Re: [racket] Doubt about ryanc/db unreadable values

2011-11-10 Thread Ryan Culpepper
It looks like main.the_procedure is returning either defined composite types or some ad hoc ROW type, neither of which is fully supported by db. (And I didn't realize I left partial support turned on.) As a workaround, you can extract the components of the ROW value so they're separate fields

[racket] Doubt about ryanc/db unreadable values

2011-11-10 Thread Eduardo Bellani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list. I am somewhat stuck with a mysterious return from my postgresql DB. I have a stored procedure that behaves like this: my_test_db=# select main.the_procedure(); the_procedure - (1,1,16642,

Re: [racket] V5.2 (sequence? 2)

2011-11-10 Thread Matthew Flatt
Yes, that change was part of v5.1.2. An exact nonnegative integer N can be used as a sequence equivalent to `(in-range N)', so that (for ([i 10]) ...) iterates `i' from 0 to 9. At Wed, 9 Nov 2011 23:20:37 -0700, Jay McCarthy wrote: > It is intentional. It broke mongodb too, but I forget what th