[racket-users] How to check a place-channel for a message without blocking?

2015-09-01 Thread Charles Hixson
Is there a way to check whether there is a message available to be picked up on a place-channel without blocking? (If there isn't, the only way forwards for me in Racket is via a server. possibly a tcp server, though I don't really want the handshake. Possibly a Unix Socket Server. Possibly

[racket] Places and non-blocking get

2014-06-01 Thread Charles Hixson
I'm contemplating implementing a program in Racket, but it involves different processes sending messages to each other, so I need to be able to check for the presence of a message without brining everything to a halt. In Python I'd do this using a Queue. Is there something similar in Racket? The

Re: [racket] Unicode regexp character classes?

2012-08-04 Thread Charles Hixson
racket-lang.org/reference/regexp.html#(part._regexp-syntax) At Sat, 04 Aug 2012 14:45:30 -0700, Charles Hixson wrote: Are there any unicode regular expression character classes? I'm hoping for something similar to [:alpha:], etc. that are based around, say, the first letter of the unicode charac

[racket] Unicode regexp character classes?

2012-08-04 Thread Charles Hixson
neral-category, but a regular expression would (should?) be much neater. (I know that these aren't mentioned in the documentation, but it just says that it's talking about the "Frequently Used Character Classes", not that there aren't any others.) -- Charles Hixson

[racket] Inexact numbers :: manual request

2012-07-31 Thread Charles Hixson
given in the discussion of numeric types would help. The concept is mentioned, but I didn't encounter any examples of the notation. A simple: > (sqrt 2) #i1.4142135623730951 would have clarified things. -- Charles Hixson Racket Users list: http://lists.racket-

Re: [racket] in-line documentation program? Like Javadoc or Doxygen

2011-04-05 Thread Charles Hixson
#x27;t work in that scheme. (Or perhaps if I just set #lang R5RS it would work.) On 04/05/2011 02:14 PM, Eduardo Bellani wrote: There is also http://www.cs.aau.dk/~normark/schemedoc/ On 04/05/2011 05:44 PM, Charles Hixson wrote: I've hit the noweb documentations several times, and bo

Re: [racket] in-line documentation program? Like Javadoc or Doxygen

2011-04-05 Thread Charles Hixson
wrote: Take a look at the `scribble/srcdoc' library: http://docs.racket-lang.org/scribble/srcdoc.html On Tue, Apr 5, 2011 at 4:44 PM, Charles Hixson wrote: I was really looking for something simple like Doxygen or Javadoc. Something that steps through the code, looks at comments, and

Re: [racket] in-line documentation program? Like Javadoc or Doxygen

2011-04-05 Thread Charles Hixson
ools in Racket? On Apr 5, 2011 2:52 PM, "Charles Hixson" <mailto:charleshi...@earthlink.net>> wrote: > Is there there a program roughly similar to doxygen or javadoc for > Scheme or Racket? > > I know myself to well to believe that I will document something, and > k

[racket] in-line documentation program? Like Javadoc or Doxygen

2011-04-05 Thread Charles Hixson
Is there there a program roughly similar to doxygen or javadoc for Scheme or Racket? I know myself to well to believe that I will document something, and keep the documentation current, unless it is right next to the code being documented. (It didn't work in Fortran or C when that's one of t

[racket] define-values: cannot re-define a constant: string-trim

2011-04-02 Thread Charles Hixson
This error: define-values: cannot re-define a constant: string-trim has just started to appear whenever I try to modify in the lower pane a function that I've defined in the upper pane. I can work around it by using a different name, but it makes it quite difficult to do incremental developmen

[racket] string-trim : an implementation & a question

2011-04-02 Thread Charles Hixson
This seems to be what I want the string-trim to do, but it seems that all the string copying would be expensive. Is there a way to improve it by avoiding the string copying? My original inclination was to use a while loop with a test for non-whitespace, but that appears to not be something sc

Re: [racket] newbie string handling problem

2011-03-31 Thread Charles Hixson
Thanks. Regular expressions *isn't* what I wanted. (When I've tried them before [in Python] they made Python seem fast.) On 03/31/2011 05:06 PM, Thomas Chust wrote: 2011/4/1 Charles Hixson: [...] I'm trying to determine whether the last non-whitespace character of a st

[racket] newbie string handling problem

2011-03-31 Thread Charles Hixson
Hi, I'm trying to determine whether the last non-whitespace character of a string is a colon, and I haven't been able to figure out the best way of doing this. In python I'd just trim the string and look at the character before the end, but while Racket seems to have a string-length function,

[racket] executable speed estimate?

2011-03-06 Thread Charles Hixson
Where can Racket be expected fall in comparison with other languages in executable speed? I'm looking at C-Ada-SBCL Lisp-Clojure-Java-Python-Ruby as a kind of a rough map. I checked speeds reported by http://shootout.alioth.debian.org/, but no Scheme language seems to be listed. My rough g