Merge commit 'origin/master'
This commit is contained in:
commit
544cab5f17
4
info.rkt
4
info.rkt
|
@ -2,8 +2,8 @@
|
|||
|
||||
(define name "Whalesong")
|
||||
(define blurb '("A Racket to JavaScript compiler"))
|
||||
(define release-notes '((p "Corrected bug that would cause Whalesong to fail on Windows, reduced size of generated JS files, added hash tables, and other bug fixes.")))
|
||||
(define version "1.5")
|
||||
(define release-notes '((p "Minor update: bug fix to prevent crashes on iOS 5.")))
|
||||
(define version "1.6")
|
||||
(define categories '(devtools))
|
||||
(define repositories '("4.x"))
|
||||
(define required-core-version "5.1.1")
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
symbol? symbol=?
|
||||
current-output-port
|
||||
lambda
|
||||
true false)))
|
||||
true false
|
||||
...)))
|
||||
|
||||
@(define-runtime-path whalesong-path "..")
|
||||
|
||||
|
@ -64,13 +65,21 @@ Run the following to create the @filepath{whalesong} launcher program in
|
|||
your current directory.
|
||||
@codeblock|{
|
||||
#lang racket/base
|
||||
(require (planet dyoo/whalesong:1:5/make-launcher))
|
||||
(require (planet dyoo/whalesong:1:6/make-launcher))
|
||||
}|
|
||||
This may take a few minutes, as Racket is compiling Whalesong, its
|
||||
dependencies, and its documentation. When it finally finishes,
|
||||
you should see a @filepath{whalesong} launcher in the current
|
||||
directory.
|
||||
|
||||
If you see the following error message during installation:
|
||||
@verbatim|{
|
||||
raco setup: error: during Building docs for ...scribblings/manual.scrbl
|
||||
raco setup: require: unknown module: 'program
|
||||
}|
|
||||
please ignore it: it is due to a bug in Racket's documentation
|
||||
generator.
|
||||
|
||||
|
||||
|
||||
@section{Examples}
|
||||
|
@ -118,7 +127,7 @@ However, it can also be packaged with @filepath{whalesong}.
|
|||
$ ls -l hello.html
|
||||
-rw-r--r-- 1 dyoo dyoo 3817 2011-09-10 15:02 hello.html
|
||||
$ ls -l hello.js
|
||||
-rw-r--r-- 1 dyoo dyoo 2129028 2011-09-10 15:02 hello.js
|
||||
-rw-r--r-- 1 dyoo dyoo 1146428 2011-09-10 15:02 hello.js
|
||||
}|
|
||||
|
||||
Running @tt{whalesong build} will produce @filepath{.html} and
|
||||
|
|
|
@ -195,7 +195,7 @@ If you want to use Whalesong off of PLaneT, run the following to create
|
|||
the @filepath{whalesong} launcher:
|
||||
@codeblock|{
|
||||
#lang racket/base
|
||||
(require (planet dyoo/whalesong:1:5/make-launcher))
|
||||
(require (planet dyoo/whalesong:1:6/make-launcher))
|
||||
}|
|
||||
This may take a few minutes, as Racket is compiling Whalesong, its
|
||||
dependencies, and its documentation. When it finally finishes,
|
||||
|
@ -261,7 +261,7 @@ However, it can also be packaged with @filepath{whalesong}.
|
|||
$ ls -l hello.html
|
||||
-rw-r--r-- 1 dyoo dyoo 3817 2011-09-10 15:02 hello.html
|
||||
$ ls -l hello.js
|
||||
-rw-r--r-- 1 dyoo dyoo 2129028 2011-09-10 15:02 hello.js
|
||||
-rw-r--r-- 1 dyoo dyoo 841948 2011-09-10 15:02 hello.js
|
||||
|
||||
}|
|
||||
|
||||
|
@ -331,12 +331,12 @@ function and define it in a module called @filepath{fact.rkt}:
|
|||
|
||||
@margin-note{
|
||||
The files can also be downloaded here:
|
||||
@itemlist[@item{@link["http://hashcollision.org/whalesong/examples/fact/fact.rkt"]{fact.rkt}}
|
||||
@item{@link["http://hashcollision.org/whalesong/examples/fact/index.html"]{index.html}}]
|
||||
@itemlist[@item{@link["http://hashcollision.org/whalesong/fact-example/fact.rkt"]{fact.rkt}}
|
||||
@item{@link["http://hashcollision.org/whalesong/fact-example/index.html"]{index.html}}]
|
||||
with generated JavaScript binaries here:
|
||||
@itemlist[
|
||||
@item{@link["http://hashcollision.org/whalesong/examples/fact/fact.js"]{fact.js}}
|
||||
@item{@link["http://hashcollision.org/whalesong/examples/fact/runtime.js"]{runtime.js}}
|
||||
@item{@link["http://hashcollision.org/whalesong/fact-example/fact.js"]{fact.js}}
|
||||
@item{@link["http://hashcollision.org/whalesong/fact-example/runtime.js"]{runtime.js}}
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -415,7 +415,7 @@ The factorial of 10000 is <span id="answer">being computed</span>.
|
|||
}|
|
||||
}
|
||||
|
||||
@margin-note{See: @link["http://hashcollision.org/whalesong/examples/fact/bad-index.html"]{bad-index.html}.}
|
||||
@margin-note{See: @link["http://hashcollision.org/whalesong/fact-example/bad-index.html"]{bad-index.html}.}
|
||||
Replacing the @racket[10000] with @racket["one-billion-dollars"] should
|
||||
reliably produce a proper error message.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user