Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Matthew Flatt
Repair pushed. Thanks all for tracking down the problem! At Thu, 8 Sep 2016 17:49:03 -0400, Sam Tobin-Hochstadt wrote: > And here's an even smaller one along the same lines: > > #lang racket/base > (define h '#hash(("mail-server" . "smtp.sendgrid.net"))) > (define h2 (hash "mail-server"

[racket-users] Re: List-box% using percentages to resize multiple columns

2016-09-08 Thread Alex Harsanyi
I believe the message means that the width you specify is greater than the max value you also specify. That is, you probably call it as (set-column-width i 715 0 596), which could happen if 'perc' is greater than 100. You can verify that by printing out all the values and checking them.

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread 'John Clements' via Racket Users
> On Sep 8, 2016, at 2:52 PM, Sam Tobin-Hochstadt wrote: > > Already done: https://github.com/racket/racket/issues/1456 D’oh! John -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Sam Tobin-Hochstadt
Already done: https://github.com/racket/racket/issues/1456 Sam On Thu, Sep 8, 2016 at 5:50 PM John Clements wrote: > > > On Sep 8, 2016, at 2:43 PM, Robby Findler > wrote: > > > > (oh, and removing the require line also has that

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread 'John Clements' via Racket Users
> On Sep 8, 2016, at 2:43 PM, Robby Findler wrote: > > (oh, and removing the require line also has that property) So what you’re saying is that it’s not a contract bug, right? I’ll open a PR. John -- You received this message because you are subscribed to the

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Sam Tobin-Hochstadt
And here's an even smaller one along the same lines: #lang racket/base (define h '#hash(("mail-server" . "smtp.sendgrid.net"))) (define h2 (hash "mail-server" "smtp.sendgrid.net")) (chaperone-of? h2 h) (equal? h2 h) Note that the `equal?` comparison always works, the bug appears to be just in

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Robby Findler
(oh, and removing the require line also has that property) Robby On Thu, Sep 8, 2016 at 4:42 PM, Robby Findler wrote: > Here's a program that, when run prints #t or #f depending on whether > or not there is a .zo file. > > #lang racket/base > (require

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Robby Findler
Here's a program that, when run prints #t or #f depending on whether or not there is a .zo file. #lang racket/base (require racket/contract) (define h '#hash(("mail-server" . "smtp.sendgrid.net"))) (define h2 (for/fold ([h h]) ([(k v) (in-hash h)]) (hash-set h k v))) (chaperone-of? h2 h)

Re: [racket-users] Using the base language’s get-info function with make-meta-reader

2016-09-08 Thread Alexis King
Alright, I’m finally taking a look at this (and looping the users list back in). I think, unfortunately, your (Alex’s) change isn’t quite sufficient: having access to the get-info function isn’t enough. The read and read-syntax functions need access to the lambda returned by the base language’s

Re: [racket-users] Logos for Scheme (DrRacket,Bigloo)

2016-09-08 Thread Vincent St-Amour
Neat! You should put it on pkgs.racket-lang.org. Vincent On Thu, 08 Sep 2016 08:44:21 -0500, Damien MATTEI wrote: > > Hi, > just a few words to say my enhanced version of Logos (a Scheme program to > maipulate logical expressions symbolically) is on sourceforge: > >

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread 'John Clements' via Racket Users
> On Sep 8, 2016, at 12:01 PM, Robby Findler > wrote: > > What are the steps? I put the code below in a file named tmp.rkt, ran > "raco make tmp.rkt ; racket tmp.rkt" and see no output. There were two files? John -- You received this message because you are

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Robby Findler
What are the steps? I put the code below in a file named tmp.rkt, ran "raco make tmp.rkt ; racket tmp.rkt" and see no output. Robby On Thu, Sep 8, 2016 at 1:17 PM, Sam Tobin-Hochstadt wrote: > This looks like a contract system bug (or a compiler bug). If I change >

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Sam Tobin-Hochstadt
This looks like a contract system bug (or a compiler bug). If I change reducing-2.rkt to this: #lang racket/base (require racket/contract racket/hash) (define/contract hash-union2 (-> (hash/c string? string?) (hash/c string? string?) (hash/c string? string?))

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Sam Tobin-Hochstadt
Ok, now I see the error. Thanks! Sam On Thu, Sep 8, 2016 at 1:59 PM, John Clements wrote: > >> On Sep 8, 2016, at 10:42 AM, Sam Tobin-Hochstadt >> wrote: >> >> I'm unable to replicate this on two different machines, with up to >> date Racket.

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread 'John Clements' via Racket Users
> On Sep 8, 2016, at 10:42 AM, Sam Tobin-Hochstadt wrote: > > I'm unable to replicate this on two different machines, with up to > date Racket. Can you try it with a snapshot? I’m using the git head right now… I just tried copying the two files to a new directory, and

[racket-users] List-box% using percentages to resize multiple columns

2016-09-08 Thread Erich Rast
I'm trying to get a list-box% subclass to work with min-widths and percentage values, but I'm unable to figure out the correct total width to calculate the actual widths. Inside the listbox, I store the percentages in percentages and the minimum-widths in minimum-widths: (define/override

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread Sam Tobin-Hochstadt
I'm unable to replicate this on two different machines, with up to date Racket. Can you try it with a snapshot? Here's what I did: [samth@huor:~/tmp plt] cat > reducing-1.rkt #lang racket (require "reducing-2.rkt") (define bad (modified-test-conf (hash "a" "b")))

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-08 Thread 'John Clements' via Racket Users
> On Sep 7, 2016, at 10:36 AM, Sam Tobin-Hochstadt wrote: > > It's not clear what's going on here without seeing more of the code. A > minimal example isn't necessary, just something runnable. Well, here’s something pretty small. reducing-1.rkt: #lang racket (require

Re: [racket-users] TR warning with pict3d-canvas% (in pict3d)

2016-09-08 Thread Ben Greenman
On Wed, Sep 7, 2016 at 10:35 AM, Tim Brown wrote: > ffi-types.rkt:19 is: > .. > 17 (require/typed > 18 ffi/unsafe > *19 [#:opaque CPointer cpointer?] ; includes Bytes and other things > that can be used as cpointers > 20 [#:opaque CType ctype?] > 21 ) > ..

[racket-users] Logos for Scheme (DrRacket,Bigloo)

2016-09-08 Thread Damien MATTEI
Hi, just a few words to say my enhanced version of Logos (a Scheme program to maipulate logical expressions symbolically) is on sourceforge: https://sourceforge.net/projects/logos1/ improvments are the Quine–McCluskey algorithm implementation and a Bigloo version (needed adaptation mainly for

Re: [racket-users] TR warning with pict3d-canvas% (in pict3d)

2016-09-08 Thread Tim Brown
Sam, On the off-chance that the snapshot I used was somehow “stale”: I have just done a fresh racket install from git; I have 'raco pkg install -i pict3d' And retried the test. I still get the type errors. Tim On 07/09/16 16:47, Tim Brown wrote: > :-( > > Latest nightly "snapshot