I'm working on code (TR optimizer) that needs to match some
expressions and then compute an attribute based on the expression. I
would like to abstract this out as a syntax class. Example is below:
#lang racket
(require syntax/parse)
(define-syntax-class slow
(pattern e:expr
#:with v
Ok given the complexities of literal-sets and hygiene, I think I will
avoid them if I can. The issue is that I cannot seem to get the same
behaviour from literal lists as I do from literal-sets. Literal sets
will give an error an expansion time if there is not a binding for a
specified literal, but
On May 30, 2013, at 5:21 PM, Tom Schouten wrote:
> On 05/30/2013 05:30 PM, John Clements wrote:
>> On May 30, 2013, at 1:21 PM, Tom Schouten wrote:
>>
>>> Hi List,
>>>
>>> Here's a tiny experimental tool I've been working on the last couple of
>>> months:
>>> http://zwizwa.be/rai/rai.html
>>>
On 05/30/2013 05:30 PM, John Clements wrote:
On May 30, 2013, at 1:21 PM, Tom Schouten wrote:
Hi List,
Here's a tiny experimental tool I've been working on the last couple of months:
http://zwizwa.be/rai/rai.html
It's mostly aimed at the music DSP world (sound synthesizers and effects) where
Oh, if all you want is completely private methods, then use (define/private (m
x) ...) or even plain (define (m x) ...) The latter defines a private field
that contains a closure, and you can mutate this field; the former is really a
private method and does not consume space in the object.
I
PS: racket's class system has classes-as-values and some of the things that
are allowed in those language depend on first-order classes (like that
feature) and that extra power that you get means that some things come in
different ways that you're expecting. FWIW.
Robby
On Thursday, May 30, 2013,
OH, I'm sorry. Then Matthias was right: you want define-local-member-name.
Robby
On Thursday, May 30, 2013, Sean Kanaley wrote:
> Yes but that only works for "this". It's basically (send this method args
> ...) == (method args ...). I wish to call the method on a *different*object
> of the sa
When you are inside a class, you don't use send. You just call the method
with a regular function-application looking syntax.
#lang racket
(define c%
(class object%
(define/public (m x)
(printf "n on ~s is ~s\n" x (n x)))
(define/private (n x)
(* x x))
(super-new)))
(sen
Sanjeev K Sharma wrote at 05/30/2013 05:05 PM:
any way to apply webscraperhelper, with goals including element attributes - "id" or
"class" or "width" for span, div , etc ...?
You can use WebScraperHelper to get you a starting point sxpath query,
and then refine that sxpath query manually
On May 30, 2013, at 1:21 PM, Tom Schouten wrote:
> Hi List,
>
> Here's a tiny experimental tool I've been working on the last couple of
> months:
> http://zwizwa.be/rai/rai.html
>
> It's mostly aimed at the music DSP world (sound synthesizers and effects)
> where feedback structures are very
Do you know about define-local-member-name?
#lang racket
(module server racket
(provide c% a)
(define-local-member-name a b)
(define c%
(class object%
(field [x 10])
(super-new)
(define/public (a) x)
(define/public (b y) (set! x y)
(module clie
any way to apply webscraperhelper, with goals including element attributes -
"id" or "class" or "width" for span, div , etc ...?
for example the "four" here: (webscraperhelper'(td"four")doc)
apply to this line (the four is in the last )
a3b4four
instead of the "four", how could I get
In C++ for example, the following is valid:
class A {
private:
int test(A a) { return n + a.n; }
int n;
};
The key point is the "a.n" is valid.
I'm trying to create a 3d game in Racket, and in order to avoid recomputing
world transforms all the time, child objects (say a rotatable gun on
Hi List,
Here's a tiny experimental tool I've been working on the last couple of
months:
http://zwizwa.be/rai/rai.html
It's mostly aimed at the music DSP world (sound synthesizers and
effects) where feedback structures are very important, but it could be
fairly generic in its use. I tried t
Quick browsed the doc this morning.
Very happy to see this. Some novelty here I think. The Pub/Sub vs. say
strict Actor Peer-To-Peer seems more flexible. Typed Endpoints and
Handlers. Yea!!
Looks like I can throw out some really half-baked code that addresses
similar functionality as Marketpla
On Thu, May 30, 2013 at 12:25 PM, Eric Dobson wrote:
> Why do literal-sets have to be unhygienic? I expected them to work
> like literal lists which you say are hygienic. Also literal-sets are
> not documented as being unhygienic, which was the confusing part.
>
Literal sets are hygienic in the i
Why do literal-sets have to be unhygienic? I expected them to work
like literal lists which you say are hygienic. Also literal-sets are
not documented as being unhygienic, which was the confusing part.
In my example 2 both the literals in the literal-list and the ids used
to match the syntax have
Thank you for jumping your very full queue and addressing this one.
On Thu, May 30, 2013 at 7:51 AM, Matthew Flatt wrote:
> At Wed, 29 May 2013 21:45:23 -0500, Robby Findler wrote:
> > re: current-directory-for-user: I also don't see a better way. Probably
> the
> > docs should say "don't set t
Looks great to me. Sorry for not checking first.
Thanks,
Robby
On Thu, May 30, 2013 at 6:51 AM, Matthew Flatt wrote:
> At Wed, 29 May 2013 21:45:23 -0500, Robby Findler wrote:
> > re: current-directory-for-user: I also don't see a better way. Probably
> the
> > docs should say "don't set this
At Wed, 29 May 2013 21:45:23 -0500, Robby Findler wrote:
> re: current-directory-for-user: I also don't see a better way. Probably the
> docs should say "don't set this path", roughly (with some caveats that
> would include things like drracket)
Do the current docs say that well enough, or should
On 05/29/2013 03:30 AM, Eric Dobson wrote:
I was writing a macro that generated a literal-set and ran into some
confusing behavior which I have distilled to the following program.
#lang racket
(require syntax/parse
(for-syntax syntax/parse))
(define-syntax (define-ls1 stx)
(syntax
21 matches
Mail list logo