Re: [racket] scribble problem?

2011-09-18 Thread Veer
Code is available here https://github.com/veer-public/OAuth-2.0 . Thanks. On Sat, Sep 17, 2011 at 7:55 PM, Matthew Flatt wrote: > I think we need "web-flow/web-server-flow.rkt" and its dependencies to > diagnose this problem. Is that code available somewhere? > > At Sun, 11 Sep 2011 10:10:44 +

Re: [racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Luke Vilnis
Well, it does kinda work in the REPL. If you use check-expect in the REPL, then use (test), it will display the results for running the check forms declared _in_ the REPL, just not the ones in the source. It just seems to start with a clean slate. On Sun, Sep 18, 2011 at 9:29 PM, Stephen Bloch wr

Re: [racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Stephen Bloch
On Sep 18, 2011, at 9:22 PM, Luke Vilnis wrote: Thanks guys, that works! Still, it's pretty confusing that running (test) from the repl does not work, only inserting it at the end of the file. It would be nice to mention that in the docs, something like: "Note that the check forms only r

Re: [racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Luke Vilnis
Thanks guys, that works! Still, it's pretty confusing that running (test)from the repl does not work, only inserting it at the end of the file. It would be nice to mention that in the docs, something like: "Note that the check forms only register checks to be performed. The checks are actually run

Re: [racket] History question about ?

2011-09-18 Thread Charlie Turner
On 19/09/11 01:56, Jon Zeppieri wrote: That convention, according to Richard Gabriel, came from Muddle/MDL (as did Zork) [page 11]: http://www.dreamsongs.com/Files/HOPL2-Uncut.pdf Thanks Jon, that's cleared an argument up for me. :-) Charlie. _

Re: [racket] History question about ?

2011-09-18 Thread Jon Zeppieri
On Sun, Sep 18, 2011 at 9:07 PM, Jon Zeppieri wrote: > On Sun, Sep 18, 2011 at 8:56 PM, Jon Zeppieri wrote: >> That convention, according to Richard Gabriel... > > (Guy Steel and Richard Gabriel, I mean.) ^e Good thing I don't write bibliographies anymore. _

Re: [racket] History question about ?

2011-09-18 Thread Jon Zeppieri
On Sun, Sep 18, 2011 at 8:56 PM, Jon Zeppieri wrote: > That convention, according to Richard Gabriel... (Guy Steel and Richard Gabriel, I mean.) _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] History question about ?

2011-09-18 Thread Jon Zeppieri
That convention, according to Richard Gabriel, came from Muddle/MDL (as did Zork) [page 11]: http://www.dreamsongs.com/Files/HOPL2-Uncut.pdf -Jon On Sun, Sep 18, 2011 at 8:42 PM, Charlie Turner wrote: > Common Lisp's convention w.r.t predicate names appears to be all about the p > or -p suffix

[racket] History question about ?

2011-09-18 Thread Charlie Turner
Common Lisp's convention w.r.t predicate names appears to be all about the p or -p suffixes. My question is: Did older lisps use the '?' convention before CL, or was Scheme the first to conventionalise the use of ? in predicates? Sorry for the off-topic question, I couldn't find any definitive

Re: [racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Stephen Bloch
On Sep 18, 2011, at 8:21 PM, Luke Vilnis wrote: I was wondering how to get test-engine working with #lang, or non- student languages in general. I tried something like this: #lang racket (require test-engine/racket-tests) (check-expect 12 (+ 6 7)) ;;sic But no luck. I also tried it with (req

Re: [racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Nadeem Abdul Hamid
Try putting (test) at the very bottom of the file in which you have your check-expect's. On Sun, Sep 18, 2011 at 8:21 PM, Luke Vilnis wrote: > Hi everybody, > I was wondering how to get test-engine working with #lang, or non-student > languages in general. I tried something like this: > #lang rac

[racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Luke Vilnis
Hi everybody, I was wondering how to get test-engine working with #lang, or non-student languages in general. I tried something like this: #lang racket (require test-engine/racket-tests) (check-expect 12 (+ 6 7)) ;;sic But no luck. I also tried it with (require test-engine/racket-gui), but I'm gu

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Eli Barzilay
I started this as some quick comments, but it wrote itself into a long-winded explanation of why what Racket does is following the Lisp tradition *more* closely than other Lisps. Feel free to skip if you're not into meta-meta-syntax discussions... Two hours ago, Danny Yoo wrote: > > So there's

Re: [racket] Offtopic: Learning SML

2011-09-18 Thread Grant Rettke
On Sun, Sep 18, 2011 at 5:31 PM, John Clements wrote: > My impression is that ocaml is much more actively developed & maintained that > SML. > Furthermore, having used both (2-3K in each?), I believe that the only > differences you'll > encounter early will be ocaml's single semicolon rather tha

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Ivanyi Peter
Hi All, Just my two cents. :-) I am coming from the "original Lisp" point of view as well.At the beginning of the discussion I have not undertood any of the answers. They were"very cryptic" to me as well, but I have to say that these two papers made clear whatis the position of DrRacket and I un

Re: [racket] Where is "2htdp/web-io.rkt" ?

2011-09-18 Thread Todd O'Bryan
Whoops. Looks like it's not there. As Matthias notes, the Second Edition is a work in progress and that module either isn't finished or didn't make it into the latest build. You might try one of the nightly builds, as I think the latest edition of the book was a little behind the latest build of Dr

Re: [racket] Offtopic: Learning SML

2011-09-18 Thread John Clements
On Sep 18, 2011, at 10:36 AM, Grant Rettke wrote: > Hi, > > Over the years I've noticed on-list that comments are made about OCaml > and Haskell and abstract data types. > > It seems like it would be fun to learn more about this stuff; and I > guessed that learning SML would be a nice place to

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Stephen Bloch
On Sep 18, 2011, at 4:41 PM, Racket Noob wrote: > Ok, maybe this is not something that's important in other programming > languages, but it *is* important in lisps. As a lisp educator, how can you > *not* to teach this fundamental fact about lisp? Two questions: 1) How many people here are Li

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Danny Yoo
[CCing the Racket mailing list] > Yes, I got this to work. But, what if I don't want to use DrRacket, but just > pure old console Racket.exe instead? Or emacs? Oh! Then it should just print like Lisp mode, if I remember correctly. Give me a sec; let me double check that. ;

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Danny Yoo
> Such a cold community. :( > I give up. I'm sorry for bothering you with my bad english and stupidity, > I'll never post to this group again. Hello! Whoa! I think you are reading a lot more aggression out of those replies than what actually exists. Your english is fine; no one has made a singl

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread John Clements
On Sep 18, 2011, at 2:01 PM, Racket Noob wrote: > Such a cold community. :( Cold? No way! We're *hot*. That is: we're eager to discuss, and eager to argue. If anything, we're holding back, to avoid making you angry. Maybe we should have held back a bit more? I know it can feel a bit lonely w

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Robby Findler
FWIW, I don't think anyone was bothered (only that we have a technical disagreement) and I'm sorry to see you go. Best wishes, Robby 2011/9/18 Racket Noob : > Such a cold community. :( > I give up. I'm sorry for bothering you with my bad english and stupidity, > I'll never post to this group agai

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Neil Van Dyke
Racket Noob wrote at 09/18/2011 04:41 PM: Ok, maybe this is not something that's important in other programming languages, but it *is* important in lisps. As a lisp educator, how can you *not* to teach this fundamental fact about lisp? To me, speaking of real use of the language, it seems a lo

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
Such a cold community. :( I give up. I'm sorry for bothering you with my bad english and stupidity, I'll never post to this group again. > From: s...@cs.brown.edu > Date: Sun, 18 Sep 2011 16:47:45 -0400 > Subject: Re: [racket] Quoted expressions in #lang racket > To: racketn...@hotmail.com > CC

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
> Ok, maybe this is not something that's important in other programming > languages, but it *is* important in lisps. As a lisp educator, how can you > *not* to teach this fundamental fact about lisp? It's funny that here you're berating Robby, who's put more time into different ways of printing th

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Robby Findler
2011/9/18 Racket Noob : >> FWIW, as one PL educator, I don't find that to be something I wish to >> teach to the students who are beginning to learn what is important >> about programming languages. I also don't think that a list is a >> particularly good representation for a function application i

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
> FWIW, as one PL educator, I don't find that to be something I wish to > teach to the students who are beginning to learn what is important > about programming languages. I also don't think that a list is a > particularly good representation for a function application in an > implementation and a

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Robby Findler
2011/9/18 Racket Noob : > I think beginner should understand that list is basic lisp notion which > serves (at least) two purposes: > > 1) list as data: as in (1 2 3) or as in whole lisp program > > or > > 2) list as expression denoting function application: as in (+ 1 2) FWIW, as one PL educator,

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
We are not teaching Lisp. We're teaching Racket. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
> I kindly suggest the thought that omitting the quote is precisely what > makes things harder for beginners. It seems to suggest to the > untrained that REPL is returning something that is not a value. As > Matthias and others have pointed out, you can not take the "value" (1 > 2 3) and use it s

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Marco Morazan
2011/9/18 Racket Noob : > >  You can't compute (car (1 2 3)) because before car even begin, it's > parameter, list (1 2 3) must be evaluated, but 1 is not a procedure name. It > is different than in (quote (1 2 3)) where such evaluation doesn't take > place. > Yes, so does that not alert you that

[racket] Offtopic: Learning SML

2011-09-18 Thread Prabhakar Ragde
Grant Rettke wrote: Are _ML for the Working Programmer_ and _Elements of ML Programming, ML97_ a good place to start? I am a great fan of "Working Programmer", not of "Elements". Quite apart from its clear and sensible treatment of SML, "Working Programmer" has many case studies that will b

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Richard Cleis
On Sep 18, 2011, at 7:45 AM, Racket Noob wrote: > > > You keep thinking (1 2 3) is the canonical form of a list. It is > > not. It's just a particular *print representation* of list. So is > > # or one of the many alternatives Eli proposed. > > > > Oh, I understand that. It's just that I don'

[racket] Where is "2htdp/web-io.rkt" ?

2011-09-18 Thread Racket Noob
Here http://www.ccs.neu.edu/home/matthias/HtDP2e/i2-3.html i found this:"You can use the function show-in-browser from "2htdp/web-io.rkt" to display the result of functions such as my-first-web-page in a web browser". Unfortunately, I cannot find web-io.rkt nowhere in Racket, version 5.1.3.

Re: [racket] Off topic: A curriculum (books, papers, essays) for how to design and implement compilers and interpreters?

2011-09-18 Thread Charlie Turner
On 18/09/11 18:27, Grant Rettke wrote: If you could compose the perfect course of reading (books, papers, essays) for a student to follow to learn how to design and implement compilers and interpreters what would it look like? More generally (in the scope of PLT), I've found the following resourc

Re: [racket] Dr. Racket for FPGA development

2011-09-18 Thread Tony Garnock-Jones
On 2011-09-17 1:50 AM, Neil Van Dyke wrote: > [*] I believe that there is already a more ambitious project involving > Racket and MIPS It's not super ambitious yet in any MIPS-specific direction. We're running Racket on our little MIPS machines using the plain C interpreter, without the benefit of

Re: [racket] Offtopic: Learning SML

2011-09-18 Thread Neil Van Dyke
This is prompted by Shriram's mentioning ML and coyly not mentioning PLAI? If you want to learn more about interpreting programming languages, why not start with PLAI, then go from there. -- http://www.neilvandyke.org/ _ For list-related adminis

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
> It's just that I don't understand why you (i.e. > Racket implementers) choose Racket by default prints list this > way (different than all other lisps). I think this choice can confuse > [...] users who switches from different lisp > implementations [...] Then it nicely accomplishes the task of

Re: [racket] Off topic: A curriculum (books, papers, essays) for how to design and implement compilers and interpreters?

2011-09-18 Thread William Turtle
> Hi, > > If you could compose the perfect course of reading (books, papers, > essays) for a student to follow to learn how to design and implement > compilers and interpreters what would it look like? Some students at Brown did a group independent study on compilers using ML last spring. Their s

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Matthias Felleisen
Just because Lisp got it wrong for 22+ years and most Lisps are still doing it wrong, we don't have to continue making the same mistake. Long live 2Lisp, 3Lisp, and all other rational Lisps. _ For list-related administrative tasks: http://list

Re: [racket] Off topic: A curriculum (books, papers, essays) for how to design and implement compilers and interpreters?

2011-09-18 Thread Hendrik Boom
On Sun, Sep 18, 2011 at 12:27:29PM -0500, Grant Rettke wrote: > Hi, > > If you could compose the perfect course of reading (books, papers, > essays) for a student to follow to learn how to design and implement > compilers and interpreters what would it look like? One good elementary text, which g

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
> You keep thinking (1 2 3) is the canonical form of a list. It is > not. It's just a particular *print representation* of list. So is > # or one of the many alternatives Eli proposed. > Oh, I understand that. It's just that I don't understand why you (i.e. Racket > implementers) choose Racke

[racket] Offtopic: Learning SML

2011-09-18 Thread Grant Rettke
Hi, Over the years I've noticed on-list that comments are made about OCaml and Haskell and abstract data types. It seems like it would be fun to learn more about this stuff; and I guessed that learning SML would be a nice place to start because it is stable and seemed to be used by educators a lo

Re: [racket] Off topic: A curriculum (books, papers, essays) for how to design and implement compilers and interpreters?

2011-09-18 Thread Shriram Krishnamurthi
It depends on what kinds of compilers/interpreters they were trying to build. A course of study for Fortran would like quite different from one for ML would look quite different from one for JavaScript (though there are of course many overlaps). Shriram ___

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
You keep thinking (1 2 3) is the canonical form of a list. It is not. It's just a particular *print representation* of list. So is # or one of the many alternatives Eli proposed. Your attempt to use an interpreter model is commendable but falls short. That is because you only described the REA

[racket] Off topic: A curriculum (books, papers, essays) for how to design and implement compilers and interpreters?

2011-09-18 Thread Grant Rettke
Hi, If you could compose the perfect course of reading (books, papers, essays) for a student to follow to learn how to design and implement compilers and interpreters what would it look like? Why I am asking: you guys are skilled educators and master computer scientists, and I feel like both are

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
You can't compute (car (1 2 3)) because before car even begin, it's parameter, list (1 2 3) must be evaluated, but 1 is not a procedure name. It is different than in (quote (1 2 3)) where such evaluation doesn't take place. > Date: Sun, 18 Sep 2011 12:05:20 -0500 > From: gret...@acm.org > To:

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Grant Rettke
On Sun, Sep 18, 2011 at 11:41 AM, Matthias Felleisen wrote: > > Mr Noob: if (1 2 3) is a value, why can't I compute (car (1 2 3)). 4 is a > value and I can compute (+ 4 3). #t is a value and I can compute (not #t). > Why do you insist that I cannot compute with (1 2 3) if it is a value? Maybe R

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
Sorry Shriram, i didn't mean to insult you or anyone else, but my poor english prevents me to express myself clearly. Still, i will try to explain what bothers me with the way Racket prints quoted expressions and I hope that you'll understand what i want to say: Suppose that we enter expressio

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Matthias Felleisen
Mr Noob: if (1 2 3) is a value, why can't I compute (car (1 2 3)). 4 is a value and I can compute (+ 4 3). #t is a value and I can compute (not #t). Why do you insist that I cannot compute with (1 2 3) if it is a value? _ For list-related admini

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Eli Barzilay
20 minutes ago, Racket Noob wrote: > > Saying that (quote (1 2 3)) evaluates to (quote (1 2 3)) [instead to > (1 2 3)] is the same nonsanse to me like saying that (+ 1 2) > evaluates to (+ 1 2) [instead to 3]. Yet another view: (+ 1 2) evaluates to 3 is nonsense, it really evaluates to three. (

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread John Clements
On Sep 18, 2011, at 9:12 AM, Racket Noob wrote: > Saying that (quote (1 2 3)) evaluates to (quote (1 2 3)) [instead to (1 2 3)] > is the same nonsanse to me like saying that (+ 1 2) evaluates to (+ 1 2) > [instead to 3]. Be careful with words like "nonsense" :). What does 3 evaluate to? 3

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
I used different words than Matthias because we were trying to offer somewhat different explanations of what is happening. You chose to use his words in response to mine, which only confuses things further. (There is, incidentally, a good reason why (+ 1 2) could, but does not, evaluate to (+ 1 2

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
Saying that (quote (1 2 3)) evaluates to (quote (1 2 3)) [instead to (1 2 3)] is the same nonsanse to me like saying that (+ 1 2) evaluates to (+ 1 2) [instead to 3]. > From: s...@cs.brown.edu > Date: Sun, 18 Sep 2011 11:15:41 -0400 > Subject: Re: [racket] Quoted expressions in #lang racket > T

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
Yep, that's what he's saying. I know why you're confused. Let me see if I can help. Here's an input program: '(1 2 3) Now be careful to make the following distinction: - what it computes - what it prints What it computes is a list with three values. There are at least three different ways

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
> >> In Common Lisp or Clojure REPL, expression '(1 2 3) evaluates to (1 2 3). > > > No it doesn't. In CL and Clojure, '(1 2 3) evaluates to '(1 2 3) and then the > printer turns it into (1 2 3). > Wait a minute, I dont get it! You are saying that (quote (1 2 3)) evaluates to (quote (1 2

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Matthias Felleisen
On Sep 18, 2011, at 10:34 AM, Grant Rettke wrote: > 2011/9/18 Racket Noob : >> In Common Lisp or Clojure REPL, expression '(1 2 3) evaluates to (1 2 3). No it doesn't. In CL and Clojure, '(1 2 3) evaluates to '(1 2 3) and then the printer turns it into (1 2 3). Now imagine you wish to experi

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Matthew Flatt
At Sun, 18 Sep 2011 16:15:58 +0200, Racket Noob wrote: > In Common Lisp or Clojure REPL, expression '(1 2 3) evaluates to (1 2 3). > But in #lang racket the same expression evaluates to '(1 2 3). > Why? In Racket, as in Common Lisp and Clojure, the expression

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Grant Rettke
2011/9/18 Racket Noob : > In Common Lisp or Clojure REPL, expression '(1 2 3) evaluates to (1 2 3). > But in #lang racket the same expression evaluates to '(1 2 3). Why? In the bottom left hand of the screen in DrRacket click the "Choose Language" dropdown, "Use the language declared in source" sh

[racket] Quoted expressions in #lang racket

2011-09-18 Thread Racket Noob
In Common Lisp or Clojure REPL, expression '(1 2 3) evaluates to (1 2 3). But in #lang racket the same expression evaluates to '(1 2 3). Why? _ For list-related administrative tasks: http://lists.racket-l

Re: [racket] Datalog suitable for an accounts package?

2011-09-18 Thread Mark Carter
Fascinating. Thanks for the link. I have a lot - and I do mean a lot - to learn about it. I tried putting in some simple "facts", and noted how the querying worked. Oh my. It was a bit of an eye-opener. I see what you mean about the querying. It's as if a lot of what is in the developers "domai

Re: [racket] Datalog suitable for an accounts package?

2011-09-18 Thread Wojciech Kaczmarek
Hi! You can use Datalog or Racklog. In order to decide or just feel comfortable with any of them it could be beneficial for you to grasp some basics of Prolog; here's a decent online material: http://www.learnprolognow.org/ Speaking of structures: you don't have to name the fields. Facts you stat

[racket] Datalog suitable for an accounts package?

2011-09-18 Thread Mark Carter
I've been in the process of writing a little financial accounts package in Racket. I'm wondering if, instead of writing a lot of scheme code, a lot of funtionality could be more expressively and concisely be written in Datalog. I've never used Datalog before, nor Prolog, but I know it's somethin