Re: [racket] About modes (was: match in Advanced Student?)

2011-08-18 Thread Rodolfo Carvalho
Hello Jukka, I don't know to which extend my contribution is useful to the list, but I remembered about a post from Aza Raskin about modes: http://humanized.com/weblog/2006/12/07/is_visual_feedback_enough_why_modes_kill/ There might also be writings from Donald Norman on this subject. Still, I

Re: [racket] About modes

2011-08-18 Thread Stephen Bloch
On Aug 18, 2011, at 9:11 PM, Jukka Tuominen wrote: I see you use heavily different language modes for teaching in different phases. Usability-wise it's usually worth being careful with modes since they may be tricky for the users. I couldn't find much detailed information from Wikipedia ot

[racket] About modes (was: match in Advanced Student?)

2011-08-18 Thread Jukka Tuominen
Hi, About language/UI modes. Since my contribution to CS is thin due to lack of CS education, I hope I can contribute in usability instead, with some more background. I see you use heavily different language modes for teaching in different phases. Usability-wise it's usually worth being careful

Re: [racket] Searching for class which implements specific interface.

2011-08-18 Thread Robby Findler
In general, no, but in this case, I think you want to look at this page: http://docs.racket-lang.org/gui/Windowing_Classes.html Robby On Thu, Aug 18, 2011 at 5:55 PM, Daniil wrote: > Hello, is it possible to search (on docs.racket-lang.org) for class > which implements specific interface/extend

[racket] Focus of GUI frames opened from "racket"

2011-08-18 Thread Neil Toronto
On my machine (Linux) and apparently another (OS X), creating and showing a frame% from command-line "racket" doesn't always 1) put the window in the front; or 2) give the window focus. In fact, on my machine, it never gets focus, and *usually* (but not always) pops up behind the gnome-terminal

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Joan Arnaldich
Eli Barzilay writes: > I've finished an overhaul of the whole page. It's now more detailed > and more coherent. If you have any major components (TR, web-server, > Redex, etc), feel free to improve the text and add more stuff. I have > the page backed up, and even if it is deleted I will add

[racket] Searching for class which implements specific interface.

2011-08-18 Thread Daniil
Hello, is it possible to search (on docs.racket-lang.org) for class which implements specific interface/extends specific class? I was just messing around with Racket's amazing GUI library and wanted to see which classes implements a subwindow<%>. Thank you for your time. _

Re: [racket] PLaneT (Was: are people using untyped/snooze?)

2011-08-18 Thread Neil Van Dyke
Eli Barzilay wrote at 08/18/2011 05:40 PM: Two hours ago, Neil Van Dyke wrote: Over the years, several times I've mentioned security and stability issues involving PLaneT packages. Now I'm wondering whether, rather than trying to get all the security right in core Racket, it would be a lot

Re: [racket] heredoc syntax

2011-08-18 Thread Eli Barzilay
Two minutes ago, Jon Rafkind wrote: > > My issue is that first I try @{foo} and get the error "expected a > procedure, given a string". At which point I remember kevin telling > me off-hand how you (eli) had a trick to deal with these situations, > which was to put string-append between the @ and

Re: [racket] heredoc syntax

2011-08-18 Thread Jon Rafkind
On 08/18/2011 04:00 PM, Eli Barzilay wrote: Three minutes ago, Jon Rafkind wrote: Ok. For future reference this is how its done: #lang at-exp racket @string-append{ foo bar } Yeah, and you can use a more convenient name, indent the text, and/or the whole thing, and get the same result. For ex

Re: [racket] heredoc syntax

2011-08-18 Thread Eli Barzilay
Three minutes ago, Jon Rafkind wrote: > > Ok. For future reference this is how its done: > > #lang at-exp racket > @string-append{ > foo > bar > } Yeah, and you can use a more convenient name, indent the text, and/or the whole thing, and get the same result. For example: #lang at-exp racket

Re: [racket] Using get-pure-port

2011-08-18 Thread Eli Barzilay
Two hours ago, Shogo Yamazaki wrote: > Thanks for your help. > The way you suggested worked for me. > > By the way, I found that adding a line to the definition of > http-pipe-data in url-unit.rkt might resolve my problem either. > But I hardly understand what I'm doing. > > (define (http-pipe-da

Re: [racket] heredoc syntax

2011-08-18 Thread Jon Rafkind
On 08/18/2011 03:34 PM, Eli Barzilay wrote: 50 minutes ago, Jon Rafkind wrote: Whats the syntax for heredoc strings? I was surprised that I couldn't find documentation for the lexical structure of racket. I also grepped the source for 'heredoc' but didn't come up with anything. Don't use it, u

Re: [racket] PLaneT (Was: are people using untyped/snooze?)

2011-08-18 Thread Eli Barzilay
Two hours ago, Neil Van Dyke wrote: > > If you guys are also doing any work on PLaneT itself, one thing that > might be good to do at the same time is to make the mechanism that > handles PLaneT "require"s be pluggable by the user. > > Over the years, several times I've mentioned security and s

Re: [racket] heredoc syntax

2011-08-18 Thread Eli Barzilay
50 minutes ago, Jon Rafkind wrote: > Whats the syntax for heredoc strings? > > I was surprised that I couldn't find documentation for the lexical > structure of racket. I also grepped the source for 'heredoc' but > didn't come up with anything. Don't use it, use the Scribble syntax instead. > I

Re: [racket] Using get-pure-port

2011-08-18 Thread Danny Yoo
> By the way, I found that adding a line to the definition of > http-pipe-data in url-unit.rkt might resolve my problem either. > But I hardly understand what I'm doing. > > (define (http-pipe-data chunked? ip op) >  (if chunked? >      (http-pipe-chunk ip op) >      (begin >        (copy-port ip o

Re: [racket] heredoc syntax

2011-08-18 Thread Jon Rafkind
I would say the reader documentation is in an unfortunate place. I would prefer a section immediately under the 'racket reference' documentation. 1. Language Model 2. Reading something like that. yes/no? On 08/18/2011 02:49 PM, Jay McCarthy wrote: #

Re: [racket] heredoc syntax

2011-08-18 Thread Danny Yoo
> I was surprised that I couldn't find documentation for the lexical structure > of racket. I also grepped the source for 'heredoc' but didn't come up with > anything. This documentation should help: http://docs.racket-lang.org/reference/reader.html The search term "here string" should also

Re: [racket] heredoc syntax

2011-08-18 Thread Jay McCarthy
# Whats the syntax for heredoc strings? > > I was surprised that I couldn't find documentation for the lexical structure > of racket. I also g

[racket] heredoc syntax

2011-08-18 Thread Jon Rafkind
Whats the syntax for heredoc strings? I was surprised that I couldn't find documentation for the lexical structure of racket. I also grepped the source for 'heredoc' but didn't come up with anything. I like python's heredoc syntax -- triple quotes. """a heredoc string""", if such a thing could

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Eli Barzilay
7 hours ago, Stephen De Gabrielle wrote: > Hi, > > I just took a look at the Racket features page, and noticed a couple > of points that may be worth the effort. > > [forgive the rough nature, I've just thrown this together] > > http://en.wikipedia.org/wiki/Racket_features I've finished an over

Re: [racket] PLaneT (Was: are people using untyped/snooze?)

2011-08-18 Thread Jay McCarthy
That's something very do-able with the basic package system that will precede Planet 2.0. Jay On Thu, Aug 18, 2011 at 1:33 PM, Neil Van Dyke wrote: > Matthias Felleisen wrote at 08/16/2011 05:26 PM: >> >> We (Jay, Robby, Matthew, Eli, and I) have been thinking along these lines >> for a few week

Re: [racket] Using get-pure-port

2011-08-18 Thread Shogo Yamazaki
Thanks for your help. The way you suggested worked for me. By the way, I found that adding a line to the definition of http-pipe-data in url-unit.rkt might resolve my problem either. But I hardly understand what I'm doing. (define (http-pipe-data chunked? ip op) (if chunked? (http-pipe-ch

[racket] PLaneT (Was: are people using untyped/snooze?)

2011-08-18 Thread Neil Van Dyke
Matthias Felleisen wrote at 08/16/2011 05:26 PM: We (Jay, Robby, Matthew, Eli, and I) have been thinking along these lines for a few weeks. Robby is slowly putting the infrastructure into place for these things to happen eventually. -- Matthias If you guys are also doing any work on PLaneT

Re: [racket] match in Advanced Student?

2011-08-18 Thread Stephen Bloch
On Aug 17, 2011, at 6:12 PM, Prabhakar Ragde wrote: If it were up to me, I would take the built-in definition of posns out. I don't think being able to use `make-posn' for a few minutes before introducing `define-struct' is worth the hassle. On the other hand, I introduce "make-color" very

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Eli Barzilay
5 hours ago, Stephen De Gabrielle wrote: > Another avenue of interest my be the 'list of articles with > code/source' [...] I've created the category page, and added the category tag to the existing pages. Obviously, I've seen many pages with such small examples of variuos things, and added

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Sam Tobin-Hochstadt
Probably we should just license all those examples under a very permissive license. On Thu, Aug 18, 2011 at 2:22 PM, Robby Findler wrote: > You have my permission (not sure which ones I wrote exacty). > > Robby > > On Thursday, August 18, 2011, Joan Arnaldich wrote: >> Hi there, >> >> So adding

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Eli Barzilay
About a minute ago, Joan Arnaldich wrote: > Hi there, > > So adding the examples from the main page wasn't a good idea at > all. My fault. The following link: > > http://en.wikipedia.org/wiki/Wikipedia:FAQ/Copyright#Can_I_add_something_to_Wikipedia_that_I_got_from_somewhere_else > > states that

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Robby Findler
You have my permission (not sure which ones I wrote exacty). Robby On Thursday, August 18, 2011, Joan Arnaldich wrote: > Hi there, > > So adding the examples from the main page wasn't a good idea at > all. My fault. The following link: > > http://en.wikipedia.org/wiki/Wikipedia:FAQ/Copyright#Can

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Joan Arnaldich
Hi there, So adding the examples from the main page wasn't a good idea at all. My fault. The following link: http://en.wikipedia.org/wiki/Wikipedia:FAQ/Copyright#Can_I_add_something_to_Wikipedia_that_I_got_f rom_somewhere_else.3F states that content under a GNU only license is NOT compatible wit

[racket] Fwd: Using get-pure-port

2011-08-18 Thread Danny Yoo
(Sorry; forgot to reply-to-all; forwarding to the racket-users list as well) -- Forwarded message -- From: Danny Yoo Date: Thu, Aug 18, 2011 at 2:00 PM Subject: Re: [racket] Using get-pure-port To: Shogo Yamazaki On Thu, Aug 18, 2011 at 11:45 AM, Shogo Yamazaki wrote: > Hi, >

Re: [racket] Reading graph structure

2011-08-18 Thread Harry Spier
Many thanks, This explanation and the example from Ref. manual 3.9.8 Immutable Cyclic Data makes everything clearer. Example:> (let* ([ph (make-placeholder #f)] [x (cons 1 ph)]) (placeholder-set! ph x)(make-reader-graph x))#0= '(1 . #0#) > Subject: Re: [racket] Reading graph

Re: [racket] Reading graph structure

2011-08-18 Thread Hendrik Boom
On Thu, Aug 18, 2011 at 10:21:06AM -0400, Harry Spier wrote: > > I've done that and what displays is: > #0=(1 . #0#) > #0='(1 . #0#) > > Again I'm not clear why this doesn't try to produce an endlessly > recurring (1 . (1 . ( 1 ... list It does. But the racket implementers probably reali

[racket] Using get-pure-port

2011-08-18 Thread Shogo Yamazaki
Hi, I have a question about using get/post-pure-port. I'm using Racket v5.1.2.3 and FreeBSD 8.2. It seems tcp-port is still opened after I used get-pure-port. How can I close this? The code is below. (require net/url) (let ((in (get-pure-port (string->url "http://www.google.com/intl/en_com/image

Re: [racket] Reading graph structure

2011-08-18 Thread Matthias Felleisen
On Aug 18, 2011, at 10:21 AM, Harry Spier wrote: > I've done that and what displays is: > #0=(1 . #0#) > #0='(1 . #0#) > > Again I'm not clear why this doesn't try to produce an endlessly recurring (1 > . (1 . ( 1 ... list At this point you're entering philosophical grounds: is a cycl

Re: [racket] Reading graph structure

2011-08-18 Thread Harry Spier
Matthias wrote: > That is indeed a strange thing considering that set-cdr! is no longer a part > of the language :-) Yes indeed a very strange thing :-) > In these areas, read-syntax takes over. Enter > > (read) > > at the prompt. Type > > #0=(1 . #0#) > > into the input box that ap

Re: [racket] Typed racket puzzle (ii)

2011-08-18 Thread Norman Gray
Sam and Anthony, hello. On 2011 Aug 17, at 16:32, Sam Tobin-Hochstadt wrote: > No, that's not right. The objects in the category described in the > wikipedia article are *types*, not functions. I think I expressed myself badly. I think I'm less muddled than I may sound, but we're off-topic,

Re: [racket] Reading graph structure

2011-08-18 Thread Matthias Felleisen
On Aug 18, 2011, at 9:09 AM, Harry Spier wrote: > When I put (#1=100 #1# #1#) in either the definitions or interactions window > I get > > . read: #..= expressions not allowed in read-syntax mode In these areas, read-syntax takes over. Enter (read) at the prompt. Type #0=(1 . #0#

Re: [racket] Reading graph structure

2011-08-18 Thread Sam Tobin-Hochstadt
On Thu, Aug 18, 2011 at 9:09 AM, Harry Spier wrote: > Dear list members, > > Firstly thank you, for clarifying uninterned symbols. > > I've tried running the examples for reading graph structure in the reference > manual 12.6.16 in DrRacket. > > When I put (#1=100 #1# #1#) in either the definition

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Stephen De Gabrielle
Another avenue of interest my be the 'list of articles with code/source' Wikipedia:List of articles with C programs Wikipedia:List of articles with Java source code

[racket] Reading graph structure

2011-08-18 Thread Harry Spier
Dear list members, Firstly thank you, for clarifying uninterned symbols. I've tried running the examples for reading graph structure in the reference manual 12.6.16 in DrRacket. When I put (#1=100 #1# #1#) in either the definitions or interactions window I get . read: #..= expressions not

Re: [racket] Wikipedia article improvements

2011-08-18 Thread Stephen De Gabrielle
Hi, I just took a look at the Racket features page, and noticed a couple of points that may be worth the effort. [forgive the rough nature, I've just thrown this together] http://en.wikipedia.org/wiki/Racket_features It has the note: This article needs attention from an expert on the subject. S