Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Danny Yoo
All the way down to Advanced Control Flow part, my confusion accumulated to a point that I thought I was not ready for the tutorial. Then I decided to give up. Ok, that was useful feedback! I'll try to think about how the points may be addressed. For one of the comments you made about

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Ben
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

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Franco Raimondi
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

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Ben
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 f.raimo...@gmail.comwrote: Hi Ben, This is a very simple introduction for our

[racket] my 2 cents on Web application tutorial being too advanced

2014-05-04 Thread J G Cho
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

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Christopher D. Walborn
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

Re: [racket] WORLD manipulation doubt

2014-05-04 Thread Matthias Felleisen
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

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Jens Axel Søgaard
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

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Christopher D. Walborn
Oh -- awesome. Thanks for that! On Sun, May 4, 2014 at 12:45 PM, Jens Axel Søgaard jensa...@soegaard.net wrote: Hi Christopher, Here is a few links to Raclet related videos. snip -- Christopher D. Walborn : http://laconic-prolixity.blogspot.com

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Matthias Felleisen
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

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Christopher D. Walborn
On Sun, May 4, 2014 at 1:55 PM, Matthias Felleisen matth...@ccs.neu.edu 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

Re: [racket] typed racket and interfaces

2014-05-04 Thread Alexander D. Knauth
* 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 be

[racket] Callback on shutdown

2014-05-04 Thread Tony Garnock-Jones
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

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Matthias Felleisen
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 matth...@ccs.neu.edu wrote:

Re: [racket] Callback on shutdown

2014-05-04 Thread Spencer Florence
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 to...@ccs.neu.eduwrote: Hi all, I'm looking for an atexit()-like facility

Re: [racket] Callback on shutdown

2014-05-04 Thread Tony Garnock-Jones
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

Re: [racket] Callback on shutdown

2014-05-04 Thread Robby Findler
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 to...@ccs.neu.edu wrote: On 05/04/2014 03:55 PM, Spencer Florence wrote: Would something

Re: [racket] Callback on shutdown

2014-05-04 Thread Tony Garnock-Jones
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/custodian,

Re: [racket] Isn't the web application tutorial too advanced?

2014-05-04 Thread Christopher D. Walborn
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

Re: [racket] Macros baffle me

2014-05-04 Thread Matthias Felleisen
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

[racket] Is there a type for a string with length 1?

2014-05-04 Thread Alexander D. Knauth
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

Re: [racket] Macros baffle me

2014-05-04 Thread Neil Van Dyke
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

Re: [racket] Is there a type for a string with length 1?

2014-05-04 Thread Matthias Felleisen
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.

Re: [racket] Is there a type for a string with length 1?

2014-05-04 Thread Alexander D. Knauth
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 (=

Re: [racket] Macros baffle me

2014-05-04 Thread Matthias Felleisen
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 then

Re: [racket] Macros baffle me

2014-05-04 Thread Neil Van Dyke
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

[racket] More macros...

2014-05-04 Thread Eduardo Costa
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,

[racket] GPCE 2014 - Final Call for Papers

2014-05-04 Thread Matthew Flatt
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

[racket] FOR loop

2014-05-04 Thread Zee Ken
Hi. I am trying to implement the for loop. My *for loop* structure: *(for variable initial limit increment body* ** *)* (define (fvar exp) (cadr exp)) (define (fstart exp) (car (cddr exp))) (define (flimit exp) (car (cdddr exp))) (define (fincr exp) (cadr (cdddr exp)))

[racket] feature request: support multi-steps for `range`

2014-05-04 Thread Mark Wallace
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

Re: [racket] FOR loop

2014-05-04 Thread Neil Van Dyke
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 should be a