On 02/26/2015 12:26 PM, Matthew Flatt wrote:
I've been working on a new macro expander for Racket, and I'm starting
to think that it will work. The new expander is not completely
compatible with the current expander --- and that will be an issue if
we eventually go forward with the change --- bu
end this refresh)))
#f) ; => low priority
where `needed?` is a field that's initially #f.
At Wed, 16 Apr 2014 13:33:02 -0400, David Vanderson wrote:
(moved to dev)
On Linux, the attached program shows terrible responsiveness when
dragging points around on the graph. Can
(moved to dev)
On Linux, the attached program shows terrible responsiveness when
dragging points around on the graph. Can anyone else on Linux reproduce
this behavior?
The patch below dramatically improves the responsiveness by forcing the
eventspace to process medium-level events (mouse m
t 'normal 'normal #f 'smoothed #f 'aligned))
(send dc set-initial-matrix (vector 1 0 0 1 0 0))
(for ((i 10))
(draw-text dc (/ i 10.0))
(send dc translate 50 0)))
(define frame (new frame% (label "Test draw-text")))
(define canvas
(new canvas%
(parent
Thank you - I'll look into it.
On 12/16/2013 02:14 PM, Matthew Flatt wrote:
Yes, it's the same on Mac and Windows.
At Mon, 16 Dec 2013 14:12:18 -0500, David Vanderson wrote:
Thanks for looking into it. Can you confirm if you see similar output on
a different platform (Mac or Win)?
uot;y" argument
by 0.1, and I don't see any options that would affect vertical
alignment.
At Mon, 16 Dec 2013 10:37:39 -0500, David Vanderson wrote:
That makes sense, but the picture with 'unaligned seems strange
(attached). It looks like each individual character is being pixel
wrote:
Did you mean to pass 'unaligned instead of 'aligned as the last
argument to `find-or-create-font`? That should disable pixel alignment.
At Mon, 16 Dec 2013 01:28:23 -0500, David Vanderson wrote:
Hello,
It seems that draw-text always pixel-aligns its text. In the example
below,
Hello,
It seems that draw-text always pixel-aligns its text. In the example
below, I draw a black "hello" on top of a red one, with a pixel offset
of 0, 0.1, 0.2, . . . 0.9. At least for me, I see no change until 0.5,
where the black text jumps a whole pixel (see attached image).
Am I missin
Amazing - thank you!
On 12/06/2013 01:17 PM, Matthew Flatt wrote:
I've pushed a repair. Thanks for the report!
At Thu, 05 Dec 2013 16:08:45 -0500, David Vanderson wrote:
Hello,
I'm seeing that if the first draw-text on a canvas is at a small scale
(0.1), then later draw-text calls
Hello,
I'm seeing that if the first draw-text on a canvas is at a small scale
(0.1), then later draw-text calls at larger scales (1) show strange
character spacing (see attached image).
This can be worked around by passing #t as the combine? argument to
draw-text, but it seems some state is
This is fantastic! Thank you! I learned a good deal reading it just
now. Comments below:
On 10/06/2013 04:30 PM, David T. Pierson wrote:
1) Should it be broken into separate pages?
I'd leave it as a single page for now. Easier to update.
2) It starts out with the basics of threads. Is th
Just to make sure, is the memory being allocated reachable from outside
the sandbox?
http://www.cs.utah.edu/plt/publications/ismm04-addendum.txt
On 09/09/2013 01:29 PM, J. Ian Johnson wrote:
I don't use the gui framework at all. This is all just pounding on global
hash-tables and vectors. Or
he problem. Without having to modify too much code,
would the proper way to call a function entirely within the sandbox be to use
dynamic-require in the thunk, rather than require in the module using
call-with-limits?
-Ian
- Original Message -----
From: "David Vanderson"
To: "
Dave
On 09/05/2013 08:40 AM, Jay McCarthy wrote:
On Wed, Sep 4, 2013 at 1:55 PM, David Vanderson
mailto:david.vander...@gmail.com>> wrote:
I totally missed
pkgs/racket-pkgs/racket-test/tests/run-automated-tests.rkt, but it
looks like DrDr is running that with 'mzc -k _
'm more confused now. Does DrDr automatically run a main.rkt file if
it's present?
Thanks,
Dave
On 09/04/2013 01:58 PM, Robby Findler wrote:
I think it makes more sense to change those 'main' modules into 'test'
modules, but I'm not positive.
R
It looks to me like most of the tests in
racket/pkgs/racket-pkgs/racket-test/tests/file/* are not being run by
DrDr. I think DrDr is running them with 'raco test _' while the files
mostly need to be run as 'racket _'.
Am I missing something? If not, should I fix the files to be run with
'ra
the right place.
Thanks!
Robby
On Tue, Jun 11, 2013 at 3:26 PM, David Vanderson
mailto:david.vander...@gmail.com>> wrote:
Thank you Stephen and Tony for your examples. I found the
following private function in db/private/mysql/connection.rkt:
(define (hex-string->byt
On 06/18/2013 12:47 PM, Matthew Flatt wrote:
2. Reply to the list to say that it works and we should merge it.
I got the below 4 similar errors. DrRacket works. Linux Mint 14 (Linux
funland 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux). Let me
On 06/11/2013 04:33 PM, Matthias Felleisen wrote:
db/private/mysql/connection.rkt does not export the function, otherwise you
could.
I don't understand this. I'd like to make the function available to
users somewhere - are you saying that's bad?
On Jun 11, 2013, at
Thank you Stephen and Tony for your examples. I found the following
private function in db/private/mysql/connection.rkt:
(define (hex-string->bytes s)
(define (hex-digit->int c)
(let ([c (char->integer c)])
(cond [(<= (char->integer #\0) c (char->integer #\9))
(- c (cha
I'm doing some cryptography exercises that involve a lot of hex
encoding/decoding. I see there's a bytes->hex-string function in
file/sha1 and openssl/sha1, but I can't find a decode function.
Is a hex decode function in the distribution?
Thanks,
Dave
_
Racket Develop
Tiny request - could we add:
to the of the default web-server index.html page?
I started toying with serve/servlet, and was caught for a bit by:
- first using #:servlet-path "/foo", seeing my servlet page
- change the url in the popup browser to "/", see default page
- close browser, change s
No guru here, but my experience has been that every url encoder is
slightly different - I don't think there's a broad consensus on edge
cases. I'd say go for it.
On 12/17/2012 06:59 AM, Eli Barzilay wrote:
For many people there is a constant source of annoyance when you
copy+paste doc URLs in
On 12/13/2012 07:19 AM, Jay McCarthy wrote:
This is on my future plans to make a "raco pkg bundle" that will
produce a big tar ball that and can be installed on another machine
and get the same packages (even if they are no longer available at
their sources with those versions) installed. I just
I was professionally writing Ruby code as that community struggled
through package issues. I hope that experience can shed some light
here. Also I'd like to understand the basic use cases and how they work
in planet2.
As a user, here are my 2 use cases:
1. My friend tells me about awesome l
http://docs.racket-lang.org/data/Orders_and_Ordered_Dictionaries.html
Towards the bottom of this page there is the following error:
> (datum-order (make-fish 'alewife) (make-fish 'sockeye))
make-fish: undefined;
cannot reference undefined identifier
Is this intentional?
Thanks,
Dave
_
Thank you so much for this. This was definitely one area of difficulty
when I started using Racket for scripting.
On 04/19/2012 09:28 AM, Eli Barzilay wrote:
But to allow other uses, make these arguments a string *or* a regexp,
where a regexp is taken as-is. This leads to another simplicity p
f g))
(for/list ([s (in-slice 3 products)])
`(ul ,@(for/list ([e s])
`(li ,e
Thanks,
Dave
On 12/09/2011 02:46 AM, David Vanderson wrote:
Hello,
I was trying to write some code to process a few items at a time from
a list. Nothing I came up with looked great, so I wrote an
Hello,
I was trying to write some code to process a few items at a time from a
list. Nothing I came up with looked great, so I wrote an "in-slice"
sequence function:
> (for/list ([e (in-slice 3 (in-range 8))]) e)
'((0 1 2) (3 4 5) (6 7))
Patch below. Comments?
Thanks,
Dave
diff --git a
I think the docs for syntax-id-rules have 2 lines swapped. Here's a patch:
diff --git a/collects/scribblings/reference/stx-patterns.scrbl
b/collects/scribblings/reference/stx-patterns.scrbl
index 83d13bc..209961b 100644
--- a/collects/scribblings/reference/stx-patterns.scrbl
+++ b/collects/scr
Thanks for Racket!
I tried to send a bug report via drracket, but got this error:
An error occurred when submitting your Racket bug report.
Please enter the correct text at the bottom of the bug form.
If this problem persists, please send email to the Racket mailing list,
or to rac...@racket-
What's the benefit of using regexp-match instead of port->string ?
Thanks,
Dave
On 04/29/2011 07:23 AM, John Clements wrote:
This is just one random guy, but it's interesting to see how Racket is
perceived.
Excerpts from a conversation on stackoverflow about Racket:
Thanks. And that'
astlund
On Wed, Mar 16, 2011 at 5:09 PM, David Vanderson
wrote:
I'm seeing a difference between when the value in a weak box is collected.
When I run the following interactively, the value is collected like I
expect. But it is not collected when running in a script, or in DrRacket.
This i
I'm seeing a difference between when the value in a weak box is
collected. When I run the following interactively, the value is
collected like I expect. But it is not collected when running in a
script, or in DrRacket. This is v5.1 on Ubuntu x64, compiled from source.
Can someone explain th
34 matches
Mail list logo