Re: [racket-dev] update on reimplementing GRacket

2010-06-12 Thread Matthew Flatt
At Sat, 12 Jun 2010 21:43:09 -0400, Sam Tobin-Hochstadt wrote: First, do the difficulties you've had integrating eventspaces with modern toolkits suggest that perhaps eventspaces should be designed differently? Not as far as I can tell. The fundamental problem is being able to use some GUI

[racket-dev] internal-definition parsing

2010-07-07 Thread Matthew Flatt
Short version: I'm planning to change internal-definition expansion (anywhere that says `body ...' in the Racket documentation) to allow expressions to mingle with definitions. For example, (let () (define (f) x) (displayln f) (define x 1) (list f x)) would be allowed; the

Re: [racket-dev] proposal: `data' collection

2010-07-09 Thread Matthew Flatt
At Wed, 30 Jun 2010 22:28:48 -0400, Eli Barzilay wrote: Back to `data', the problem is that you cannot have two toplevel `data' collections -- which means that you cannot have separate distributions of `data/foo' and `data/bar' since they must both appear in your plt installation or in your

Re: [racket-dev] proposal: `data' collection

2010-07-10 Thread Matthew Flatt
At Sat, 10 Jul 2010 01:48:09 -0400, Eli Barzilay wrote: On Jul 9, Matthew Flatt wrote: At Wed, 30 Jun 2010 22:28:48 -0400, Eli Barzilay wrote: Back to `data', the problem is that you cannot have two toplevel `data' collections -- which means that you cannot have separate distributions

Re: [racket-dev] proposal: `data' collection

2010-07-10 Thread Matthew Flatt
At Sat, 10 Jul 2010 09:49:31 -0500, Robby Findler wrote: On Sat, Jul 10, 2010 at 9:47 AM, Matthew Flatt mfl...@cs.utah.edu wrote: At Sat, 10 Jul 2010 09:35:28 -0500, Robby Findler wrote: Just to be sure I understand, you're saying that these two may or may not refer to the same file

Re: [racket-dev] [racket] Text highlighting on Windows

2010-07-14 Thread Matthew Flatt
[Moved to dev list.] Anyone interested in working on this? The relevant code is in collects/mred/private/wxme/test.rkt in `do-redraw'. Look for the use of `outline-brush'. The current strategy for drawing the selection is to draw the plain content and then apply a 'hilite brush over that.

Re: [racket-dev] pr11012

2010-07-17 Thread Matthew Flatt
I think it's best to fix the contract and docs so that #f is a valid result when the argument has no directory part. At Thu, 15 Jul 2010 10:10:12 -0600, Jay McCarthy wrote: This bug report http://bugs.racket-lang.org/query/?cmd=viewpr=11012 is due to path-only returning #f when given

Re: [racket-dev] Can't Find a Workaround for Bug 11017 in DrRacket

2010-07-22 Thread Matthew Flatt
At Wed, 21 Jul 2010 17:09:03 -0600, Matthew Flatt wrote: I've pushed a change to the git repo that I don't think will fix the problem, but I think it will give us better information when you get a chance to try it. The new error message provoked a bug report that led to a repair. So, please

Re: [racket-dev] Can't Find a Workaround for Bug 11017 in DrRacket

2010-07-23 Thread Matthew Flatt
(version 5.0.1.1--2010-07-21(ca106a41343233e3e2e1d6393b97ff6de67e01c4/a) [3m]). Now I get the following error message: cm: no SHA-1 for dependency: (collects #scheme #base #lang #reader.rkt) Doug On Thu, Jul 22, 2010 at 5:47 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Wed, 21 Jul

Re: [racket-dev] Can't Find a Workaround for Bug 11017 in DrRacket

2010-07-25 Thread Matthew Flatt
alt-path stamp)) stamp)]))]))) On Fri, Jul 23, 2010 at 8:18 PM, Matthew Flatt mfl...@cs.utah.edu wrote: That version is after I improved error message, but before the repair. It looks like the nightly build failed last night, which is why the repair wasn't in the build

Re: [racket-dev] Can't Find a Workaround for Bug 11017 in DrRacket

2010-07-25 Thread Matthew Flatt
At Sun, 25 Jul 2010 11:22:19 -0400, Sam Tobin-Hochstadt wrote: On Sun, Jul 25, 2010 at 8:27 AM, Matthew Flatt mfl...@cs.utah.edu wrote: It's worrying, though, that you're getting a DrRacket backtrace that covers cm.rkt. Files in the main installation normally should not be instrumented

Re: [racket-dev] proposal: `data' collection

2010-07-25 Thread Matthew Flatt
for collections where that's expected, such as the possible data collection. At Fri, 9 Jul 2010 13:10:26 -0600, Matthew Flatt wrote: At Wed, 30 Jun 2010 22:28:48 -0400, Eli Barzilay wrote: Back to `data', the problem is that you cannot have two toplevel `data' collections -- which means that you

Re: [racket-dev] Can't Find a Workaround for Bug 11017 in DrRacket

2010-07-26 Thread Matthew Flatt
AM, Sam Tobin-Hochstadt sa...@ccs.neu.eduwrote: On Sun, Jul 25, 2010 at 8:27 AM, Matthew Flatt mfl...@cs.utah.edu wrote: It's worrying, though, that you're getting a DrRacket backtrace that covers cm.rkt. Files in the main installation normally should not be instrumented

Re: [racket-dev] Release Announcement for v5.0.1

2010-07-28 Thread Matthew Flatt
At Tue, 27 Jul 2010 23:17:59 -0400, Eli Barzilay wrote: * By default `make install' and `raco setup' compile collections in parallel on all available processors. (Use `reaco setup -j 1' to disable if necessary.) reaco - raco _ For

Re: [racket-dev] Release Announcement for v5.0.1 -- final version

2010-08-02 Thread Matthew Flatt
At Mon, 2 Aug 2010 04:42:41 -0600, Jay McCarthy wrote: These are the commits: Those are from July 22, one week after the branch for 5.0.1, so they would not normally be considered candidates for the 5.0.1 release. _ For list-related

Re: [racket-dev] status of the new `racket/gui'

2010-08-02 Thread Matthew Flatt
At Mon, 2 Aug 2010 19:12:40 -0400, Sam Tobin-Hochstadt wrote: On Mon, Aug 2, 2010 at 7:08 PM, Matthew Flatt mfl...@cs.utah.edu wrote:  One question: the open/save file dialogs on Gtk are using the old GRacket dialogs, rather than the Gtk-native ones.  Is this planned to change in the future

Re: [racket-dev] How to build Places

2010-08-12 Thread Matthew Flatt
At Wed, 11 Aug 2010 18:56:49 -0400, Gene Diveglia wrote: Building as outlined below on OS X 10.6.4 Intel is failing. I'm anxious to experiment with places, any suggestions on how to fix this build? I've pushed a repair to the header files, but GRacket crashes if you try to run it; I think

Re: [racket-dev] [DrDr] R20864 (timeout 1) (unclean 776) (stderr 776) (changes 796)

2010-08-14 Thread Matthew Flatt
At Sat, 14 Aug 2010 11:25:04 -0600, Jay McCarthy wrote: The root of this problem is that make install didn't finish. Here's the log: http://drdr.racket-lang.org/20864/src/build/make-install It says: attempted to wait for suspend in nested atomic mode Hopefully fixed, now. The problem

Re: [racket-dev] Nit in Windows build files

2010-08-16 Thread Matthew Flatt
I changed the name in libracket.vcproj. At Mon, 16 Aug 2010 15:58:22 +1000, Paul Steckler wrote: In last night's build, the Visual Studio solution file src/worksp/racket/racket.sln contains the line: Project({8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}) = libracket,

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

2010-08-21 Thread Matthew Flatt
At Fri, 20 Aug 2010 13:05:12 -0500, Will M. Farr wrote: Thanks very much for the comments. I'll get to work preparing an updated version using #:size soon, and send it to Sam for pushing. I should have suggested `#:length', since it corresponds to `vector-length'. I didn't think of this

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

2010-08-23 Thread Matthew Flatt
At Sun, 22 Aug 2010 15:36:03 -0500, Will M. Farr wrote: Either choice --- error or stopping --- interacts awkwardly with `for*/vector'. If you've going to raise an exception, the natural thing to do with `for/vector' would be to stop as soon as the sequence goes too far. But `for*/vector'

Re: [racket-dev] gc vs assignment

2010-08-24 Thread Matthew Flatt
At Tue, 24 Aug 2010 09:53:21 -0700, Joe Marshall wrote: I'm surprised that racket3m uses page protection. Taking a hardware trap can often be thousands of times slower than taking an inline conditional branch. The hardware trap happens once per GC-managed page between minor collections, while

Re: [racket-dev] gc vs assignment

2010-08-24 Thread Matthew Flatt
Here's a program that tries to expose various costs. On my machine, the output is: 'cons-of-cXr+barrier-set! cpu time: 13137 real time: 13206 gc time: 552 'cons-of-cXr+free-set! cpu time: 12832 real time: 12995 gc time: 541 'cons-of-cXr cpu time: 10023 real time: 10103 gc time: 526

Re: [racket-dev] gc vs assignment

2010-08-24 Thread Matthew Flatt
At Tue, 24 Aug 2010 16:03:00 -0700, Joe Marshall wrote: On Tue, Aug 24, 2010 at 3:43 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Tue, 24 Aug 2010 09:53:21 -0700, Joe Marshall wrote: I'm surprised that racket3m uses page protection.  Taking a hardware trap can often be thousands of times

Re: [racket-dev] futures waiting for scheme_make_envunbox

2010-08-25 Thread Matthew Flatt
that it doesn't see how to convert the `let' into a `letrec'. At Wed, 25 Aug 2010 10:07:04 -0400, Sam Tobin-Hochstadt wrote: On Wed, Aug 25, 2010 at 9:56 AM, Matthew Flatt mfl...@cs.utah.edu wrote: At Wed, 25 Aug 2010 09:42:40 -0400, Sam Tobin-Hochstadt wrote: While trying to use futures to parallelize

Re: [racket-dev] futures waiting for scheme_make_envunbox

2010-08-25 Thread Matthew Flatt
At Wed, 25 Aug 2010 08:41:04 -0600, Jay McCarthy wrote: Unfortunately, trying to decompile this file produces an error in the decompiler: [sa...@punge:~/tmp plt] raco decompile mandelbrot.rkt hash-ref: no value found for key: 1128 Blake will see if this is a bug fixed in our local

Re: [racket-dev] futures waiting for scheme_make_envunbox

2010-08-25 Thread Matthew Flatt
At Wed, 25 Aug 2010 08:17:32 -0600, Matthew Flatt wrote: There's a `set!' implicit in the `letrec' that is implicit in the use of internal definitions. Maybe the Typed Racket optimizations confuse the compiler so that it doesn't see how to convert the `let' into a `letrec'. One requirement

Re: [racket-dev] relationship between define-struct and struct

2010-08-30 Thread Matthew Flatt
I've fixed `define-struct' in *SL to omit a reference to the non-existent `struct:' binding, so `struct-out' now works with the definitions. The error message from `struct-out' is also fixed to say binding instead of import. At Sat, 28 Aug 2010 16:15:26 -0600, Jay McCarthy wrote: The

Re: [racket-dev] Problem with GC or with my machine?

2010-09-03 Thread Matthew Flatt
)) - Original Message - From: Vincent St-Amour stamo...@ccs.neu.edu To: Matthew Flatt mfl...@cs.utah.edu Cc: Hari Prashanth krh...@ccs.neu.edu, dev dev@racket-lang.org Sent: Friday, September 3, 2010 11:39:50 AM GMT -05:00 US/Canada Eastern Subject: Re: [racket-dev] Problem with GC

Re: [racket-dev] the new `racket/gui' --- now with bug reports

2010-09-12 Thread Matthew Flatt
The new implementation of `racket/gui' is almost ready for everyday use. I've switched to the new implementation for reading and writing e-mail (i.e., this message was composed using the new implementation), but I haven't yet switched for using DrRacket or for running Slideshow in class. I'm now

Re: [racket-dev] [racket] Text highlighting on Windows

2010-09-12 Thread Matthew Flatt
adapt to the current platform and theme convention. At Wed, 14 Jul 2010 07:29:08 -0600, Matthew Flatt wrote: [Moved to dev list.] Anyone interested in working on this? The relevant code is in collects/mred/private/wxme/test.rkt in `do-redraw'. Look for the use of `outline-brush

Re: [racket-dev] flvector-copy

2010-09-17 Thread Matthew Flatt
I'm preparing to push this patch, but also generalizing `flvector-copy' to accept start and end positions like `vector-copy'. At Thu, 16 Sep 2010 20:46:58 -0400, Will M. Farr wrote: The attached patch against the current git master adds an flvector-copy procedure (along with docs and tests);

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

2010-09-23 Thread Matthew Flatt
I think the problem is that the `ptr-ref' and `ptr-set!' operations are slow. They are slow because they not yet inlined by the JIT, and they're not yet inlined because they have complicated APIs (including a pointer datatype with many variants). I haven't worked out a way to make them faster or

Re: [racket-dev] u8vector-cpointer documented but unimplemented

2010-09-26 Thread Matthew Flatt
At Sun, 26 Sep 2010 10:18:13 -0700, John Clements wrote: 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

Re: [racket-dev] ffi vectors

2010-09-30 Thread Matthew Flatt
When you run this program on a 32-bit machine: #include stdio.h void go(float a[4]) { printf(in go: %d\n, sizeof(a)); } int main() { float a[4]; printf(in main: %d\n, sizeof(a)); go(a); } you'll see in main: 16 and in go: 4. As far as I know, the 4 in void go(float a[4]) is

Re: [racket-dev] ffi vectors

2010-09-30 Thread Matthew Flatt
On Thu, Sep 30, 2010 at 4:51 PM, Matthew Flatt mfl...@cs.utah.edu wrote: When you run this program on a 32-bit machine:  #include stdio.h  void go(float a[4])  {   printf(in go: %d\n, sizeof(a));  }  int main() {   float a[4];   printf(in main: %d\n, sizeof(a));   go

Re: [racket-dev] slideshow not hiding KDE panel

2010-09-30 Thread Matthew Flatt
At Thu, 30 Sep 2010 20:20:07 -0400, Faré wrote: I'm trying to use slideshow on Linux, and I find it annoying that it fails to be on top of the KDE panel. I admit I know next to nothing about the X protocol, and can't help much with this issue, but I hope someone who does can do something

Re: [racket-dev] slideshow not hiding KDE panel

2010-10-01 Thread Matthew Flatt
At Thu, 30 Sep 2010 22:03:12 -0700, Sam Tobin-Hochstadt wrote: This happens for me always in slideshow on my laptop in both GR1 and GR2. I'm running Ubuntu 10.04, screen resolution 1440x1050, with panels on the top and bottom of the screen (as is usual for Gnome). I can provide any other

[racket-dev] flonum vs. inexact-real

2010-10-02 Thread Matthew Flatt
Currently, every inexact real in Racket is represented by a 64-bit IEEE floating-point number. There's an `--enable-float' configuration option that enables support in Racket for 32-bit floating-point numbers. The use I see for 32-bit arithmetic is to mimic some other program that uses 32-bit

Re: [racket-dev] flonum vs. inexact-real

2010-10-03 Thread Matthew Flatt
At Sat, 2 Oct 2010 13:52:40 -0500, Robby Findler wrote: Is there any value to, on a 64 bit machine, having 32 bit floats be immediate values to avoid boxing? Sounds plausible. Distinguishing `flonum' from `inexact-real?' would let us try the experiment more easily.

Re: [racket-dev] flonum vs. inexact-real

2010-10-03 Thread Matthew Flatt
At Sat, 02 Oct 2010 17:12:20 -0600, Neil Toronto wrote: @Matthew: is there a problem with declaring float to mean platform-dependent floating-point format? Embedded devices don't always easily support 64 bits, and I'd hate to be stuck with 64 if 128-bit floats become ubiquitous. I think we

Re: [racket-dev] flonum vs. inexact-real

2010-10-03 Thread Matthew Flatt
At Sun, 3 Oct 2010 11:17:44 +0100, Noel Welsh wrote: On Sat, Oct 2, 2010 at 7:48 PM, Matthew Flatt mfl...@cs.utah.edu wrote: With the current memory manager, I don't think there's any potential space gain from using 32-bit floats instead of 64-bit floats. Is there any other reason to use 32

Re: [racket-dev] flonum vs. inexact-real

2010-10-03 Thread Matthew Flatt
At Sun, 3 Oct 2010 10:01:31 -0400, Sam Tobin-Hochstadt wrote: On Sun, Oct 3, 2010 at 7:43 AM, Matthew Flatt mfl...@cs.utah.edu wrote: Sam and Vincent: Any thoughts on how easy or difficult the change would be for Typed Racket (and its optimizer)? What would the precise hierarchy

Re: [racket-dev] flonum vs. inexact-real

2010-10-03 Thread Matthew Flatt
At Sun, 3 Oct 2010 11:24:54 -0400, Sam Tobin-Hochstadt wrote: On Sun, Oct 3, 2010 at 10:42 AM, Matthew Flatt mfl...@cs.utah.edu wrote: The `flonum?' predicate would be the only new predicate for now. The `inexact-integer?' predicate would imply `flonum?', but not vice-versa. I assume you

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

2010-10-05 Thread Matthew Flatt
At Tue, 5 Oct 2010 10:26:04 -0700, John Clements wrote: 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 think this is a

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

2010-10-07 Thread Matthew Flatt
At Thu, 7 Oct 2010 16:23:33 -0700, John Clements wrote: Here's the student's backtrace. And yes, I now see that it *does* look like the font issue that Matthew mentioned. Actually, this looks more like an OpenGL issue. I don't have any immediate ideas, but that's a new lead. #4

[racket-dev] #true and #false

2010-10-08 Thread Matthew Flatt
[Re-sending; an earlier post of this message seems to be delayed.] What if the default printing format for true and false values in Racket changed from `#t' and `#f' to `#true' and `#false'? The forms `#t', `#T', `#true', `#f', `#F', and `#false' would all be accepted as inputs forms. We could

Re: [racket-dev] #true and #false

2010-10-08 Thread Matthew Flatt
At Fri, 08 Oct 2010 23:10:05 -0400, David Van Horn wrote: On 10/8/10 9:12 PM, Matthew Flatt wrote: This proposal originates with the need to fix a problem in the HtDP teaching languages. The HtDP teaching languages currently use `true' and `false' for true and false, and the HtDP languages

Re: [racket-dev] #true and #false

2010-10-09 Thread Matthew Flatt
At Fri, 8 Oct 2010 23:11:21 -0400, Eli Barzilay wrote: Two hours ago, Matthew Flatt wrote: [Re-sending; an earlier post of this message seems to be delayed.] What if the default printing format for true and false values in Racket changed from `#t' and `#f' to `#true' and `#false

Re: [racket-dev] #true and #false

2010-10-10 Thread Matthew Flatt
At Sun, 10 Oct 2010 01:03:57 -0400, Eli Barzilay wrote: An even more common use of `write', I think, is to print code. If we switch to `#true' and `#false' as the default forms of the constants, I think we want all those uses of ~.s that you recently fixed up to print with `#true' and

[racket-dev] another status report on the new `racket/gui'

2010-10-11 Thread Matthew Flatt
The new implementation of `racket/gui' is about as usable as my last report a month ago, at least for Gtk and Cocoa. Bug reports are still welcome. Editor performance has improved (thanks to Robby and Sam for testing and feedback), but not much else changed for Gtk and Cocoa, because I shifted my

Re: [racket-dev] another status report on the new `racket/gui'

2010-10-11 Thread Matthew Flatt
At Mon, 11 Oct 2010 13:28:38 -0600, Neil Toronto wrote: I also sent bug reports. Thanks! The one that's killing me is the Delete key not working. Is there something I can do now to make it work? That one is now fixed in the git repo. I don't want to have to wait until after you're done

Re: [racket-dev] #true and #false

2010-10-11 Thread Matthew Flatt
At Sun, 10 Oct 2010 11:27:36 -0400, Neil Van Dyke wrote: If #true and #false were just alternative read syntax for #t and #f, and they always printed as #t and #f (except perhaps in teaching languages), that would make me happiest. That's what we have now in v5.0.1.8. From the response in

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-12 Thread Matthew Flatt
At Tue, 12 Oct 2010 11:16:35 -0400, Eli Barzilay wrote: Three minutes ago, Matthew Flatt wrote: At Tue, 12 Oct 2010 10:43:03 -0400, Eli Barzilay wrote: An hour ago, Matthew Flatt wrote: At Mon, 11 Oct 2010 20:38:58 -0400, Eli Barzilay wrote: At Mon, 11 Oct 2010 19:15:09 -0400, Eli

Re: [racket-dev] Compile Error (Everett Morse)

2010-10-12 Thread Matthew Flatt
The old error was a problem with inline assembly that would show up when gcc optimization is disabled. (Why was -O2 disabled for your build?) I fixed that problem a few days ago, though I didn't make the connection to your earlier post. The new error looks like a mismatch in the way that files

Re: [racket-dev] Problem with threads in Racket C API?

2010-10-13 Thread Matthew Flatt
At Tue, 12 Oct 2010 21:17:45 -0700, Justin Phillips wrote: I have a function that gets called by OS X's CoreMIDI framework. This function adds some data to a queue. I have registered the queue and the function with scheme_add_evt and scheme_add_evt_through_sema and even explicitly tried to

Re: [racket-dev] internal-definition parsing

2010-10-13 Thread Matthew Flatt
At Wed, 13 Oct 2010 08:23:09 -0400, Carl Eastlund wrote: On Wed, Jul 7, 2010 at 12:23 PM, Matthew Flatt mfl...@cs.utah.edu wrote: Should an expression be required at the end? A `module', `unit', or `class' body can consist of just definitions. Similarly, if an internal-definition context

Re: [racket-dev] Compile error in git repo on both Linux and Mac

2010-10-17 Thread Matthew Flatt
to `scheme_fill_stack_lwc_end' collect2: ld returned 1 exit status Any ideas? Thanks Nevo On 17 October 2010 22:27, Matthew Flatt mfl...@cs.utah.edu wrote: At Sun, 17 Oct 2010 22:10:11 +0800, Nevo wrote: I've tried to build latest version of Racket for both Linux and Mac from

Re: [racket-dev] Compile error in git repo on both Linux and Mac

2010-10-17 Thread Matthew Flatt
At Sun, 17 Oct 2010 08:51:57 -0600, Matthew Flatt wrote: That's fixed, now. Sorry, I missed a step for 3m. It will be fixed in a few minutes. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] --enable-macprefix gone?

2010-10-20 Thread Matthew Flatt
At Wed, 20 Oct 2010 00:03:33 -0400, Eli Barzilay wrote: About a minute ago, David Van Horn wrote: On 10/19/10 10:03 PM, Eli Barzilay wrote: 9 hours ago, David Van Horn wrote: Has the --enable-macprefix option been removed from the configure script? When I configure, I get:

Re: [racket-dev] Pre-Release Checklist for v5.0.2

2010-10-22 Thread Matthew Flatt
At Thu, 21 Oct 2010 19:07:18 -0400, Ryan Culpepper wrote: * Matthew Flatt mfl...@cs.utah.edu - Racket Tests - Languages Tests - GRacket Tests (Also check that `gracket -z' and `gracket-text' still works in Windows and Mac OS X) - mzc Tests - mzc --exe tests - .plt-packing

Re: [racket-dev] Release for v5.0.2 has begun

2010-10-24 Thread Matthew Flatt
At Fri, 22 Oct 2010 21:31:43 -0600, Doug Williams wrote: Matthew, would it make more sense to have unsafe-vector-ref (and related functions) be the more general function and unsafe-vector*-ref be the one that doesn't work on chaperoned vectors? That is just swap the definitions. That way user

Re: [racket-dev] Release for v5.0.2 has begun

2010-10-25 Thread Matthew Flatt
At Fri, 22 Oct 2010 21:31:43 -0600, Doug Williams wrote: Matthew, would it make more sense to have unsafe-vector-ref (and related functions) be the more general function and unsafe-vector*-ref be the one that doesn't work on chaperoned vectors? That is just swap the definitions. That way user

[racket-dev] swapping `unsafe-vector-ref' and `unsafe-vector*-ref'

2010-10-25 Thread Matthew Flatt
I've pushed a change (intended to be merged to 5.0.2) that swaps `unsafe-vector-ref'- `unsafe-vector*-ref' `unsafe-vector-set!' - `unsafe-vector*-set' `unsafe-vector-length' - `unsafe-vector*-length' `unsafe-unbox' - `unsafe-unbox*' `unsafe-set-box!' - `unsafe-set-box*!'

Re: [racket-dev] Equality test for Not-A-Number

2010-10-27 Thread Matthew Flatt
At Wed, 27 Oct 2010 14:20:37 -0600, Doug Williams wrote: What is the correct way to test for +nan.0 in Racket? For example, (= +nan.0 +nan.0) = #f. This seems to be the behavior specified in R6RS. In the science collection I implemented nan? using eqv?, which seems to work in Racket; but the

[racket-dev] try the GRacket2 branch

2010-10-28 Thread Matthew Flatt
The git repository now includes a gr2 branch for the new implementation of `racket/gui', which we've been informally calling GRacket2. The new `racket/gui' is intended to be mostly compatible with the current library, but there are some significant incompatibilities. Those differences are

Re: [racket-dev] 5.0.2 changelog

2010-10-28 Thread Matthew Flatt
At Wed, 27 Oct 2010 23:40:27 -0600, Jon Rafkind wrote: Author: Matthew Flatt mfl...@racket-lang.org Modules spliced at the file level instead of collection level. Internal definitions for `when', `unless', `cond', `case', and `match' #true and #false forms None seem especially

Re: [racket-dev] try the GRacket2 branch

2010-10-28 Thread Matthew Flatt
is actually gr1). Is there an easy way to tell if I'm running gr2? Or should gr2 look identical to gr1? On 10/28/2010 12:25 AM, Matthew Flatt wrote: The git repository now includes a gr2 branch for the new implementation of `racket/gui', which we've been informally calling GRacket2. The new

Re: [racket-dev] relative lines of C in gracket vs. gracket2

2010-10-29 Thread Matthew Flatt
At Thu, 28 Oct 2010 10:48:43 -0700, John Clements wrote: I took a look at the size of our C code base (all files ending in .c, .h, .cpp, and .cxx, not including those with 'xsrc' in the path) to see how much smaller gracket2 is, and (assuming I didn't miss something major) the difference is

Re: [racket-dev] sharing cpointers between namespaces

2010-10-29 Thread Matthew Flatt
At Thu, 28 Oct 2010 14:46:30 -0700, John Clements wrote: Specifically, I moved the define-struct of cpointer into a module by itself, called ffi/unsafe/cvector-def; that way, my tool.rkt file can require this one-line module and attach it to the user's namespace using 'reset-console'. BUT:

Re: [racket-dev] try the GRacket2 branch

2010-10-30 Thread Matthew Flatt
At Fri, 29 Oct 2010 01:04:02 +0200, Jose A. Ortega Ruiz wrote: In a build from a checkout of a few minutes ago, drracket dies on me when i try to resize its window, with the following message to the console: The program 'unknown' received an X Window System error. This probably reflects a

Re: [racket-dev] try the GRacket2 branch

2010-10-30 Thread Matthew Flatt
At Sat, 30 Oct 2010 14:56:30 -0400, Gene Diveglia wrote: I apologize in advance if I'm jumping the gun a bit here. I'm not sure if 64 bit Mac builds are an immediate goal of GR2. It's a near-term goal, at least. After things are working well on the currently supported platforms, I plan to

Re: [racket-dev] Scribble Racket Code with Here Strings

2010-10-31 Thread Matthew Flatt
At Fri, 29 Oct 2010 15:53:57 -0600, Doug Williams wrote: I sometimes use here strings for readability when building queries, etc. [...] But I haven't found a good way to document this (as Racket code) in Scribble. Everything I've tried renders like: I guess it's time for me to stop saying how

Re: [racket-dev] GRacket2 builds

2010-10-31 Thread Matthew Flatt
You can get the libraries from github.com/mflatt/gracket-libs. Unfortunately, I think I broke the Windows build in other ways that I have been trying to fix this morning. On Oct 31, 2010, at 11:59 AM, Doug Williams m.douglas.willi...@gmail.com wrote: I tried loaded it on my Windows 7

Re: [racket-dev] try the GRacket2 branch

2010-10-31 Thread Matthew Flatt
At Sun, 31 Oct 2010 16:29:08 -0600, Doug Williams wrote: The interactions.ss file in the simulation package on PLaneT also required a (yield) after line 107 to give the animation effect - there is no double buffering or anything here. But, with that added, it seems to run fine. I guess I

Re: [racket-dev] try the GRacket2 branch

2010-11-01 Thread Matthew Flatt
At Sun, 31 Oct 2010 16:29:08 -0600, Doug Williams wrote: The animated-canvas library that I have on PLaneT has two examples. The histogram-test.rkt example works as expected. The lines.rkt example draws a few lines and then locks up. Adding a (yield) after (send canvas swap-bitmaps) in line 55

Re: [racket-dev] try the GRacket2 branch

2010-11-01 Thread Matthew Flatt
At Mon, 1 Nov 2010 10:33:10 -0600, Doug Williams wrote: I'll test it this evening when I am back home. The animated-canvas class actually keeps two bitmaps - one for painting from and one for drawing to. The swap-bitmaps methods swaps those and repaints the canvas. I'm not sure which of

Re: [racket-dev] try the GRacket2 branch

2010-11-05 Thread Matthew Flatt
At Fri, 5 Nov 2010 12:21:25 -0400, Sam Tobin-Hochstadt wrote: On Thu, Oct 28, 2010 at 2:25 AM, Matthew Flatt mfl...@cs.utah.edu wrote: The git repository now includes a gr2 branch for the new implementation of `racket/gui', which we've been informally calling GRacket2. What are the plans

Re: [racket-dev] saving .scrbl file OS X message box

2010-11-08 Thread Matthew Flatt
This was a bug in the `save-file' dialog under Cocoa, where the Cocoa-level allow other extensions flag wasn't set correctly. It's now fixed. Probably DrRacket should add .scrbl to its list of standard extensions, though. At Wed, 3 Nov 2010 14:15:34 -0700, John Clements wrote: Dear Heavens,

Re: [racket-dev] [DrDr] R21445 (timeout 1) (unclean 715) (stderr 715) (changes 32)

2010-11-08 Thread Matthew Flatt
Under Windows and Mac OS X, only. Users of other Unix variants have to install Gtk (which implies Cairo and Pango) through whatever package system they normally use. At Mon, 8 Nov 2010 19:34:31 -0700, Jay McCarthy wrote: I thought the whole point of the build process is that it gets the

Re: [racket-dev] [DrDr] R21445 (timeout 1) (unclean 715) (stderr 715) (changes 32)

2010-11-08 Thread Matthew Flatt
FWIW, you could leave off -dev. Racket's GUI library needs libgtk2 binaries, but it does not need header files or other development support. At Mon, 8 Nov 2010 19:40:49 -0700, Jay McCarthy wrote: Anyways, I think I got them (apt-get install libgtk2-dev) and restarted the builds Jay On

Re: [racket-dev] try the GRacket2 branch

2010-11-09 Thread Matthew Flatt
, Oct 30 2010, Matthew Flatt wrote: At Fri, 29 Oct 2010 01:04:02 +0200, Jose A. Ortega Ruiz wrote: In a build from a checkout of a few minutes ago, drracket dies on me when i try to resize its window, with the following message to the console: The program 'unknown' received an X Window

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

2010-11-09 Thread Matthew Flatt
Supply #f as the first argument to `raise-syntax-error'. At Tue, 09 Nov 2010 17:31:51 -0700, Jon Rafkind wrote: It occured to me while making this small patch that the name of the macro shown in the error message might not be the same as the one the user called. Namely, if the user renames or

Re: [racket-dev] DrDr / GR2 status

2010-11-10 Thread Matthew Flatt
2. There are a few real problems with gr2: http://drdr.racket-lang.org/21452/collects/tests/gracket/dc.rktl Fixed already. http://drdr.racket-lang.org/21452/collects/tests/plot/run-tests.rkt Now fixed. _ For list-related administrative

Re: [racket-dev] ffi crash on callback during GC

2010-11-22 Thread Matthew Flatt
At Mon, 22 Nov 2010 15:00:01 -0800, John Clements wrote: Taking a look at the crash report, I see that the crash appears to happen when the callback is called by a C thread while Racket is collecting garbage, [...] So: is racket supposed to magically handle this? Yes. I think this could be

Re: [racket-dev] error in gr2

2010-11-24 Thread Matthew Flatt
I've fixed a bug that might have caused this error. If it's (still) repeatable, though, instructions to trigger the error would be much appreciated. At Wed, 17 Nov 2010 16:49:34 -0500, Matthias Felleisen wrote: /Users/matthias/plt/collects/mred/private/wx/common/freeze.rkt:9:0

Re: [racket-dev] REPL crash

2010-12-01 Thread Matthew Flatt
At Tue, 30 Nov 2010 23:51:57 +0100, Dmitry Chestnykh wrote: Seg fault (internal error) at 0x4 Bus error Mac OS X 10.6.5, same result on Racket 5.0.2 and 6c25210a6bb8 from git. Fixed in the git repo. Thanks for the report! Matthew _ For

Re: [racket-dev] Fixing uncertified context error in in-vector

2010-12-05 Thread Matthew Flatt
It looks like a problem with certificates, the custom expander for `define-sequence-syntax', and fact that `make-in-vector-like' originates from a module other than the one containing the `define-sequence-syntax'. For now, just export `normalise-inputs'. Ryan and I are looking to an overhaul of

Re: [racket-dev] Fixing uncertified context error in in-vector

2010-12-05 Thread Matthew Flatt
At Sun, 5 Dec 2010 15:33:06 +, Noel Welsh wrote: On Sun, Dec 5, 2010 at 1:38 PM, Matthew Flatt mfl...@cs.utah.edu wrote: Also, you're using `unsafe-fx...' on numbers that haven't been checked to be fixnums (i.e., `exact-nonnegative-integer?' does not imply fixnum). I think you should

[racket-dev] Win64

2010-12-06 Thread Matthew Flatt
Racket now supports 64-bit Windows (Vista and up). To build for 64-bit Windows using VS 2008: 1. Use vcvarsall x64 to configure your environment for a 64-bit build, where vcvarsall.bat is supplied by Visual Studio in the VC subdirectory. 2. Run build.bat

Re: [racket-dev] Removing Xexpr preference from Web Server

2010-12-06 Thread Matthew Flatt
At Mon, 6 Dec 2010 10:25:57 -0600, Robby Findler wrote: I think I need more help to understand the programming problem better. Isn't Jay just saying that he needs contract-like things to implement interoperability (among modules that have different representations of XML/HTML)? Ok, maybe he

Re: [racket-dev] Behavioral subtyping for editor% and its implementing classes

2010-12-07 Thread Matthew Flatt
problems. Should Asumu try and just run the whole test suite and if it works you commit the change? On Dec 7, 2010, at 3:08 PM, Matthew Flatt wrote: I think the mismatch was not intentional. Maybe `do-copy' originally had a consistent interface, or maybe it was written down

Re: [racket-dev] enter! verbosity

2010-12-11 Thread Matthew Flatt
How about a quiet load but noisy re-load? _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] enter! verbosity

2010-12-11 Thread Matthew Flatt
At Sat, 11 Dec 2010 18:18:13 -0500, Eli Barzilay wrote: I've made the syntax be: (enter! module noisy) where noisy is either `#f', `#t', or `#:reloading'. Descriptive keywords in place of `#t' and `#f' would be clearer and would avoid mixing literal values and keywords in the same

Re: [racket-dev] [racket] Question about fields in Racket OO

2010-12-16 Thread Matthew Flatt
At Thu, 16 Dec 2010 07:08:11 -0700, Jay McCarthy wrote: This seems like a trivial point because the class system doesn't have to track these things and they are in fact part of the closures of the methods, Not directly. They are accessible in methods via an implicit `this'. so I don't see in

Re: [racket-dev] Bug report and complaint: Bitmap drawing and masks

2010-12-16 Thread Matthew Flatt
Thanks for the bug reports! I've pushed some fixes to the repo -- more details and answers below. At Tue, 14 Dec 2010 20:46:27 -0800, John Boyle wrote: Problem: The dc% method 'draw-bitmap-section disregards the boundaries of the drawing section when the 'color argument is the color black.

[racket-dev] `dc-for-text-size' and font-metric hinting

2010-12-17 Thread Matthew Flatt
I've changed `dc-for-text-size' in `sideshow/pict' so that its default value is a bitmap DC. This change makes `slideshow/pict' easier to use in non-Slideshow contexts, and it makes sense because font metrics with the new `racket/draw' are almost always independent of the device context.

Re: [racket-dev] Strage 5.0.99.5 segfault

2010-12-28 Thread Matthew Flatt
Thanks for the report! As it happens, I think I fixed this a few minutes ago: http://git.racket-lang.org/plt/commit/3b032893c1b9f74b04d0803ecd0f20c1d101dd11 Just to make sure before trying a new version, you might confirm that the bug goes away if you disable the JIT (e.g., with -j). At Wed,

Re: [racket-dev] up-to-date libgtk for drracket on debian stable?

2010-12-31 Thread Matthew Flatt
Thanks! I have a Debian Stable installation that I try periodically. I guess it's time to give it a try and patch up the problems. Also, I try to pay attention to the version information in Gtk and other documentation, but sometimes I forget to pay attention, and sometimes I forget that a

Re: [racket-dev] up-to-date libgtk for drracket on debian stable?

2011-01-03 Thread Matthew Flatt
At Mon, 3 Jan 2011 09:05:15 -0500, Philippe Meunier wrote: Just to make things more annoying, libcairo needs libpthread: [...] so I also had to change the define-runtime-lib macro from collects/racket/draw/private/libs.rkt so that the unix case of the macro accepts multiple libraries.

  1   2   3   4   5   6   7   8   9   10   >