2012/5/7 Matthew Flatt :
> I'd expect `flexpt' to be the same as `expt', but constrained to flonum
> arguments, which would make it the same as
>
> (define (flexpt a x)
> (if (and (flonum? a) (flonum? x))
> (expt a x)
> (error ...s)))
>
> I agree that it would make a fine addition to
On Sun, May 6, 2012 at 9:15 PM, Galler wrote:
> Y. that's the solution. Thanks very much
>
> I'm going to read a few more hours of ch. 16, as its obviously a weakness on
> my part.
Well, I think that we need more explanations of macros, actually.
> Also, jeez, what a great paper Flatt et al. is.
Y. that's the solution. Thanks very much
I'm going to read a few more hours of ch. 16, as its obviously a
weakness on my part.
Also, jeez, what a great paper Flatt et al. is. I know I've said it to
you before. Won't be the last time, either.
On Sun, May 6, 2012 at 9:57 PM, Robby Findler wr
Do you mean to just leave the quote off of the usage example?
If not, you could do something like the below (note that this doesn't
do a good job of error reporting and the test module requires a git
version of racket to run).
Robby
#lang racket
(define-syntax-rule
(with-continuation-marks ke
Hi everyone,
I have a question about the parser-tools library (which is great!). I'm
hoping maybe someone has run into this use-case before and figured out a
solution. What I'd like to be able to do is `nest' parsers --
i.e., have one parser's grammar include terminal symbols which are not
token
I'd expect `flexpt' to be the same as `expt', but constrained to flonum
arguments, which would make it the same as
(define (flexpt a x)
(if (and (flonum? a) (flonum? x))
(expt a x)
(error ...s)))
I agree that it would make a fine addition to `racket/flonum', but is
that what you
I think FD_SET(), etc., are adding casts on some platforms, which is
this next mismatch hasn't shown up before.
Does it fix the problem to change the definitions in "scheme.h" at line
2001 to the following?
# define MZ_FD_ZERO(p) FD_ZERO((fd_set *)(p))
# define MZ_FD_SET(n, p) FD_SET(n, (fd_set
Danny Yoo writes:
> hi danny!
> i using get-pure-port and yes it's in a loop.
> i also delete-pure-port because i was getting a different error when i
> didn't which was to run out of file-descriptors (i think) since i kept
> getting a can't open database file error.
>
> Wait!
>
>
> > things go perfectly till i accumulate 336 records and then this error
> > crashes my script:
> >
> > Hi prad,
> >
> > Are you doing the open-input-url in a loop, out of curiosity? If so, do
> you
> > close the opened ports between each loop iteration?
> >
> hi danny!
> i using get
Danny Yoo writes:
> On Sunday, May 6, 2012, prad wrote:
>
> i'm trying to understand a consistent error i'm getting while using a
> racket program to get data from a website.
>
> i'm accessing the site to download certain posts using regexps and store
> them in sqlite3.
>
On Sunday, May 6, 2012, prad wrote:
> i'm trying to understand a consistent error i'm getting while using a
> racket program to get data from a website.
>
> i'm accessing the site to download certain posts using regexps and store
> them in sqlite3.
>
> things go perfectly till i accumulate 336 rec
i'm trying to understand a consistent error i'm getting while using a
racket program to get data from a website.
i'm accessing the site to download certain posts using regexps and store
them in sqlite3.
things go perfectly till i accumulate 336 records and then this error
crashes my script:
tcp-
Thank you for taking the time to track that error.
I modified port.c from your suggestions.
And then I got below error messages.
in racket/src/thread.c
in lines 3527, 3528, 3529, 3561, 3562, 3596, 3597, 3805, 3814, 3818
all give this:
warning: dereferencing 'void*' pointer
error: request for
On November 12th 2011, Eli Barzilay wrote:
>
> (Yeah, but like I said I have no experience with trying to get
> anything out of readline on windows. (At least not outside of a
> cygwin terminal.))
Xrepl still just avoids using readline on windows -- and it seems that
the situation in cygwin is n
ok, sorry...
(tcp-connect hostname
port-no
[local-hostname
local-port-no]) → input-port? output-port?
If hostname already resolves to an IPv6 address, you are done - to test
(locally):
In /etc/hosts, add something like
127.0.0.1 localhostip
What was the answer?
On Sun, May 6, 2012 at 3:45 AM, Rüdiger Asche wrote:
> well I could have answered that myself (I did, eventually)... sorry for
> the noise...
> - Original Message - From: "Rüdiger Asche"
> To:
> Sent: Friday, May 04, 2012 3:10 PM
> Subject: [racket] tcp-connect and
continuation-mark-set->list always does return all of the bindings,
but continuation marks are carefully designed to avoid breaking tail
recursion (they let you understand the tail behavior of your program,
more accurately) so that's why you see only one binding.
continuation-mark-set-first can be
BACKGROUND:
Per the documentation:
with-continuation-mark causes a key to be associated with a binding
within a continuation frame
continuation-mark-set->list returns the binding(s) associated with that
particular key, for any given continuation-mark-set
while
continuation-mark-set-first
I am missing flexpt in racket/flonum.
I could live without, and use one of those below.
However it looks as a natural operation to have in racket/flonum.
(define (flexpt1 a x)
(real->float (expt a x)))
(define (flexpt2 a x)
(flexp (fl* x (fllog a
The second is about twice as fast as the
well I could have answered that myself (I did, eventually)... sorry for the
noise...
- Original Message -
From: "Rüdiger Asche"
To:
Sent: Friday, May 04, 2012 3:10 PM
Subject: [racket] tcp-connect and IPv6...
Hi there,
is there a way on Racket to force an outgoing TCP connection
(
20 matches
Mail list logo