If you need to introduce "variable" like that then, you need define
"for" as special syntax (perhaps using "define-syntax" and
"syntax-case"), not define "for" as a procedure.
Or, if you want to define "for" as a procedure, then there should be no
"variable" argument, and the "body" argument s
This came to my mind when I implementing Sieve of Eratosthenes with
wheel factorization.
The major concern is `in-range` instead of `range`.
Description
---
Now we have syntax
(range start end [step])
or similar for `in-range`
(in-range start end [step])
It only support a si
Hi. I am trying to implement the for loop.
My *for loop* structure:
*(for *
*)*
(define (fvar exp) (cadr exp))
(define (fstart exp) (car (cddr exp)))
(define (flimit exp) (car (cdddr exp)))
(define (fincr exp) (cadr (cdddr exp)))
(define (fbody exp) (caddr (cdddr exp)))
CALL FOR PAPERS
13th International Conference on
Generative Programming: Concepts & Experiences
(GPCE 2014)
September 15-16, 2014
Västerås, Sweden
(collocated with ASE 2014 and SLE 2014)
http://www.gpce.org
http://www.fac
I posted a few questions about Racket macros a few days ago, and received
many interesting suggestions Neil Van Dyke. Danny Yoo posted a link to a
very interesting blog/book, which was of great help:
http://www.greghendershott.com/fear-of-macros/
I also received programs from Robby Findler, Sean
A wise person observed, "any publicity is good publicity", so, on second
thought, I suppose it would probably be bad of me to discourage the lab
notebook of learning process.
I've invited him to the email list, and I hope he sticks with Racket for
a while, and keeps blogging about Racket as he
That's probably a great idea. Since you have expressed it so well, would you
mind taking the lead? Thanks -- Matthias
On May 4, 2014, at 7:53 PM, Neil Van Dyke wrote:
> Maybe someone should invite the blog writer to suspend the public lab
> notebook, use the email list for questions, and the
Sorry I hit reply instead of reply all.
The docs say that all KeyEvents are strings, but not all strings are KeyEvents.
The definition of key-event? says that a key-event is either a string with
length 1 or a member of KEY-EVTS.
(define (key-event? k)
(and (string? k) (or (= (string-len
The data definition is called 1String in HtDP/2e
On May 4, 2014, at 7:35 PM, Alexander D. Knauth wrote:
> Is there a type for a string with length 1?
> The reason is that I’m trying to make my own typed version of big-bang and I
> want to make a type for KeyEvent.
>
>
>
I tried skimming these blog posts.
They seem like they might be useful as one data point of pedagogic
feedback for Racket tutorial/book writers. I suppose that tutorial/book
writers might already have many such data points from teaching.
What I saw in a quick skim of the blog posts seemed to
Is there a type for a string with length 1?
The reason is that I’m trying to make my own typed version of big-bang and I
want to make a type for KeyEvent.
Racket Users list:
http://lists.racket-lang.org/users
See my notes on his notes
On May 2, 2014, at 4:59 PM, Daniel Prager wrote:
> Artyom, the Haskell programmer who's documenting his experiences learning
> Racket now has a second instalment, mainly about macros:
> http://artyom.me/learning-racket-2. I can't comment authoritatively on the
> co
I don't think the thing you want currently exists in general, although
it exists internally for flushing output ports.
Simply triggering the exit handler when the Racket process exits
doesn't seem like a good enough solution. It's awkward to add and
remove callbacks by changing the exit handler, a
Thanks -- that sounds like a good plan. I think maybe I've been
working in too linear a fashion and should probably take more time to
step back from the texts and start playing with the things I've
learned, or think I've learned.
Thanks again
On Sun, May 4, 2014 at 3:37 PM, Matthias Felleisen wr
On 05/04/2014 04:11 PM, Robby Findler wrote:
> Sounds to me like you want to wire into the custodian facilities (via
> the ffi I believe) but probably starting with just atexit() itself is
> okay.
Via the FFI! Gosh. That sounds scary.
I did try register-custodian-shutdown from ffi/unsafe/custodia
Sounds to me like you want to wire into the custodian facilities (via
the ffi I believe) but probably starting with just atexit() itself is
okay.
Robby
On Sun, May 4, 2014 at 3:08 PM, Tony Garnock-Jones wrote:
> On 05/04/2014 03:55 PM, Spencer Florence wrote:
>> Would something like dynamic-wind
On 05/04/2014 03:55 PM, Spencer Florence wrote:
> Would something like dynamic-wind work for you?
> http://docs.racket-lang.org/reference/cont.html?q=dynamic-wind#%28def._%28%28quote._~23~25kernel%29._dynamic-wind%29%29
Thanks for the suggestion, but unfortunately that won't work for me: the
idea
Would something like dynamic-wind work for you?
http://docs.racket-lang.org/reference/cont.html?q=dynamic-wind#%28def._%28%28quote._~23~25kernel%29._dynamic-wind%29%29
On Sun, May 4, 2014 at 2:29 PM, Tony Garnock-Jones wrote:
> Hi all,
>
> I'm looking for an atexit()-like facility for Racket.
>
In that case I recommend:
(1) rotate among the books
(2) write code
(3) see whether you can distill what you learn into guidelines for yourself.
On May 4, 2014, at 2:33 PM, Christopher D. Walborn wrote:
> On Sun, May 4, 2014 at 1:55 PM, Matthias Felleisen
> wrote:
>>
>> You might also
Hi all,
I'm looking for an atexit()-like facility for Racket.
I've tried setting the exit-handler, but it only seems to be called when
I explicitly call exit, and not implicitly when Racket shuts down when
control flows off the end of the main program.
The problem I'm facing is to buffer rows to
> * If we have users write types in interfaces, what happens when
>untyped classes try to implement those interfaces?
Untyped interfaces can specify contracts for their methods, so could it use
that?
> * What do interface types look like? Do they list the types of methods
>that should
On Sun, May 4, 2014 at 1:55 PM, Matthias Felleisen wrote:
>
> You might also try to jump into Realm of Racket, which is the
> intended follow-up (at the moment) for HtDP 'graduates' who wish to
> get deeper into Racket.
I do have a copy of this, but stopped on the recursion chapter to go
back thr
You might also try to jump into Realm of Racket, which is the intended
follow-up (at the moment) for HtDP 'graduates' who wish to get deeper into
Racket.
On May 4, 2014, at 12:53 PM, Christopher D. Walborn wrote:
> Oh -- awesome. Thanks for that!
>
> On Sun, May 4, 2014 at 12:45 PM, Jens
Oh -- awesome. Thanks for that!
On Sun, May 4, 2014 at 12:45 PM, Jens Axel Søgaard
wrote:
> Hi Christopher,
>
> Here is a few links to Raclet related videos.
--
Christopher D. Walborn : http://laconic-prolixity.blogspot.com
---
Hi Christopher,
Here is a few links to Raclet related videos.
Flatt's HtDP videos: http://www.eng.utah.edu/~cs5510/htdp-videos.html
Flatt's CS5510: http://www.eng.utah.edu/~cs5510/schedule.html
Bloch's Picturing Programs videos:
http://picturingprograms.com/worked-exercises/current/
Clements's vi
You may wish to read the section in HtDP/2e on designing programs:
http://www.ccs.neu.edu/home/matthias/HtDP2e/part_one.html#%28part._ch~3ahtdp%29
especially
http://www.ccs.neu.edu/home/matthias/HtDP2e/part_one.html#%28part._.D.K._sec~3adesign-world%29
so that you can solve these problems
Franco, your PDF looks interesting. Any chance the rest of the blocks
are available?
As for my background, I've been in IT or other tech related fields for
20 years and have done a little bit of naive shell scripting, but
hadn't had any formal training until last year when I took a MOOC that
used
I think the first tutorial (blog) might be better off using
http://docs.racket-lang.org/web-server/dispatch.html, which resembles more
of the conventional way of doing web app, ie dealing with request and
response.
In particular, the resulting k-url is not permanent (at least when I was
working th
Thank you, Franco. I think I'm a little bit more experienced than your
target readers. However, I will definitely read it and give you my feedback
in a few days.
Ben
On Sun, May 4, 2014 at 9:15 PM, Franco Raimondi wrote:
> Hi Ben,
> This is a very simple introduction for our first year students
Hi Ben,
This is a very simple introduction for our first year students, no experience
required (hopefully):
http://www.rmnd.net/wp-content/uploads/2014/02/w2-programming.pdf
Let me know if this is OK for you or if you spot typos etc. Ignore section 2.3,
which requires other material.
Franco
On
Thank you, Danny. You've already done a great job. Just not suitable for
me. As you have said, I've never done any serious web development before.
Maybe your tutorial serves experienced developers well.
And a small typo: In section "7 Share and Share Alike", there's a
`insert-blog-post!` which pr
31 matches
Mail list logo