Re: [racket] network server with places?

2011-06-05 Thread Jon Zeppieri
On Sun, Jun 5, 2011 at 9:39 PM, Robby Findler wrote: > I don't know about the feasibility of making one of those marshall > across a place channel but in the meantime does it make sense for you > to read the request on the main place, send the data to a separate > place to process and the send the

Re: [racket] network server with places?

2011-06-05 Thread Robby Findler
I don't know about the feasibility of making one of those marshall across a place channel but in the meantime does it make sense for you to read the request on the main place, send the data to a separate place to process and the send the result back? Or is most of the work in reading and writing th

[racket] network server with places?

2011-06-05 Thread Jon Zeppieri
Is there a way to write a network server using places, where separate client connections would be handled by separate worker places? Since neither TCP listeners nor ports can be sent over a place-channel, I can't figure out a way of doing this short of handling all socket I/O in the "main" place --

Re: [racket] FFI: problems using (_list i _string)

2011-06-05 Thread Thomas Chust
2011/6/5 keyd...@gmx.de : > [...] > In some example c code available, the argument actually is a > two-dimensional array of chars, which then of course is passed as a > pointer to char, and I guess the separation of strings is achieved > by the null-termination of c strings then... Hello Sigrid,

Re: [racket] filesystem api

2011-06-05 Thread Eli Barzilay
Three hours ago, Nikita B. Zuev wrote: > Thanks, for your replies, `fold-files' is exactly what I need. Note that this will essentially do the double FS access -- but it shouldn't be a problem since two quick FS polls for the same information should be pretty much the same cost as one with a prope

Re: [racket] text-field% locking

2011-06-05 Thread Ivanyi Peter
> The short answer is that editors aren't thread-safe in > any simple sense. That section of the docs provides some > information on working with multiple threads, but please > ask again if I've misunderstood or if the docs don't > provide enough help. Oh yes. I have put a begin-edit-sequence

Re: [racket] no check syntax arrows in 5.1.1

2011-06-05 Thread Eli Barzilay
An hour and a half ago, Neil Van Dyke wrote: > Someone, I forget who, mentioned that the Check Syntax arrows no longer > appear in 5.1.1 under Linux (at least not for me and the other person). > They *do* still work for me in 5.1, so this seems to be a regression in > 5.1.1. > > I really like

Re: [racket] text-field% locking

2011-06-05 Thread Matthew Flatt
See http://docs.racket-lang.org/gui/editor-overview.html#%28part._editorthreads%29 The short answer is that editors aren't thread-safe in any simple sense. That section of the docs provides some information on working with multiple threads, but please ask again if I've misunderstood or if the do

[racket] text-field% locking

2011-06-05 Thread Ivanyi Peter
Dear All, I have a problem. I try to execute a command line program from my Scheme program. The stdout and stderr of the command line program should be redirected to a text-field%. I have one program which writes to stdout and stderr quite quickly and I get the following error: iproc.scm:79:24:

[racket] no check syntax arrows in 5.1.1

2011-06-05 Thread Neil Van Dyke
Someone, I forget who, mentioned that the Check Syntax arrows no longer appear in 5.1.1 under Linux (at least not for me and the other person). They *do* still work for me in 5.1, so this seems to be a regression in 5.1.1. I really like the arrows and miss them. Can we get them back soon? -

Re: [racket] Reacquainting myself

2011-06-05 Thread Neil Van Dyke
Noel Welsh wrote at 06/04/2011 05:25 PM: Pattern matching (don't know if this still works): http://planet.racket-lang.org/display.ss?package=sxml-match.plt&owner=jim Jim Bender's "sxml-match" works great, and is a useful tool that I think anyone doing XML processing in Racket should keep h

Re: [racket] FFI: problems using (_list i _string)

2011-06-05 Thread keyd...@gmx.de
Hi Thomas, thanks a lot for your answer! > > if dtext is actually an alias for char, as you write, then the > signature of the C function implies that it expects a string, not a > list of strings, as its third argument. Oh, you are right, of course! I was mislead by the integer case, where ind

Re: [racket] filesystem api

2011-06-05 Thread Nikita B. Zuev
Thanks, for your replies, `fold-files' is exactly what I need. -- Regards, Nikita B. Zuev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] filesystem api

2011-06-05 Thread Noel Welsh
Maybe fold-files will do what you want. N. On Sun, Jun 5, 2011 at 3:19 PM, Nikita B. Zuev wrote: > Hello, > > I'm writing a program, that needs to walk recursively through a > filesystem directory structure. _ For list-related administrative task

Re: [racket] filesystem api

2011-06-05 Thread Robby Findler
This will print out all files and directories, starting from the current directory. #lang racket (for ([d (in-directory)]) (printf "d: ~s\n" d)) You may also want to check out the directory-exists? and file-exists? primitives. hth, Robby On Sun, Jun 5, 2011 at 7:19 AM, Nikita B. Zuev wrote:

[racket] filesystem api

2011-06-05 Thread Nikita B. Zuev
Hello, I'm writing a program, that needs to walk recursively through a filesystem directory structure. Looking through documentation I found only `directory-list' function, that can list directory content. The problem is, I haven't found any high level data structures representing filesystem, `dir

Re: [racket] find-seconds, second : (integer-in 0 61)

2011-06-05 Thread Matthew Flatt
At Fri, 3 Jun 2011 21:47:04 -0400, "Geoffrey S. Knauth" wrote: > Does any PLT Scheme or Racket code actually track or use > those leap seconds? For some functions, it depends on the library and configuration provided by the OS. My impression is that leap seconds are typically not tracked. Specif

Re: [racket] Gambit Scheme for the iPhone and iPad

2011-06-05 Thread Prabhakar Ragde
On 6/4/11 10:55 PM, Nevo wrote: Have you by chance bought that app and actually run on your iPhone/iPad? Yes. It's only 99 cents. I have not used it extensively, since I only noticed it yesterday afternoon. Also I have not used my iPad in general extensively! I put it on my iPhone also, just

Re: [racket] Gambit Scheme for the iPhone and iPad

2011-06-05 Thread Jukka Tuominen
... > > Next what Marc Feely's app needs is some sort of community, like > Scratch, so people can share their wizardry, but for that the > ability to organize and modularize scripts would need to be > improved. The downside is if people get too clever, Apple could > get hyperparental and pul

Re: [racket] FFI: problems using (_list i _string)

2011-06-05 Thread Thomas Chust
2011/6/5 keyd...@gmx.de : > [...] > The c function is described as > boolean OCI_BindArrayOfStrings(OCI_Statement * stmt, const mtext * name, > dtext * data, unsigned int len, unsigned int nbelem) > where mtext and dtext are aliases for char, the way the library was > compiled, the second-but-last

Re: [racket] Gambit Scheme for the iPhone and iPad

2011-06-05 Thread Geoffrey S. Knauth
This is wonderful news, thanks. I don't see anything in the way of in-app documentation, which means going into it you kind of need to know what you're doing. You can look things up in Safari or a PDF reader, but on the iPhone switching apps is a bit cumbersome, especially for me since I have