* Narrow comment on plot example, enable datalog example & revised blurb.
* Minor typo in new-name.rkt * Minor update to the menu item name for submitting bugs
This commit is contained in:
parent
58afb93a17
commit
626627fcc7
|
@ -172,9 +172,10 @@
|
||||||
#:extra-body-attrs `(onLoad: "initBugData();")]{
|
#:extra-body-attrs `(onLoad: "initBugData();")]{
|
||||||
@p[style: '("padding: 5px; color: #a00; background-color: #ffe;"
|
@p[style: '("padding: 5px; color: #a00; background-color: #ffe;"
|
||||||
" border: 1px solid; font-weight: bold;")]{
|
" border: 1px solid; font-weight: bold;")]{
|
||||||
If you can, please use the Bug Report item in DrRacket's Help menu. It
|
If you can, please use the “Submit Bug Report” item in DrRacket's Help
|
||||||
works better than this page, because it helps you supply precise
|
menu. It works better than this page, because it helps you supply
|
||||||
information about your Racket installation and working environment.}
|
precise information about your Racket installation and working
|
||||||
|
environment.}
|
||||||
@p{@strong{Note:} Bug reports for PLaneT packages are submitted on the
|
@p{@strong{Note:} Bug reports for PLaneT packages are submitted on the
|
||||||
@a[href: planet-bugs]{PLaneT server}.}
|
@a[href: planet-bugs]{PLaneT server}.}
|
||||||
@p{Before submitting a bug report, you may wish to:
|
@p{Before submitting a bug report, you may wish to:
|
||||||
|
|
|
@ -166,8 +166,8 @@
|
||||||
@desc{This program uses the @elemcode{scribble/base} language for
|
@desc{This program uses the @elemcode{scribble/base} language for
|
||||||
generating documents using a prose-friendly syntax.})
|
generating documents using a prose-friendly syntax.})
|
||||||
(graphical-example
|
(graphical-example
|
||||||
@code{#lang racket ; draw a graph of cos and deriv^3(cos)
|
@code{#lang racket ; draw a graph of cos
|
||||||
(require plot)
|
(require plot) ; and deriv^3(cos)
|
||||||
(define ((deriv f) x)
|
(define ((deriv f) x)
|
||||||
(/ (- (f x) (f (- x 0.001))) 0.001))
|
(/ (- (f x) (f (- x 0.001))) 0.001))
|
||||||
(define (thrice f) (lambda (x) (f (f (f x)))))
|
(define (thrice f) (lambda (x) (f (f (f x)))))
|
||||||
|
@ -196,16 +196,19 @@
|
||||||
@desc{Using the FFI means that you're not limited to using Racket
|
@desc{Using the FFI means that you're not limited to using Racket
|
||||||
libraries: pulling out a foreign function is easy, and can even be done
|
libraries: pulling out a foreign function is easy, and can even be done
|
||||||
dynamically on the REPL.})
|
dynamically on the REPL.})
|
||||||
#; ; Is this effective without any highlights?
|
;; Is this effective without any highlights?
|
||||||
(example
|
(example
|
||||||
@code{#lang planet jaymccarthy/datalog
|
@code{#lang datalog
|
||||||
ancestor(A, B) :- parent(A, B).
|
ancestor(A, B) :- parent(A, B).
|
||||||
ancestor(A, B) :-
|
ancestor(A, B) :-
|
||||||
parent(A, C), D = C, ancestor(D, B).
|
parent(A, C), D = C, ancestor(D, B).
|
||||||
parent(john, douglas).
|
parent(john, douglas).
|
||||||
parent(bob, john).
|
parent(bob, john).
|
||||||
ancestor(A, B)?}
|
ancestor(A, B)?}
|
||||||
@desc{Blah})
|
@desc{Racket is useful for building other languages. This example uses
|
||||||
|
the pre-packaged Racket implementation of Datalog, a logic programming
|
||||||
|
language. If you use this from DrRacket, you'll see that it provides
|
||||||
|
proper highlighting, Check Syntax, and a Datalog-specific REPL.})
|
||||||
#; ; Not easy to present something like this.
|
#; ; Not easy to present something like this.
|
||||||
(example
|
(example
|
||||||
@code{#lang racket
|
@code{#lang racket
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
Scheme. As long as we call our language @name{Scheme}, we struggle to
|
Scheme. As long as we call our language @name{Scheme}, we struggle to
|
||||||
explain our language, and we are usually forced to start the
|
explain our language, and we are usually forced to start the
|
||||||
explanation with a disclaimer. At the same time, to the degree that
|
explanation with a disclaimer. At the same time, to the degree that
|
||||||
the PLT community has defined @name{Scheme} though market share,
|
the PLT community has defined @name{Scheme} through market share,
|
||||||
publications, and educational outreach, we interfere with everyone
|
publications, and educational outreach, we interfere with everyone
|
||||||
else's ability to define @name{Scheme} — and many have a valid claim to
|
else's ability to define @name{Scheme} — and many have a valid claim to
|
||||||
that ability.
|
that ability.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user