[racket-users] DrRacket debugger error

2016-05-10 Thread copycat
I get the following error: 

module: cannot use identifier tainted by macro transformation in: module

when i try to debug a multi-file program with both untyped and typed scripts in 
it. If it's just untyped scripts it will work fine.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Why no "type checking" for C arrays?

2016-05-10 Thread Matthew Flatt
That's an oversight. I'll push an improvement.

Even with the improvement I have now, checking is not as complete as
you might like. The check ensures that an array value has (at least)
the expected number of elements and that each element's layout (in the
sense of `ctype->layout`) is as expected. Checking only the element
layout is weaker than checking the element type, but requiring the
types to be `eq?` ctypes seems too strong, and the ctype API doesn't
enable a more flexible notion of equality.

At Tue, 10 May 2016 18:03:07 +0200, Berthold Bäuml wrote:
> When copying a C array into a a field of a C struct there seems to be no 
> “type 
> checking”, i.e., at least a check for element type and array length/size. 
> This 
> leads to a Segmentation fault when running the code below. Could such a check 
> be added? The relevant information should be available to (make-ct or 
> set-ct-arr …).
> 
> 
> #lang racket
> (require ffi/unsafe)
> 
> (define _at2 (_array _double 500))
> (define _at1 (_array _double 5))
> 
> (define-cstruct _ct ([arr _at2]))
> (define a (ptr-ref (malloc _at1) _at1))
> (define c (make-ct a))
> 
> 
> Best,
> Berthold
> 
> -- 
> ---
> Berthold Bäuml -- Head of Autonomous Learning Robots Lab
> DLR, Robotics and Mechatronics Center (RMC)
> Münchner Str. 20, D-82234 Wessling
> Phone +49 8153 282489
> http://www.robotic.de/Berthold.Baeuml

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Why no "type checking" for C arrays?

2016-05-10 Thread Berthold Bäuml
When copying a C array into a a field of a C struct there seems to be no “type 
checking”, i.e., at least a check for element type and array length/size. This 
leads to a Segmentation fault when running the code below. Could such a check 
be added? The relevant information should be available to (make-ct or 
set-ct-arr …).


#lang racket
(require ffi/unsafe)

(define _at2 (_array _double 500))
(define _at1 (_array _double 5))

(define-cstruct _ct ([arr _at2]))
(define a (ptr-ref (malloc _at1) _at1))
(define c (make-ct a))


Best,
Berthold

-- 
---
Berthold Bäuml -- Head of Autonomous Learning Robots Lab
DLR, Robotics and Mechatronics Center (RMC)
Münchner Str. 20, D-82234 Wessling
Phone +49 8153 282489
http://www.robotic.de/Berthold.Baeuml

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] PLT Redex to Coq

2016-05-10 Thread Robby Findler
Unfortunately there is nothing to help with this currently.

Robby

On Tuesday, May 10, 2016, Beta Ziliani  wrote:

> Dear list,
>
> A colleague of mine used PLT Redex to define a language and its semantics,
> but now he wants to prove some properties of it in Coq. He's wondering if
> there is a tool to translate PLT Redex definitions into Coq ones, or if he
> should write all of them from scratch.
>
> Many thanks,
> Beta
>
> --
> 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 .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] PLT Redex to Coq

2016-05-10 Thread Beta Ziliani
Dear list,

A colleague of mine used PLT Redex to define a language and its semantics, but 
now he wants to prove some properties of it in Coq. He's wondering if there is 
a tool to translate PLT Redex definitions into Coq ones, or if he should write 
all of them from scratch.

Many thanks,
Beta

-- 
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.
For more options, visit https://groups.google.com/d/optout.