Re: [racket-dev] Wikipedia page

2010-06-08 Thread Ryan Culpepper

Eli Barzilay wrote:

On Jun  8, Matthias Felleisen wrote:
Can't we just use the examples from our web site in a two-column format? 


I think that the expectation is for a more conventional kind of "hello
world" thing.  But given that in many repl-based languages that's
going to be just

  "hello world"

then it's probably best to look around in other pages.

(And it's definitely worth it to remove the gui thing -- it reminded
me of a gui hello-world thing for DevStudio.)


I liked the scheme/gui example (although it should be changed to 
racket/gui). I think the world example should either go or be rewritten 
as a self-contained racket program (add the necessary require).


Slideshow might be another good hello-world variant:

  #lang slideshow
  (slide (t "Hello world!"))
  (slide (t "Well, good-bye."))

--

Another thing to consider is do we want complete programs (executable 
with racket or gracket, use #lang) or do we want repl-pasteable 
examples? Trying to paste a #lang-based example into a racket repl would 
probably frustrate a casual reader who says "sounds cool, let's try that 
example."


Ryan
_
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Wikipedia page

2010-06-08 Thread Eli Barzilay
On Jun  8, Matthias Felleisen wrote:
> We don't have to be exactly like others, we're different. 

The wikipedia case is working under rules of a different body,
therefore we have to follow their rules.  Otherwise it won't be nice
to spend some work making some nice table of example and see it
evaporate by some admin because it doesn't adhere to wikipedia
guidelines.  Looking around will avoid that.

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Wikipedia page

2010-06-08 Thread Matthias Felleisen

We don't have to be exactly like others, we're different. 


On Jun 8, 2010, at 4:21 PM, Eli Barzilay wrote:

> On Jun  8, Matthias Felleisen wrote:
>> 
>> Can't we just use the examples from our web site in a two-column format? 
> 
> I think that the expectation is for a more conventional kind of "hello
> world" thing.  But given that in many repl-based languages that's
> going to be just
> 
>  "hello world"
> 
> then it's probably best to look around in other pages.
> 
> (And it's definitely worth it to remove the gui thing -- it reminded
> me of a gui hello-world thing for DevStudio.)
> 
> -- 
>  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
>http://barzilay.org/   Maze is Life!

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Wikipedia page

2010-06-08 Thread Eli Barzilay
On Jun  8, Matthias Felleisen wrote:
> 
> Can't we just use the examples from our web site in a two-column format? 

I think that the expectation is for a more conventional kind of "hello
world" thing.  But given that in many repl-based languages that's
going to be just

  "hello world"

then it's probably best to look around in other pages.

(And it's definitely worth it to remove the gui thing -- it reminded
me of a gui hello-world thing for DevStudio.)

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Wikipedia page

2010-06-08 Thread Matthias Felleisen

On Jun 8, 2010, at 3:28 PM, John Clements wrote:

> 1) In sentences such as "DrScheme is a part of PLT Scheme", I'm guessing this 
> should turn into "DrRacket is a part of the Racket project", or something 
> similar.


DrRacket is PLT's IDE for the Racket programming language. 


> 2) More generally, it appears that "PLT Scheme" should be replaced with 
> "Racket", meaning that the PLT disappears. Yes?


As Eli says. PLT remains as the name of 'us'. 

> 3) The examples on the wikipedia page are utterly loathsome, leaving the 
> reader with the impression that "hello world" requires ten lines of GUI 
> garbage.

Can't we just use the examples from our web site in a two-column format? 

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Wikipedia page

2010-06-08 Thread Eli Barzilay
On Jun  8, John Clements wrote:
> 
> Followup: I renamed DrScheme to DrRacket without incident.
> [...]

I changed two more references -- specifically, having a [[DrScheme]]
reference that goes back to the same place looked redundant.


> A couple of questions:
> 
> 1) In sentences such as "DrScheme is a part of PLT Scheme", I'm
>guessing this should turn into "DrRacket is a part of the Racket
>project", or something similar.

Yeah, that sounds reasonable.


> 2) More generally, it appears that "PLT Scheme" should be replaced
>with "Racket", meaning that the PLT disappears. Yes?

It should stay around since the group name is still PLT, no?


> 3) The examples on the wikipedia page are utterly loathsome, leaving
>the reader with the impression that "hello world" requires ten
>lines of GUI garbage.

Yeah, I had a similar reaction in the past.  That would be nice to
change too, if you have the energy to do so...

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Wikipedia page

2010-06-08 Thread John Clements

On Jun 8, 2010, at 11:44 AM, John Clements wrote:

> 
> On Jun 8, 2010, at 11:35 AM, Eli Barzilay wrote:
> 
>> On Jun  8, John Clements wrote:
>>> I've taken a first crack at creating a 
>>> 
>>> Racket (programming language)
>>> 
>>> page in wikipedia, simply by copying the first few chunks of the PLT
>>> Scheme page.
>> 
>> Thanks!
>> 
>> To explain what looks like an overexcited bang -- it was one of the
>> items in my todo list.  One thing that I've seen is that you dropped
>> .ss and .scm from the file suffixes, but I think that they should be
>> left in?  Maybe there's a way to say that they're not common suffixes
>> but related ones?
>> 
>> 
>>> FWIW, there's also a DrScheme page to update and presumably a whole
>>> pile of references to PLT scheme, membership in various categories,
>>> etc.
>> 
>> Right -- I think that the right way to do that is once the Racket page
>> has enough meat (= covers everything that the PLT Scheme page does),
>> then the PLT Scheme page should turn into a redirection to Racket, and
>> the Racket page would obviously have an entry about it being called
>> PLT Scheme until now.
>> 
>> Similarly, the DrScheme page should be renamed to DrRacket with a
>> forwarding thing and a note about the earlier name.
>> 
>> You've probably seen http://en.wikipedia.org/wiki/How_to_rename_a_page
>> right?
> 
> I took a look at that page, and our situation (the underlying project was 
> renamed) doesn't seem to fit their criteria, which all have to do with errors 
> in encyclopedization.  My guess is therefore that it's better to create a new 
> page, though I don't honestly know what the semantic differences between 
> creating a page and moving it are; the history will be lost[*], obviously, 
> but there may be other effects that make one preferable to the other.  It 
> looked to me like creating a new page was the "conservative" choice.
> 
>  I just took a look at this page
> 
> http://en.wikipedia.org/wiki/Wikipedia:Requested_moves
> 
> though, and one relevant example jumps out at me, which is the change from 
> "iPhone OS" to "iOS".  That was handled as a rename.
> 
> Okay, maybe a rename is the right way to go.

Followup: I renamed DrScheme to DrRacket without incident.  Deleting Racket 
(programming language) is harder, so I put in an admin request on this, and 
carried on editing the PLT Scheme content to refer to Racket.

A couple of questions:

1) In sentences such as "DrScheme is a part of PLT Scheme", I'm guessing this 
should turn into "DrRacket is a part of the Racket project", or something 
similar.

2) More generally, it appears that "PLT Scheme" should be replaced with 
"Racket", meaning that the PLT disappears. Yes?

3) The examples on the wikipedia page are utterly loathsome, leaving the reader 
with the impression that "hello world" requires ten lines of GUI garbage.

John



smime.p7s
Description: S/MIME cryptographic signature
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] Wikipedia page

2010-06-08 Thread John Clements

On Jun 8, 2010, at 11:35 AM, Eli Barzilay wrote:

> On Jun  8, John Clements wrote:
>> I've taken a first crack at creating a 
>> 
>> Racket (programming language)
>> 
>> page in wikipedia, simply by copying the first few chunks of the PLT
>> Scheme page.
> 
> Thanks!
> 
> To explain what looks like an overexcited bang -- it was one of the
> items in my todo list.  One thing that I've seen is that you dropped
> .ss and .scm from the file suffixes, but I think that they should be
> left in?  Maybe there's a way to say that they're not common suffixes
> but related ones?
> 
> 
>> FWIW, there's also a DrScheme page to update and presumably a whole
>> pile of references to PLT scheme, membership in various categories,
>> etc.
> 
> Right -- I think that the right way to do that is once the Racket page
> has enough meat (= covers everything that the PLT Scheme page does),
> then the PLT Scheme page should turn into a redirection to Racket, and
> the Racket page would obviously have an entry about it being called
> PLT Scheme until now.
> 
> Similarly, the DrScheme page should be renamed to DrRacket with a
> forwarding thing and a note about the earlier name.
> 
> You've probably seen http://en.wikipedia.org/wiki/How_to_rename_a_page
> right?

I took a look at that page, and our situation (the underlying project was 
renamed) doesn't seem to fit their criteria, which all have to do with errors 
in encyclopedization.  My guess is therefore that it's better to create a new 
page, though I don't honestly know what the semantic differences between 
creating a page and moving it are; the history will be lost[*], obviously, but 
there may be other effects that make one preferable to the other.  It looked to 
me like creating a new page was the "conservative" choice.

 I just took a look at this page

http://en.wikipedia.org/wiki/Wikipedia:Requested_moves

though, and one relevant example jumps out at me, which is the change from 
"iPhone OS" to "iOS".  That was handled as a rename.

Okay, maybe a rename is the right way to go.

John



[*]Not completely lost, of course, because it still lives on the old PLT Scheme 
page.

> 
> -- 
>  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
>http://barzilay.org/   Maze is Life!



smime.p7s
Description: S/MIME cryptographic signature
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] Wikipedia page

2010-06-08 Thread Eli Barzilay
On Jun  8, John Clements wrote:
> I've taken a first crack at creating a 
> 
> Racket (programming language)
> 
> page in wikipedia, simply by copying the first few chunks of the PLT
> Scheme page.

Thanks!

To explain what looks like an overexcited bang -- it was one of the
items in my todo list.  One thing that I've seen is that you dropped
.ss and .scm from the file suffixes, but I think that they should be
left in?  Maybe there's a way to say that they're not common suffixes
but related ones?


> FWIW, there's also a DrScheme page to update and presumably a whole
> pile of references to PLT scheme, membership in various categories,
> etc.

Right -- I think that the right way to do that is once the Racket page
has enough meat (= covers everything that the PLT Scheme page does),
then the PLT Scheme page should turn into a redirection to Racket, and
the Racket page would obviously have an entry about it being called
PLT Scheme until now.

Similarly, the DrScheme page should be renamed to DrRacket with a
forwarding thing and a note about the earlier name.

You've probably seen http://en.wikipedia.org/wiki/How_to_rename_a_page
right?

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


[racket-dev] Wikipedia page

2010-06-08 Thread John Clements
I've taken a first crack at creating a 

Racket (programming language)

page in wikipedia, simply by copying the first few chunks of the PLT Scheme 
page.

This is a bit experimental, because it may be that Wikipedia has an existing 
mechanism for renaming, so I figured I'd just spend five minutes on it and wait 
for Wikipedia admins to tell me if I'm doing something redundant.

FWIW, there's also a DrScheme page to update and presumably a whole pile of 
references to PLT scheme, membership in various categories, etc.

John
 

smime.p7s
Description: S/MIME cryptographic signature
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

[racket-dev] define-for-syntax optional/keyword arguments

2010-06-08 Thread Casey Klein
`define-for-syntax' doesn't allow optional or keyword arguments,
although the documentation suggests it should.

I tried to fix this myself, but I'm getting a mysterious compile error.

spaghetti:plt clklein$ git diff
diff --git a/collects/racket/private/kw.rkt b/collects/racket/private/kw.rkt
index 136ff9e..a926bd6 100644
--- a/collects/racket/private/kw.rkt
+++ b/collects/racket/private/kw.rkt
@@ -13,6 +13,7 @@

   (#%provide new-lambda new-λ
  new-define
+ new-define-for-syntax
  new-app
  make-keyword-procedure
  keyword-apply
@@ -698,7 +699,16 @@
   (normalize-definition stx #'new-lambda #t #t)])
   (quasisyntax/loc stx
 (define #,id #,rhs
+
+  ;; 
+  ;; `define-for-syntax' with keyword arguments

+  (define-syntax (new-define-for-syntax stx)
+(let-values ([(id rhs)
+  (normalize-definition stx #'new-lambda #t #t)])
+  (quasisyntax/loc stx
+(define-for-syntax #,id #,rhs
+
   ;; 
   ;; `#%app' with keyword arguments

diff --git a/collects/racket/private/pre-base.rkt b/collects/racket/private/pre-
index a9326cd..e03e83d 100644
--- a/collects/racket/private/pre-base.rkt
+++ b/collects/racket/private/pre-base.rkt
@@ -5,7 +5,7 @@
   (#%require (for-syntax '#%kernel))
   (#%require "more-scheme.rkt"
  "misc.rkt"
- (all-except "define.rkt" define)
+ (all-except "define.rkt" define define-for-syntax)
  "letstx-scheme.rkt"
  "kw.rkt"
  "define-struct.rkt"
@@ -84,6 +84,7 @@
  (rename new-lambda lambda)
  (rename new-λ λ)
  (rename new-define define)
+ (rename new-define-for-syntax define-for-syntax)
  (rename new-app #%app)
  (rename new-apply apply)
  new-apply-proc ; for access by Typed Racket
spaghetti:plt clklein$ raco setup
raco setup: bootstrapping from source...
collects/racket/private/kw.rkt:708:46: compile: unbound identifier in
module (in phase 1, transformer environment) in: new-lambda

 === context ===
/Users/clklein/git/plt/collects/setup/main.rkt:111:24
loop
/Users/clklein/git/plt/collects/setup/main.rkt: [running body]
/Users/clklein/git/plt/collects/raco/main.rkt: [running body]

I don't get the error when I `racket' the files I changed.

spaghetti:plt clklein$ racket collects/racket/private/pre-base.rkt
spaghetti:plt clklein$

Is there some bootstrapping trick I need to know?
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

[racket-dev] test-engine/racket-tests

2010-06-08 Thread Sam Tobin-Hochstadt
I've just pushed a renaming of the `test-engine' library to use
`racket' instead of `scheme' in the names. The current names are still
there for compatibility.  If anyone notices any problems with this,
let me know.

-- 
sam th
sa...@ccs.neu.edu
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Contract problem

2010-06-08 Thread Matthias Felleisen


Stevie was looking into making some of these reports pin point
the problem more precisely after Matthew was here.

This should be considered a unit test for Stevie's efforts.


On Jun 8, 2010, at 1:12 AM, Eli Barzilay wrote:


I just ran into some problem that might be in the contract system, or
more likely in the xml collection (or maybe in both).  I basically ran
some code that I was editing, and got the lovely error message below.
IIUC, it says that xexpr is broken, which is potentially one problem.
It's probably not strict enough about what it accepts, since the
problem was basically due to my code using # as the value of an
attribute.  But the second problem is this error message shows the
"Context" as a dump of the whole xexpr -- pretty printed across ~4500
lines.


/download/chronology/index.ss: running...
/xml/private/xexpr.rkt:
 (file
  /home/scheme/plt/collects/xml/private/syntax.rkt)
broke the contract (-> xexpr? string?) on xexpr->string given to
 (file
  /home/scheme/iplt/web/old/common/layout.ss)
; Not an Xexpr. Expected a string, given #

Context:
(html
...126 lines...
((href "http://download.plt-scheme.org/chronology/racket5.0.html 
"))

(font ((color #)) "Racket" nbsp (tt () "5.0"))
...4300 lines...
 "\n"))

=== context ===
/home/scheme/plt/collects/racket/contract/private/blame.rkt:54:0:  
raise-blame-error
/home/scheme/plt/collects/racket/private/more-scheme.rkt:173:2:  
select-handler/no-breaks

/home/scheme/plt/collects/racket/contract/private/arrow.rkt:1434:3
/home/scheme/iplt/web/old/common/layout.ss:44:0: xexpr->string*
/home/scheme/iplt/web/old/download/chronology/index.ss:66:0: run
/home/scheme/iplt/web/old/common/utils.ss:8:50: run-file
/home/scheme/iplt/web/old/common/build.ss:20:2: for-loop
/home/scheme/iplt/web/old/common/build.ss:20:2: for-loop
/home/scheme/plt/collects/racket/private/map.rkt:45:11: for-each
/home/scheme/iplt/web/old/common/utils.ss:8:50: build


--
 ((lambda (x) (x x)) (lambda (x) (x x)))  Eli  
Barzilay:
   http://barzilay.org/   Maze is  
Life!

_
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/dev


_
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Contract problem

2010-06-08 Thread Jay McCarthy
You are using a function that uses the pretty-xexpr/c contract that
exists so the Web Server can display those beautiful errors for users
who are learning xexprs.

Jay

On Mon, Jun 7, 2010 at 11:12 PM, Eli Barzilay  wrote:
> I just ran into some problem that might be in the contract system, or
> more likely in the xml collection (or maybe in both).  I basically ran
> some code that I was editing, and got the lovely error message below.
> IIUC, it says that xexpr is broken, which is potentially one problem.
> It's probably not strict enough about what it accepts, since the
> problem was basically due to my code using # as the value of an
> attribute.  But the second problem is this error message shows the
> "Context" as a dump of the whole xexpr -- pretty printed across ~4500
> lines.
>
>
> /download/chronology/index.ss: running...
> /xml/private/xexpr.rkt:
>  (file
>   /home/scheme/plt/collects/xml/private/syntax.rkt)
>  broke the contract (-> xexpr? string?) on xexpr->string given to
>  (file
>   /home/scheme/iplt/web/old/common/layout.ss)
> ; Not an Xexpr. Expected a string, given #
>
> Context:
> (html
> ...126 lines...
>         ((href "http://download.plt-scheme.org/chronology/racket5.0.html";))
>         (font ((color #)) "Racket" nbsp (tt () "5.0"))
> ...4300 lines...
>  "\n"))
>
>  === context ===
> /home/scheme/plt/collects/racket/contract/private/blame.rkt:54:0: 
> raise-blame-error
> /home/scheme/plt/collects/racket/private/more-scheme.rkt:173:2: 
> select-handler/no-breaks
> /home/scheme/plt/collects/racket/contract/private/arrow.rkt:1434:3
> /home/scheme/iplt/web/old/common/layout.ss:44:0: xexpr->string*
> /home/scheme/iplt/web/old/download/chronology/index.ss:66:0: run
> /home/scheme/iplt/web/old/common/utils.ss:8:50: run-file
> /home/scheme/iplt/web/old/common/build.ss:20:2: for-loop
> /home/scheme/iplt/web/old/common/build.ss:20:2: for-loop
> /home/scheme/plt/collects/racket/private/map.rkt:45:11: for-each
> /home/scheme/iplt/web/old/common/utils.ss:8:50: build
>
>
> --
>          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                    http://barzilay.org/                   Maze is Life!
> _
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev
>



-- 
Jay McCarthy 
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay

"The glory of God is Intelligence" - D&C 93
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev