Re: [racket-users] [racket users] describe variant issue?

2020-09-17 Thread Matthew Flatt
A PR to improve `struct->vector` for CS would be welcome. There
relevant code is here:

https://github.com/racket/racket/blob/master/racket/src/cs/rumble/struct.ss#L1221

As you'll see, the synthesized name is currently whatever comes out of
Chez Scheme's `inspect/object` interface. It could instead involve a
case dispatch on fixnums, bignums, etc., to improve on the `simple`
label that `inspect/object` produces. There may also be Chez Scheme
versus Racket terminology to bridge, such as `byte-string` instead of
`bytevector`.

At Thu, 17 Sep 2020 13:30:02 -0400, Sam Tobin-Hochstadt wrote:
> We may change Racket CS so that it produces the same results, but in
> general the results of `struct->vector` on values that are opaque is
> not something that should be relied on.
> 
> The describe library is, I believe, unmaintained, and hasn't been
> updated in many years.
> 
> Sam
> 
> On Thu, Sep 17, 2020 at 1:17 PM Kevin Forchione  wrote:
> >
> >
> >
> > > On Sep 15, 2020, at 3:11 PM, Sam Tobin-Hochstadt  
> wrote:
> > >
> > > This is a difference in behavior between Racket BC and Racket CS, and
> > > not something in the describe library:
> > >
> > > [samth@homer:~/work/teaching/c211 (master) racket-7.8] racket
> > > Welcome to Racket v7.8.
> > >> (struct->vector 5)
> > > '#(struct:fixnum-integer ...)
> > >> ^D
> > > [samth@homer:~/work/teaching/c211 (master) plt] racket
> > > Welcome to Racket v7.8.0.9 [cs].
> > >> (struct->vector 5)
> > > '#(struct:simple …)
> >
> >
> > Is this going to be the go-forward stance for Racket? Or is this still a 
> work in progress? Will it be left up to the code to determine types through 
> predicate checking?
> >
> > Thanks!
> >
> > Kevin
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/F42194F9-ADA3-4158-BCBA-3A65F210
> 8AB4%40gmail.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/CAK%3DHD%2BaiK06QrfOc2FLjTCFzvvo
> -cPpbSGChQ9yAnon_tp6wVw%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20200917113349.2e1%40sirmail.smtps.cs.utah.edu.


Re: [racket-users] [racket users] describe variant issue?

2020-09-17 Thread Sam Tobin-Hochstadt
We may change Racket CS so that it produces the same results, but in
general the results of `struct->vector` on values that are opaque is
not something that should be relied on.

The describe library is, I believe, unmaintained, and hasn't been
updated in many years.

Sam

On Thu, Sep 17, 2020 at 1:17 PM Kevin Forchione  wrote:
>
>
>
> > On Sep 15, 2020, at 3:11 PM, Sam Tobin-Hochstadt  
> > wrote:
> >
> > This is a difference in behavior between Racket BC and Racket CS, and
> > not something in the describe library:
> >
> > [samth@homer:~/work/teaching/c211 (master) racket-7.8] racket
> > Welcome to Racket v7.8.
> >> (struct->vector 5)
> > '#(struct:fixnum-integer ...)
> >> ^D
> > [samth@homer:~/work/teaching/c211 (master) plt] racket
> > Welcome to Racket v7.8.0.9 [cs].
> >> (struct->vector 5)
> > '#(struct:simple …)
>
>
> Is this going to be the go-forward stance for Racket? Or is this still a work 
> in progress? Will it be left up to the code to determine types through 
> predicate checking?
>
> Thanks!
>
> Kevin
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/F42194F9-ADA3-4158-BCBA-3A65F2108AB4%40gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAK%3DHD%2BaiK06QrfOc2FLjTCFzvvo-cPpbSGChQ9yAnon_tp6wVw%40mail.gmail.com.


Re: [racket-users] [racket users] describe variant issue?

2020-09-17 Thread Kevin Forchione



> On Sep 15, 2020, at 3:11 PM, Sam Tobin-Hochstadt  wrote:
> 
> This is a difference in behavior between Racket BC and Racket CS, and
> not something in the describe library:
> 
> [samth@homer:~/work/teaching/c211 (master) racket-7.8] racket
> Welcome to Racket v7.8.
>> (struct->vector 5)
> '#(struct:fixnum-integer ...)
>> ^D
> [samth@homer:~/work/teaching/c211 (master) plt] racket
> Welcome to Racket v7.8.0.9 [cs].
>> (struct->vector 5)
> '#(struct:simple …)


Is this going to be the go-forward stance for Racket? Or is this still a work 
in progress? Will it be left up to the code to determine types through 
predicate checking?

Thanks!

Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/F42194F9-ADA3-4158-BCBA-3A65F2108AB4%40gmail.com.


Re: [racket-users] UTF-8 encoding error when opening files in DrRacket on Windows 10

2020-09-17 Thread Robby Findler
I know only that we didn't get the report with earlier versions.

BTW, if one click on the dialog that has the error message, there should be
a "copy" option that will let you get some potentially valuable debugging
information. If it is easy to get a student who is having the problem to do
that, it may be helpful to report it back.

Robby


On Thu, Sep 17, 2020 at 8:46 AM breanndan@gmail.com <
breanndan.o.nuall...@gmail.com> wrote:

> Thanks Robby. We'll experiment with that.
>
> Any  idea if it's just the current version fo DrRacket? We could have them
> try installing the previous version for the time being.
>
> On Thursday, 17 September 2020 at 14:45:06 UTC+2 Robby Findler wrote:
>
>> We have had one other report yes. It looks like something is going wrong
>> with the open file dialog. It may be possible to open files by double
>> clicking on them to sidestep the bug I am not sure.
>>
>> Sorry about this.
>>
>> Robby
>>
>> On Thu, Sep 17, 2020 at 6:29 AM breanndan@gmail.com <
>> breanndan@gmail.com> wrote:
>>
>>> I have two students who just installed DrRacket on Windows 10 and get
>>> this error when they try to open files:
>>>
>>> bytes->string/locale: string is not a well-formed UTF-8 encoding
>>> string: #"\340lU\1"
>>>
>>> Has anyone else encountered this?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "Racket Users" group.
>>>
>>>
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to racket-users...@googlegroups.com.
>>>
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/racket-users/cef31834-11d8-4bc3-b03d-c63d2868f097n%40googlegroups.com
>>> 
>>> .
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/9b1a259b-1aa0-4b7c-b902-78376ccc9253n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOM2S50KnFHhYQb89qXFmojxzNh%3Dc5hPPAhvO0CdTTA1Dw%40mail.gmail.com.


Re: [racket-users] UTF-8 encoding error when opening files in DrRacket on Windows 10

2020-09-17 Thread breanndan....@gmail.com
Thanks Robby. We'll experiment with that. 

Any  idea if it's just the current version fo DrRacket? We could have them 
try installing the previous version for the time being.

On Thursday, 17 September 2020 at 14:45:06 UTC+2 Robby Findler wrote:

> We have had one other report yes. It looks like something is going wrong 
> with the open file dialog. It may be possible to open files by double 
> clicking on them to sidestep the bug I am not sure. 
>
> Sorry about this. 
>
> Robby
>
> On Thu, Sep 17, 2020 at 6:29 AM breanndan@gmail.com <
> breanndan@gmail.com> wrote:
>
>> I have two students who just installed DrRacket on Windows 10 and get 
>> this error when they try to open files:
>>
>> bytes->string/locale: string is not a well-formed UTF-8 encoding 
>> string: #"\340lU\1"
>>
>> Has anyone else encountered this?
>>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>>
>>
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>>
>>
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>>
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/cef31834-11d8-4bc3-b03d-c63d2868f097n%40googlegroups.com
>>  
>> 
>> .
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/9b1a259b-1aa0-4b7c-b902-78376ccc9253n%40googlegroups.com.


Re: [racket-users] UTF-8 encoding error when opening files in DrRacket on Windows 10

2020-09-17 Thread Robby Findler
We have had one other report yes. It looks like something is going wrong
with the open file dialog. It may be possible to open files by double
clicking on them to sidestep the bug I am not sure.

Sorry about this.

Robby

On Thu, Sep 17, 2020 at 6:29 AM breanndan@gmail.com <
breanndan.o.nuall...@gmail.com> wrote:

> I have two students who just installed DrRacket on Windows 10 and get this
> error when they try to open files:
>
> bytes->string/locale: string is not a well-formed UTF-8 encoding
> string: #"\340lU\1"
>
> Has anyone else encountered this?
>
>
>
>
>
>
>
>
> --
>
>
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
>
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
>
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/cef31834-11d8-4bc3-b03d-c63d2868f097n%40googlegroups.com
> 
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOPjFL0h5xcO_b%3DcE0vgD3yEw4O8YhbP-9ktoRHDpwzU6Q%40mail.gmail.com.


[racket-users] UTF-8 encoding error when opening files in DrRacket on Windows 10

2020-09-17 Thread breanndan....@gmail.com
I have two students who just installed DrRacket on Windows 10 and get this 
error when they try to open files:

bytes->string/locale: string is not a well-formed UTF-8 encoding 
string: #"\340lU\1"

Has anyone else encountered this?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/cef31834-11d8-4bc3-b03d-c63d2868f097n%40googlegroups.com.