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 ---
(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
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 anyone else on Linux reproduce
this behavior?
The patch
translate 50 0)))
(define frame (new frame% (label Test draw-text)))
(define canvas
(new canvas%
(parent frame)
(min-width 500)
(min-height 100)
(paint-callback draw-screen)))
(send frame show #t)
On 12/16/2013 02:16 PM, David Vanderson wrote:
Thank you - I'll
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, I draw a black hello on top
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
aligned, and also the vertical
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 missing
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 at larger
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
. 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 david.vander...@gmail.com
To: J
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
McCarthy wrote:
On Wed, Sep 4, 2013 at 1:55 PM, David Vanderson
david.vander...@gmail.com 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 _' - doesn't that
just
place.
Thanks!
Robby
On Tue, Jun 11, 2013 at 3:26 PM, David Vanderson
david.vander...@gmail.com 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
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
. 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.
Robby
On Wed, Sep 4, 2013 at 12:26 PM, David Vanderson
david.vander
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
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 4:26 PM, David
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
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
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
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
))
(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 in-slice
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
+++
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
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
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
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
16, 2011 at 5:09 PM, David Vanderson
david.vander...@gmail.com 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
30 matches
Mail list logo