[racket-dev] Racket runs on 64-bit ubuntu, right?

2010-10-05 Thread John Clements
I have a student who hasn't succeeded in running compiled-from-source DrRacket on 64-bit ubuntu. Specifically, he claims it dumps core with SIGSEGV MAPERR si_code 1 fault on addr 0x4 Aborted on startup. I have *not* tried to verify this myself, so he's almost certainly made a minor

[racket-dev] single-instantiation trick: kludgy workaround for planet packages?

2010-10-05 Thread John Clements
A couple of weeks ago, you showed me the trick that rackunit uses to allow single-instantiation of a modules. I'm now trying to do this for a planet package, and it looks like I have to change the required module from being a relative to being an absolute path. That is: (require (prefix-in

Re: [racket-dev] [plt] Push #21156: master branch updated

2010-09-28 Thread John Clements
On Sep 28, 2010, at 8:23 AM, Eli Barzilay wrote: Can we please not have this?? The whole point of having uniform names is that you can use require/provide things easily so there's no need for a library. Sure, I don't feel strongly about it. Done. To be clear, my use case is this: I'm

Re: [racket-dev] [plt] Push #21156: master branch updated

2010-09-28 Thread John Clements
On Sep 28, 2010, at 10:09 AM, Eli Barzilay wrote: An hour ago, John Clements wrote: On Sep 28, 2010, at 8:23 AM, Eli Barzilay wrote: Can we please not have this?? The whole point of having uniform names is that you can use require/provide things easily so there's no need for a library

[racket-dev] random-access file reading

2010-09-28 Thread John Clements
I want to read a chunk from the middle of a 50-megabyte file. As far as I can see, there are no random-access file primitives currently in DrRacket. Also, I don't see a skip-bytes, so it looks like I should be allocating a junk buffer and then repeatedly calling read-bytes to read the skipped

[racket-dev] safe version of racket/unsafe/ops?

2010-09-27 Thread John Clements
I'm sure I'm just missing something obvious here, but is there a library that provides things like unsafe-vector-length that are actually references to the safe versions? I have a core dump occurring in (someone else's) unsafe code, and I'd much rather just import a different library than go

Re: [racket-dev] safe version of racket/unsafe/ops?

2010-09-27 Thread John Clements
On Sep 27, 2010, at 3:45 PM, Robby Findler wrote: How about prefix-in with unsafe- as the prefix? You still have to specify the right set of functions, right? But yes, that's all I'm thinking of. John smime.p7s Description: S/MIME cryptographic signature

[racket-dev] File is really large ( 5 MB), really open?

2010-09-26 Thread John Clements
I accidentally opened a sound file in DrRacket today; cue six minutes of thrashing and computer unhappiness. Would it be okay if I added a second-check dialog to DrRacket that checked the size of a file before opening it, and asked for confirmation before opening files larger than, say, 5MB?

[racket-dev] u8vector-cpointer documented but unimplemented

2010-09-26 Thread John Clements
The function u8vector-cpointer is documented, but doesn't exist; this is presumably because the u8vector functions are actually byte-string functions, but it's not clear to me whether the absence of u8vector-cpointer is an oversight or whether it would violate abstractions in bad ways and hence

Re: [racket-dev] File is really large ( 5 MB), really open?

2010-09-26 Thread John Clements
in order to expect reasonable performance. Sounds good to me: go for it! John Clements smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

[racket-dev] speeding up 16-bit integer adds

2010-09-23 Thread John Clements
I'm trying to add together big buffers. The following code creates two big fat buffers of 16-bit integers, and adds them together destructively. It looks to me like this code *could* run really fast, but it doesn't; this takes about 8.5 seconds. Changing + to unsafe-fx+ has no detectable

Re: [racket-dev] speeding up 16-bit integer adds

2010-09-23 Thread John Clements
On Sep 23, 2010, at 8:16 PM, Matthew Flatt wrote: One more thought: Do you get to pick whether you use 16-bit integers or 64-bit floating-point numbers? The `flvector-' and `f64vector-' operations are inlined by the JIT and recognized for unboxing, so using flonum vectors and operations

Re: [racket-dev] speeding up 16-bit integer adds

2010-09-23 Thread John Clements
On Sep 23, 2010, at 9:46 PM, John Clements wrote: On Sep 23, 2010, at 8:16 PM, Matthew Flatt wrote: One more thought: Do you get to pick whether you use 16-bit integers or 64-bit floating-point numbers? The `flvector-' and `f64vector-' operations are inlined by the JIT and recognized

[racket-dev] rename + changes = bad? (was: Fwd: [plt] Push #21110: master branch updated)

2010-09-17 Thread John Clements
=[ 1 Commits ]== Directory summary: 100.0% collects/test-engine/ ~~ a095ebc John Clements cleme...@racket-lang.org 2010-09-17 10:18 : | added format arg to printf to avoid corner-case printf bugs, rackety changes : M collects

Re: [racket-dev] rename + changes = bad? (was: Fwd: [plt] Push #21110: master branch updated)

2010-09-17 Thread John Clements
On Sep 17, 2010, at 11:03 AM, Sam Tobin-Hochstadt wrote: On Fri, Sep 17, 2010 at 1:36 PM, John Clements cleme...@brinckerhoff.org wrote: Oof... it looks like doing a rename plus a few changes pretty effectively hides those changes, though I can dig them out with 'git annotate'. Do we

[racket-dev] Shared-instantiation modules

2010-09-10 Thread John Clements
Seems like a FAQ, but: I want to associate a single sound player with a drscheme process. When student code runs, it needs to send messages to that sound player. I want to make sure there's only one running at a time. The first thing that pops into my head is some kind of shared-require

Re: [racket-dev] Shared-instantiation modules

2010-09-10 Thread John Clements
On Sep 10, 2010, at 8:17 PM, Eli Barzilay wrote: On Sep 10, Robby Findler wrote: FWIW, this is one path that tools can use to circumvent DrRacket's property (well, the property we work towards anyways) that no program can cause DrRacket itself to crash or freeze. So if you do provide things

Re: [racket-dev] [racket-bug] all/11166: stepper index off by one

2010-09-07 Thread John Clements
On Sep 7, 2010, at 6:56 AM, mlsm...@cs.vassar.edu wrote: A new problem report is waiting at http://bugs.racket-lang.org/query/?cmd=viewpr=11166 Reported by Marc Smith for release: 5.0.1 *** Description: When stepping through a program in BSL, the stepper shows current progress, e.g.,

[racket-dev] Q. about live snips

2010-09-07 Thread John Clements
I'm writing code for beginners that produces sound values. I'd like to render these values as snips that have a start and a stop button. My first experiment looked like this: #lang racket (require racket/gui) (define f (make-object image-snip%

[racket-dev] match/fail*: re-inventing the wheel for better error messages with match?

2010-09-02 Thread John Clements
Match is fantastic, and sometimes you want finer control over the error messages. This morning I whipped up a match/fail* macro, which successively matches against a sequence of patterns, and allows you to specify a separate fail message for each layer. It's a simple macro, and I give a use of

Re: [racket-dev] parallel raco setup failing on Linux machine?

2010-09-01 Thread John Clements
On Sep 1, 2010, at 1:55 PM, John Clements wrote: I'm trying to run 'make install' on a Linux VPS, and it's halting -- at different points -- with errors that look like this: ... raco setup: made: framework raco setup: made: browser/private raco setup: made: framework/private raco setup

[racket-dev] drdrdown?

2010-08-28 Thread John Clements
Is DrDr down? The latest build I see on drdr.racket-lang.org is from 2010-08-25. Apologies if I missed an announcement. John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks:

Re: [racket-dev] Racket stuffs

2010-08-26 Thread John Clements
On Aug 26, 2010, at 2:51 PM, Eli Barzilay wrote: On Aug 17, Eli Barzilay wrote: So now I have these counts: http://tmp.barzilay.org/r1.png 4 http://tmp.barzilay.org/r3.png 1 http://tmp.barzilay.org/r4.png 2 Update on this: the first version (r1 above) was by far the most

Re: [racket-dev] stepper UI question

2010-08-26 Thread John Clements
On Aug 26, 2010, at 10:59 AM, Shriram Krishnamurthi wrote: Got it. Thanks for all the inputs and for the great suggestion! A couple of comments: 1) I could very well be mis-stating his position, but I think that Guillaume felt quite strongly that the reductions should occur in the

Re: [racket-dev] stepper UI question

2010-08-26 Thread John Clements
On Aug 26, 2010, at 5:23 PM, Shriram Krishnamurthi wrote: I know Guillaume proposed to do it in the context of the editor. I'm unconvinced that that's the right way to go. At any rate, integrating into an existing bit of infrastructure (def'ns or inter's) is going to be much more complex

Re: [racket-dev] RFC: Coding Guidelines

2010-08-19 Thread John Clements
On Aug 17, 2010, at 4:27 PM, Jay McCarthy wrote: On Tue, Aug 17, 2010 at 2:24 PM, John Clements cleme...@brinckerhoff.org wrote: On Aug 17, 2010, at 3:57 PM, Jay McCarthy wrote: We're attempting to write down coding guidelines for the project. Here is a first attempt: http

Re: [racket-dev] RFC: Coding Guidelines

2010-08-17 Thread John Clements
On Aug 17, 2010, at 3:57 PM, Jay McCarthy wrote: We're attempting to write down coding guidelines for the project. Here is a first attempt: http://faculty.cs.byu.edu/~jay/tmp/201008161509-guidelines.html and that you and your readers will so in the future Will so? Should that have been

[racket-dev] Added Sierpinski example to wikipedia page

2010-08-16 Thread John Clements
I happened upon the Racket wikipedia page again, and yet again the Hello World section made me want to cry. So I deleted it, and replaced it with the straightforward version of racket's Hello, World! program, viz.: #lang racket Hello, World! ...then I added the sierpinski example from the

[racket-dev] x86_64 libs not available to 32-bit ffi, right?

2010-08-03 Thread John Clements
Reality check: I can't use the Racket ffi libraries to load 64-bit x86_64 shared libs, can I? John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] P4P: A Syntax Proposal

2010-07-30 Thread John Clements
On Jul 30, 2010, at 6:47 AM, Robby Findler wrote: On Fri, Jul 30, 2010 at 4:05 AM, Eli Barzilay e...@barzilay.org wrote: IMO, this thing is missing the point (the usual parens, ewww! one), as long as it ignores infix. Seems to me that this point directly contradicts one of Shriram's

[racket-dev] Windows test bundle 29M vs. 47M for other platforms?

2010-07-19 Thread John Clements
On this page http://pre.racket-lang.org/release/installers/ the reported size of the Windows installer is 29M, vs. about 47 or 48 M for other platforms. I see that this was true of the 5.0 release as well, so this is probably expected, but I'm curious: why is this? Is it just that the other

[racket-dev] make xml structs transparent?

2010-06-18 Thread John Clements
Is there some good reason why the 'document' and 'prolog' structures in the xml library are not transparent? In the just trying to see what's there stage of programming, it would be a lot simpler not to have to dig through them with explicit accessors. John smime.p7s Description: S/MIME

Re: [racket-dev] [racket] [scribble] rendering syntax

2010-06-09 Thread John Clements
On Jun 9, 2010, at 5:05 AM, Sam Tobin-Hochstadt wrote: On Tue, Jun 8, 2010 at 11:27 PM, Eric Tanter etan...@dcc.uchile.cl wrote: Yes, Carl got my point right. And yes, that's like showing square brackets in the stepper ;) Right now, the two cases are slightly asymmetric, since there's a

[racket-dev] Wikipedia page

2010-06-08 Thread John Clements
I've taken a first crack at creating a Racket (programming language) page in wikipedia, simply by copying the first few chunks of the PLT Scheme page. This is a bit experimental, because it may be that Wikipedia has an existing mechanism for renaming, so I figured I'd just spend five minutes

<    1   2   3   4