Re: [racket] updating Joe's and Greg's tutorial -- Re: Best way to propose changes to Scribble CSS files

2013-10-16 Thread Joe Gibbs Politz
If someone pings me after SPLASH, I can probably find some time to update the tutorial. On Wed, Oct 16, 2013 at 9:46 PM, Sam Tobin-Hochstadt wrote: > I'm happy to help with this. I think it would be better to do it with > you asking me questions, though -- that will expose more of the real > is

Re: [racket] new S3 page "upload" link just creates blank package?

2013-10-16 Thread John Clements
On Oct 16, 2013, at 6:03 PM, Jay McCarthy wrote: > I just fixed it. Thanks! John Racket Users list: http://lists.racket-lang.org/users

Re: [racket] updating Joe's and Greg's tutorial -- Re: Best way to propose changes to Scribble CSS files

2013-10-16 Thread Sam Tobin-Hochstadt
I'm happy to help with this. I think it would be better to do it with you asking me questions, though -- that will expose more of the real issues than me writing something. Sam On Wed, Oct 16, 2013 at 8:56 PM, Greg Hendershott wrote: > I'd be happy to help if help is wanted. I don't think I und

Re: [racket] new S3 page "upload" link just creates blank package?

2013-10-16 Thread Jay McCarthy
I just fixed it. Jay On Wed, Oct 16, 2013 at 6:11 PM, John Clements wrote: > This feels like a browser compatibility issue, but it happens for me with > both Safari and Firefix on OS X: I load > > pkg.racket-lang.org > > and log in. I then see an "upload" link in the upper right corner of the

Re: [racket] updating Joe's and Greg's tutorial -- Re: Best way to propose changes to Scribble CSS files

2013-10-16 Thread Greg Hendershott
I'd be happy to help if help is wanted. I don't think I understand it sufficiently to write this solo. But I could start by "interviewing" someone who does understand it about the goals and mechanics -- and flesh that out into a full article or blog post with examples, plus a few rounds of copy edi

[racket] Is there a URL representing the latest nightly build installer for a platform?

2013-10-16 Thread Greg Hendershott
I'm using Travis CI for a number of my projects, to test them against recent Racket releases. Sam had a great suggestion: Add 5.90.x to the build matrix. [1] I could update my .travis.yml to use e.g. http://www.cs.utah.edu/plt/snapshots/current/installers/racket-5.90.0.9-x86_64-linux-precise.sh

[racket] new S3 page "upload" link just creates blank package?

2013-10-16 Thread John Clements
This feels like a browser compatibility issue, but it happens for me with both Safari and Firefix on OS X: I load pkg.racket-lang.org and log in. I then see an "upload" link in the upper right corner of the page. When I click on it, nothing appears to happen, until I scroll down to the bottom

Re: [racket] error while loading simply.scm

2013-10-16 Thread Piscium
On 16 October 2013 23:30, Sam Tobin-Hochstadt wrote: > You may find this library: > http://planet.racket-lang.org/display.ss?package=simply-scheme.plt&owner=dyoo > useful for working with Simply Scheme in DrRacket. > > Sam Sam, thanks. I put this in the DrRacket definitions area: (require (plane

Re: [racket] error while loading simply.scm

2013-10-16 Thread Piscium
On 16 October 2013 23:11, Matthias Felleisen wrote: > > 0. Racket is not Scheme and this an example where the difference shows up. > > 1. Use the legacy language Pretty Big: > > Welcome to DrRacket, version 5.90.0.9--2013-10-15(efaa5bd1/d) [3m]. > Language: Pretty Big. >> (load "functions.scm") T

Re: [racket] error while loading simply.scm

2013-10-16 Thread Sam Tobin-Hochstadt
You may find this library: http://planet.racket-lang.org/display.ss?package=simply-scheme.plt&owner=dyoo useful for working with Simply Scheme in DrRacket. Sam On Wed, Oct 16, 2013 at 6:02 PM, Piscium wrote: > I am reading the book Simply Scheme that makes use of some Scheme source > files. > >

Re: [racket] error while loading simply.scm

2013-10-16 Thread Matthias Felleisen
0. Racket is not Scheme and this an example where the difference shows up. 1. Use the legacy language Pretty Big: Welcome to DrRacket, version 5.90.0.9--2013-10-15(efaa5bd1/d) [3m]. Language: Pretty Big. > (load "functions.scm") > 2. Even then, some functions are simply not defined in "Schem

[racket] error while loading simply.scm

2013-10-16 Thread Piscium
I am reading the book Simply Scheme that makes use of some Scheme source files. One such source file is "simply.scm": ftp://ftp.cs.berkeley.edu/pub/scheme/functions.scm I put this in the DrRacket definitions area: #lang racket (load "/home/myself/develt/scheme/simply.scm") When I clicked the Run

Re: [racket] Best way to propose changes to Scribble CSS files

2013-10-16 Thread Robby Findler
I've just finished reading your (beautiful!) book and am excitedly looking forward to what you come up with. Do let us know if you get stuck anywhere. (And yes: we apparently like all the colors of the rainbow more than you seem to; hopefully you won't hold that against us :). Robby On Fri, Oct

Re: [racket] fun with ports and (system ..) calls

2013-10-16 Thread Vlad Kozin
> When you use `(for/list ((line (in-lines in))) ...)` the `in-lines` > sequence doesn't end until an EOF is available --- but a line can be > received anyway, as long as newline is found to terminate the line. Damn, I'm accumulating here! Subtle but I think I get it now! Sensible behavior but I

Re: [racket] fun with ports and (system ..) calls

2013-10-16 Thread Matthew Flatt
At Wed, 16 Oct 2013 13:48:57 -0400, Vlad Kozin wrote: > Yep, closing the port did the trick. Thanks David and Matthew. > > I wonder though if this is practical in a general case. Say, I expect > more data and want to grab it as it appears. Something like calling > "tail -10" on a file that's bein

Re: [racket] fun with ports and (system ..) calls

2013-10-16 Thread David Vanderson
Also if you are primarily interested in getting the output of "system" calls, you can use "process" or "subprocess" instead to get results back asynchronously. Remember to close ports as per the documentation. On 10/16/2013 02:30 PM, Matthew Flatt wrote: At Wed, 16 Oct 2013 13:48:57 -0400, Vl

Re: [racket] fun with ports and (system ..) calls

2013-10-16 Thread Vlad Kozin
Yep, closing the port did the trick. Thanks David and Matthew. I wonder though if this is practical in a general case. Say, I expect more data and want to grab it as it appears. Something like calling "tail -10" on a file that's being updated. I thought flushing the port would do, but it doesn'

Re: [racket] fun with ports and (system ..) calls

2013-10-16 Thread Stephen Chang
You can also simplify the reading in part with port->lines #lang racket (define-values (in out) (make-pipe)) (parameterize ([current-output-port out]) (system (format "find . ~a ~a" "-name \"*.c\"" "-print")) (close-output-port (current-output-port)) (port->lines in)) On Wed, Oct 16, 2013

Re: [racket] fun with ports and (system ..) calls

2013-10-16 Thread David Vanderson
On 10/16/2013 12:35 PM, Vlad Kozin wrote: assuming I have a number of .c files I expect "find" to write corresponding lines to (current-output-port). I want to collect them in a list. Here's a solution I thought would work: (define-values (in out) (make-pip

[racket] fun with ports and (system ..) calls

2013-10-16 Thread Vlad Kozin
Hi. I want to read whatever a process writes to (current-output-port). There has to be a simple pattern for that which unfortunately I've failed to come up with. Here's a process: (system (format "find . ~a ~a" "-name \"*.c\"" "-print")) assuming I have a number of .c files I expect "find" to

Re: [racket] Reading large XML files

2013-10-16 Thread Jay McCarthy
On Wed, Oct 16, 2013 at 4:31 AM, Konrad Hinsen wrote: > But I still wonder what someone in my situation should do. It looks > like SSAX does all I need, and well. But with all those > similar-but-not-quite-the-same packagings, how to pick the one most > likely to be available and working a few yea

Re: [racket] Reading large XML files

2013-10-16 Thread Konrad Hinsen
Neil Van Dyke writes: > The name ``SXML'' is a bit confusing. A good understatement ;-) > What happened is that, a long time ago, Oleg Kiselyov defined an XML > representation, called SXML. He also wrote a series of Scheme code and > papers on tools that used SXML, including his XML parse

Re: [racket] IRC library

2013-10-16 Thread Eli Barzilay
10 hours ago, Jonathan Schuster wrote: > For anyone interested, I'd like to announce the release of my IRC > client library for Racket. It packages up the client side of the IRC > protocol and does most of the hard processing for you, wrapping > everything into a simple API. It's available as a pac