Sorry for the long delay in replying.
Here's some that deals with issues #1 and #3. For issue #2, it depends on
what you want to do, I suppose. One thing you can do is override the
frame's get-editor% method to use a completely different class than the
default one and then you have lots of option
Thanks, I pushed a fix -- Matthias
On Feb 17, 2014, at 2:44 PM, Robby Findler wrote:
> Oh, yes: that's effectively a bitmap -> image coercion. That's probably a
> better thing to put than what I did in my diff.
>
> Robby
>
>
> On Mon, Feb 17, 2014 at 1:41 PM, Spencer Florence
> wrote:
>
Asumu found a solution that works reasonably well:
(define-splicing-syntax-class (maybe-clause expected-clause-name
default-value)
#:attributes (ast)
(pattern (clause-name elements ...)
#:when (eq? (syntax-e #'clause-name) (syntax-e
expected-clause-name))
#:attr ast #'(cl
Is there a way to abstract datum literals out of a (splicing) syntax class?
I have a number of patterns that look something like this:
(~optional (clause-name: element ...))
and I'd like to factor that out into a common syntax class, but be able to
specialize it according to the specific clause n
I was trying out the raw-string pkg when I noticed it didn't work in
the repl. I tried it with at-exps too, and that didn't work either.
Is this what's supposed to happen, or is there any way to define a
reader for the repl (sort of like #%top-interaction but for the reader)?
Example:
Def
Oh, yes: that's effectively a bitmap -> image coercion. That's probably a
better thing to put than what I did in my diff.
Robby
On Mon, Feb 17, 2014 at 1:41 PM, Spencer Florence wrote:
> I've run into this before. The way we solved it was to rotate bitmaps my 0
> degrees: Its silly, but it work
I've run into this before. The way we solved it was to rotate bitmaps my 0
degrees: Its silly, but it works.
So
(define (world->image p)
(rotate (pict->bitmap p))
On Mon, Feb 17, 2014 at 2:38 PM, Robby Findler
wrote:
> This does look like a bug in 2htdp/universe, tho.
>
> Looking at the univ
This does look like a bug in 2htdp/universe, tho.
Looking at the universe code, it is not dealing with the case that it gets
a bitmap% object. 2htdp/image's image? predicate accepts those. Probably a
diff something along these lines is the right fix (warning, untested!)
☕ git diff .
diff --git a
(define (world->image w)
(overlay (pict->bitmap (circle w))
(empty-scene 100 100)))
On Mon, Feb 17, 2014 at 1:40 PM, Jens Axel Søgaard wrote:
> Hi All,
>
> Is there a way to use big-bang with picts?
> In other words, how can I convert a pict into something that big-bang
> will displ
Hi All,
Is there a way to use big-bang with picts?
In other words, how can I convert a pict into something that big-bang
will display?
The attempt below fails with this error:
collects/racket/private/class-internal.rkt:4387:0: send: no such method
method name: copy
class name: bitmap
Erich Rast writes:
> When debugging is enabled, DrRacket could display on-line help for
> functions in the status line while the user is typing - rather than a
> red line with errors that usually just concern unclosed parens. What I
> mean is a one-line autocomplete in the status line that provid
On Feb 17, 2014, at 8:27 AM, Matthias Felleisen wrote:
> That is odd. Do share the code so others can inspect it.
Will do.
> (The trick with this assignment is to make the two matrixes large enough so
> that they fit, barely fit, don't fit in certain levels of the memory
> hierarchy. This i
On Feb 17, 2014, at 10:23 AM, Vincent St-Amour wrote:
> At Sun, 16 Feb 2014 23:43:30 -0500,
> Bloch Stephen wrote:
>> The results so far: the typed version is taking 20-30 times longer
>> than the untyped version. Huh?
>
> Are you measuring the time from an untyped driver module, or from withi
At Sun, 16 Feb 2014 23:43:30 -0500,
Bloch Stephen wrote:
> The results so far: the typed version is taking 20-30 times longer
> than the untyped version. Huh?
Are you measuring the time from an untyped driver module, or from within
Typed Racket? If you're, for example, constructing matrices on th
On 02/17/2014 09:09 AM, Jay McCarthy wrote:
Hi Ben,
The Racket documentation explains our Web API, but doesn't always
explain why you need these things in the larger context of Web
programs.
There is a tutorial and an API document about web applications on the
official site of Racket. But they
Take a look at "I Write Like"
Code: https://github.com/coding-robots/iwl
Page: http://iwl.me/
2014-02-17 14:38 GMT+01:00 Ben :
> Dear All,
>
> I'm trying to learn web application development. I know how to program
> Racket but I know little about web applications.
>
> There is a tutorial and
On Mon, Feb 17, 2014 at 6:38 AM, Ben wrote:
> Dear All,
>
> I'm trying to learn web application development. I know how to program
> Racket but I know little about web applications.
Hi Ben,
The Racket documentation explains our Web API, but doesn't always
explain why you need these things in the
Dear All,
I'm trying to learn web application development. I know how to program
Racket but I know little about web applications.
There is a tutorial and an API document about web applications on the
official site of Racket. But they are not enough for me. I don't even know
how to handle cookies
Turning off contracts for deployment is like practicing sailing with life vests
on land and taking of the vests once you go to sea.
1. Consider using option contracts to control the cost.
2. Write a macro to throw contracts away. I can post one.
-- Matthias, occasionally sails without life
That is odd. Do share the code so others can inspect it.
(The trick with this assignment is to make the two matrixes large enough so
that they fit, barely fit, don't fit in certain levels of the memory hierarchy.
This is perhaps 10-year old thinking but I am sure it hasn't gotten much
better.
On Mon, Feb 17, 2014 at 1:44 AM, Alexander D. Knauth
wrote:
> On Feb 16, 2014, at 2:51 PM, Laurent wrote:
> ...
>
> so that they can be deactivated to run the code in
>> faster/less-error-friendly mode if needed
>>
> ...
>
> Is there a way to disable contract checks like this?
>
Not that I know
21 matches
Mail list logo