An hour and a half ago, Greg Hendershott wrote:
> I've discovered that the problem does NOT happen if I start racket
> with -j a.k.a. --no-jit.
>
> ?
It might be one of these things that prevent data execution. With the
jit on, Racket is basically throwing some numbers into memory and then
execu
I've discovered that the problem does NOT happen if I start racket
with -j a.k.a. --no-jit.
?
On Mon, Jul 11, 2011 at 4:43 PM, Greg Hendershott
wrote:
> I have an strace but it's 6,000 lines long and I'm not sure how to interpret
> it.
>
> The tail of it is:
>
> mprotect(0xb5e6, 16384, PROT
After a few minutes thought I guess this would be 3d-syntax. References
to top-level identifiers have no state associated with them whereas
inner bindings amount to closures.
On 07/11/2011 06:40 PM, Jon Rafkind wrote:
> The code mostly speaks for itself but I'm wondering why the reference to
> `te
The code mostly speaks for itself but I'm wondering why the reference to
`test2' is a compilation error.
#lang racket
(define-for-syntax (test)
(printf "hello from test\n")
#'1)
(define-for-syntax (do-it stx)
(define (test2)
(printf "hello from test2\n")
#'2)
;; ok, prints "hell
I have an strace but it's 6,000 lines long and I'm not sure how to interpret it.
The tail of it is:
mprotect(0xb5e6, 16384, PROT_READ|PROT_WRITE) = 0
rt_sigreturn(0xfa54)= -1257770392
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
mprotect(0xb51e, 16384, PROT_READ|PROT_W
Now I don't understand at all why you want to use eval in the macro.
If the right-hand side just returned the lambda that you have there,
it would automatically capture the variables in the context of the
gama rule.
Have you tried just returning the lambda as is from the macro?
On Jul 11,
Maybe you can run 'strace' on racket to see if its hanging on a file?
On 07/11/2011 10:34 AM, Greg Hendershott wrote:
> I'm trying that now (first time ever).
>
> Unfortunately the make is stuck at the last line for 10+ minutes, with
> `top' showing xform.rkt pegged at 99% CPU.
>
> Make output:
>
I'm trying that now (first time ever).
Unfortunately the make is stuck at the last line for 10+ minutes, with
`top' showing xform.rkt pegged at 99% CPU.
Make output:
...
ranlib libracket.a
make[5]: Leaving directory
`/home/ec2-user/misc/racket-source/racket-5.1.1/src/build/racket'
make[4]: Leavi
Ok, I will give you more details about my project... maybe you could
be interested
in it :>
But first I need to underline that the macro *cannot foresee* which
extern variables the
lambda can reference ... so I cannot adopt your solution:
(define-syntax mym
(
No idea here, but why not try compiling Racket from source? All you
need is ./configure ; make ; make install
HTH,
N.
On Mon, Jul 11, 2011 at 4:45 PM, Greg Hendershott
wrote:
> Yesterday I ran `yum update' on an Amazon Linux 32-bit instance. It
> updated quite a bit more than I expected.
__
P.S. /usr/racket/README: "This is the Racket v5.1.1 binary package for
Linux i386, built on Fedora 12."
On Mon, Jul 11, 2011 at 11:45 AM, Greg Hendershott
wrote:
> Yesterday I ran `yum update' on an Amazon Linux 32-bit instance. It
> updated quite a bit more than I expected.
>
> yum.log:
> Jul 10
Yesterday I ran `yum update' on an Amazon Linux 32-bit instance. It
updated quite a bit more than I expected.
yum.log:
Jul 10 00:20:23 Updated: tzdata-2011d-3.9.amzn1.noarch
Jul 10 00:20:24 Updated: tzdata-java-2011d-3.9.amzn1.noarch
Jul 10 00:20:24 Updated: system-release-2011.02-1.8.noarch
Jul 1
This sounds a bit confused. Allow me to tease out a clarification.
1. If you write a macro like this:
(define-syntax mym
(syntax-rules ()
[(_ input ...)
(let* ([x 10])
(lambda (stuff)
input ...;; line 2
x))]))
'hygiene' gives you a couple of diff
On Mon, 2011-07-11 at 13:43 +0100, Noel Welsh wrote:
> On Mon, Jul 11, 2011 at 1:26 PM, Maurizio Giordano GMAIL
> wrote:
> > PS. my lambda is generated by a macro (define-syntax) ...
> > this is why I use eval to generate the corresponding procedure.
>
> If this is the case I don't think you need
I'd like to add a +1 to the original question. If I can get eval to see local
bindings, I can write a gdb-like debugger for Racket using call/cc, read and
eval.
-Ian
- Original Message -
From: "Hendrik Boom"
To: users@racket-lang.org
Sent: Monday, July 11, 2011 9:02:08 AM GMT -05:00 US/C
On Mon, Jul 11, 2011 at 02:26:19PM +0200, Maurizio Giordano GMAIL wrote:
> Hi to all schemers,
>
> I know that "eval" evaluates the argument without
> visibility of the local environment where it is called.
> so the following code has this error:
>
> > (let ((x 1)) (eval '(+ x 1))
> reference to
On Mon, Jul 11, 2011 at 1:26 PM, Maurizio Giordano GMAIL
wrote:
> PS. my lambda is generated by a macro (define-syntax) ...
> this is why I use eval to generate the corresponding procedure.
If this is the case I don't think you need to use eval. You either
need to write your macro in a hygenic wa
Hi to all schemers,
I know that "eval" evaluates the argument without
visibility of the local environment where it is called.
so the following code has this error:
> (let ((x 1)) (eval '(+ x 1))
reference to undefined identifier: x
On contrary, if "x" is defined in the top environment, I have:
18 matches
Mail list logo