Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Galler
Jay, Thanks very much for the answer. My current thinking is that the dynamic-wind described on page 17 of Friedman's Constraining Control may provide enough of dynamic-wind's functionality for my needs. It doesn't appear to have any of the forbidden constructs* of the web-server language. and

Re: [racket] Beginner: advice COM port I/O

2011-12-30 Thread Eli Barzilay
20 minutes ago, Gilbert Martinez wrote: > Thanks for the advice; consistent with your recommendations and those of Mr. > Cleis, I will re-implement this using write-bytes rather attempting to display > a string. > > My working VB code required the carriage-return linefeed character in order to > w

Re: [racket] Beginner: advice COM port I/O

2011-12-30 Thread Gilbert Martinez
Thanks for the advice; consistent with your recommendations and those of Mr. Cleis, I will re-implement this using write-bytes rather attempting to display a string. My working VB code required the carriage-return linefeed character in order to work properly ( .WriteLine("V00" & vbCrLf) ). I'll a

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Jay McCarthy
There's no way I know of that will support dynamic-wind. In the case of with-handlers, the problem is that with-handlers compiles to a use of with-continuation-mark that the transformation supports, but uses a mark key that is not serializable. In principle, dynamic-wind could have been implemente

Re: [racket] Beginner: advice COM port I/O

2011-12-30 Thread Neil Van Dyke
There are a number of things that could be going wrong, due to RS232 and terminal device subtleties, and the OS abstractions. Assuming that your bit rate, data bits, parity, and stop bit are compatible, and you're using the right cable (null-modem or straight through, and enough of the pins wi

Re: [racket] Beginner: advice COM port I/O

2011-12-30 Thread Richard Cleis
I'm not near a Winbox, so I can't try it. Normally, though, I loop the tx to the rx to ensure that the port can read what it writes. Looping back normally involves little more than connecting pins 2 & 3 on the D-connector, if that is what you are using. I would also be wary of the terminator

Re: [racket] Strange behaviour with in-range

2011-12-30 Thread Vincent St-Amour
Also, if you want nested iteration, use `for*'. Vincent At Fri, 30 Dec 2011 17:55:12 -0500, Nadeem Abdul Hamid wrote: > > The for form iterates by drawing an element from each sequence; if any > sequence is empty, then the iteration stops. So this: > > (for ([i (in-range 2 4)] >[j (in-

Re: [racket] Strange behaviour with in-range

2011-12-30 Thread Nadeem Abdul Hamid
The for form iterates by drawing an element from each sequence; if any sequence is empty, then the iteration stops. So this: (for ([i (in-range 2 4)] [j (in-range 1 2)]) (printf "i = ~s j = ~s\n" i j)) produces i = 2 j = 1 at which point, the j sequence is now empty, so the entire i

[racket] Strange behaviour with in-range

2011-12-30 Thread Charles Turner
I'm noticing some unexpected behaviour with in-range: > (for ([i (in-range 2 4)]) (printf "i = ~s\n" i)) i = 2 i = 3 that works as expected, but: > (for ([i (in-range 2 4)] [j (in-range 1 2)]) (printf "i = ~s\n" i)) i = 2 why isn't '3' being picked up in the second example? Thanks,

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Neil Van Dyke
BTW, when I say "load-balancing" here, I don't mean only between physical hosts or virtual hosts, but also among processes on the same multi-CPU/core physical machine. If you are running dedicated server hardware, and you're CPU-bound, each CPU/core can service a separately-GC'd server process

[racket] Beginner: advice COM port I/O

2011-12-30 Thread Gilbert Martinez
I've been experimenting with Racket v5.2 and a GW Instek 8212 meter connected to my PC via COM1 (running WinXP SP3). The meter responds to simple commands (e.g., "V00" terminated with a line feed is read voltage) and I've written simple programs in Python, VB, and even QuickBasic to query the de

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Neil Van Dyke
Noel Welsh wrote at 12/30/2011 02:54 PM: Yes, GC pauses get annoying when the heap gets large. This can lead to timeouts on the client side. FWIW, we've talked in the past about GC and Web serving in general (not specific to the Racket Web Server; I was thinking of my SCGI library at the

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Noel Welsh
On Tue, Dec 27, 2011 at 9:26 PM, Galler wrote: > I note that no one has discussed throwing a significant amount of physical > memory at the problem. > > Empirically, is that because garbage-collection of a large heap creates its > own performance problems? Yes, GC pauses get annoying when the hea

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Galler
FYI, C-level implementation appears to be in src\fun.c, line 7722 as *scheme_dynamic_wind Jay, ->dynamic-wind issue -- The short answer is the code I'm working on is an implementation of Harel's hierarchical state machine formalism. I hesitate to provide a long ans

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Galler
Jay, ->dynamic-wind issue -- The short answer is the code I'm working on is an implementation of Harel's hierarchical state machine formalism. I hesitate to provide a long answer as I fear it would be an imposition on your time and goodwill. Though I'm happy to provid

Re: [racket] MysterX poll

2011-12-30 Thread Galler
Matthew, I use the MysterX COM layer of sections 2.1-2.2 for working with Microsoft's ADO library I have no intentions/ability to use the other sections I would be happy to share all my ADO related code if it would be of benefit. Racket Users list: http://lists.r

Re: [racket] Formlets, Templates

2011-12-30 Thread J G Cho
With JM's help, it's a lot "nicer" now. ;) A long Wufoo example is now done. Also added a plain form using most commonly used elements. https://github.com/racketeer/racketeering/tree/master/wufooing I hope it minimizes Forlmets related newbie questions for the new years! On Tue, Dec 27, 2011 at

Re: [racket] Handin server?

2011-12-30 Thread Eli Barzilay
12 hours ago, Jordan Johnson wrote: > Hi all, > > Where can one find the current version of the handin server (and any > docs for it)? (Aside from mailing list messages about solving > problems, the most relevant thing I've found via Google search is a > directory on pre.plt-scheme.org, which I'm