Re: [racket] scribble -> ePub/mobi?

2012-01-04 Thread Ryan Culpepper
On 01/04/2012 09:51 PM, John Clements wrote: Has anyone taken a look at generating ePub or mobi documents directly from scribble? As the owner of a Kindle, I can see that pdf/dvi/ps is terrible for these kind of on-the-fly reformatting systems. HTML is better, but trying to convert the existing

Re: [racket] Numerical integration

2012-01-04 Thread Danil Annenkov
I do some research on specific random distributions. I have probability density function, but for some tasks (find cumulative distribution function, moments, generate random values) I need numeric integration. I think it would be useful to have different quadrature methods. Such as trapezoidal rule

[racket] scribble -> ePub/mobi?

2012-01-04 Thread John Clements
Has anyone taken a look at generating ePub or mobi documents directly from scribble? As the owner of a Kindle, I can see that pdf/dvi/ps is terrible for these kind of on-the-fly reformatting systems. HTML is better, but trying to convert the existing HTML for HtDP 2e (I haven't tried removing t

Re: [racket] info.rkt planet-version variable?

2012-01-04 Thread Neil Van Dyke
Regarding motivation and model... The "info.rkt" variable I suggest is primarily for reliability and error-checking, and secondarily for ease of access by tools. Programmers specifying "require"s among multiple interacting PLaneT packages, or documenting history of a package, need to talk abou

Re: [racket] XML library: representing CDATA

2012-01-04 Thread Ryan Culpepper
On 01/03/2012 08:47 PM, John Clements wrote: On Jan 3, 2012, at 3:09 PM, Neil Van Dyke wrote: I don't know what the *stock* XML parsing does, but I have used Oleg Kiselyov's SSAX parser a lot in Racket-based production apps, and it does handle CDATA. Oleg spent a lot of time on XML, including

Re: [racket] for/hash: bad syntax in: for/hash [and 1 more messages]

2012-01-04 Thread Eli Barzilay
11 hours ago, Marijn wrote: > It took me a while to understand what you're saying here, but if I > am not mistaken you're saying that the result of the macro-expansion > is a function-application with `let*' (or `for/hash') in the > function position. Then when #%app looks that name up in the > env

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Eli Barzilay
Yesterday, Matthias Felleisen wrote: > > Would syntax/parse have done better? For what Marijn does, I think that he'd end up with the same error. IME, every time I've seen a code walker they're an indication of either not knowing how to use the macro system well enough, or if there's no way to d

Re: [racket] Documentations in PDF/PS format

2012-01-04 Thread Eli Barzilay
7 hours ago, Matthias Felleisen wrote: > It exists in PDF, e.g., http://pre.racket-lang.org/docs/pdf/guide.pdf Note that those are the versions from the nightly builds, which are different in some parts from whatever release you might be using. The versions for the stable releases are available

Re: [racket] Documentations in PDF/PS format

2012-01-04 Thread Gregory Woodhouse
I find it very convenient to load documentation on an e-reader. PDF isn't the only format to consider, either. EPUB and MOBI (for the Kindle) often work better. On Jan 4, 2012, at 7:57 AM, Matthias Felleisen wrote: > Pardon my lack of knowledge. I haven't gotten interested in e-readers yet. >

Re: [racket] XML library: representing CDATA

2012-01-04 Thread Jay McCarthy
On Tue, 3 Jan 2012 21:41:28 +,Norman Gray mumbled: > Greetings. > In the XML module's cdata struct, "[t]he string field is assumed to > be of the form with proper quoting of > ‹content›." It's not clear that this is a very useful design of the > interface. > Principally, it makes it inc

Re: [racket] Documentations in PDF/PS format

2012-01-04 Thread Ryan Culpepper
You could also use scribble to render a manual as a single HTML page (plus CSS files and images). Then you can use a program like Calibre to convert the HTML to ePub. Here's the command I used to render the Racket Guide: raco scribble \ --html \ --dest /tmp/guide/ \ ++xref-in setup/xref

Re: [racket] Documentation enhancement suggestions

2012-01-04 Thread Grant Rettke
On Wed, Jan 4, 2012 at 11:22 AM, Vincent St-Amour wrote: > When the cursor is inside a function call and the operator is > recognized by eldoc (both standard library functions and user-defined > functions defined in the same file), the function's header and (if > known) return type is displayed in

Re: [racket] info.rkt planet-version variable?

2012-01-04 Thread Ryan Culpepper
It sounds like a bad idea to me. Calling it 'planet-version' makes it sound like it answers the question "who am I?", but the planet/version library already provides a way to do that that avoids the obligation of manually updating the definition after (or is it before?) every release to PLaneT.

Re: [racket] Documentation enhancement suggestions

2012-01-04 Thread Vincent St-Amour
At Mon, 2 Jan 2012 14:49:34 +, Erich Rast wrote: > But here is another suggestion that I would find > tremendously helpful: an auto-hover live help that pops up information > about function definitions plus a short explanation of what the function > does directly in the IDE, Similar to that, I

Re: [racket] Numerical integration

2012-01-04 Thread Noel Welsh
2012/1/4 Doug Williams : > Someone - I believe Noel Welsh, but it might be someone else on the mailing > list - Yes, it's on github: https://github.com/noelwelsh/mzgsl has an FFI based  interface to the GNU Scientific library. That might > already have the routines you're interested in. Sorry, I

Re: [racket] Documentations in PDF/PS format

2012-01-04 Thread Matthias Felleisen
Pardon my lack of knowledge. I haven't gotten interested in e-readers yet. But if this is true for all e-readers, then perhaps we should generate a second set of PDFs for e-readers. -- Matthias On Jan 4, 2012, at 10:20 AM, nitralime wrote: > Thank you! > > For reading on an eBook Reader an

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Matthias Felleisen
On Jan 4, 2012, at 10:40 AM, Marijn wrote: > Basically, > my idea was to transform: > > (dependent-boxes > ((a) >(b (* 2 a)) >(c (+ 2 a b > > into something which would automatically propagate changes in any > cell/box to any other box which was dependent on it. Pretty much > exa

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04-01-12 10:57, Marijn wrote: > On 03-01-12 20:15, Eli Barzilay wrote: >> Two hours ago, Marijn wrote: >>> Hi, >>> >>> for/hash is giving me a syntax-error, but the error is in >>> macro-expanded code which is not shown by default and which is >>

Re: [racket] Documentations in PDF/PS format

2012-01-04 Thread nitralime
Thank you! For reading on an eBook Reader an overall larger font (e.g. at 14pt) would be more pleasant! "Times" is terrible for sizes smaller than 12pt! I would generate a pdf version with a font size at 14pt using Palatino/Consolas, if I could do it myself. (An ePub format, if possible at all,

Re: [racket] input requested on tools for Racket library developers

2012-01-04 Thread Grant Rettke
On Mon, Jan 2, 2012 at 11:10 PM, Neil Van Dyke wrote: > If you develop Racket libraries, or would like to, this is a request for > input... Something like Apache Maven's effective-pom http://maven.apache.org/plugins/maven-help-plugin/effective-pom-mojo.html that shows you all of the dependenci

Re: [racket] Documentations in PDF/PS format

2012-01-04 Thread Matthias Felleisen
It exists in PDF, e.g., http://pre.racket-lang.org/docs/pdf/guide.pdf On Jan 4, 2012, at 9:00 AM, nitralime wrote: > Hello folks! > > Is there a (simple) way to convert Racket documentations (e.g. Racket Guide) > into PDF/PS format? > > Regards > Nik > > > > Racket U

[racket] Documentations in PDF/PS format

2012-01-04 Thread nitralime
Hello folks! Is there a (simple) way to convert Racket documentations (e.g. Racket Guide) into PDF/PS format? Regards Nik Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Numerical integration

2012-01-04 Thread Doug Williams
I pretty much add things to the science collection as people - particularly me - need them. My integration needs have always been for ordinary differential equations - for continuous simulations, for example. If you let me know specifically what you're looking for, I can look into adding them. Som

[racket] advice given to friend trying Racket

2012-01-04 Thread Geoffrey S. Knauth
== A G+ friend learning Lisp decided to try Racket. I gave him this advice, which I hope does not have errors: I tend to write more Racket programs than in Common Lisp. I read the Steve Yegge blog entry above [1], and it is mostly true if a little overblown, but because of it I have to mention

[racket] Racket helped me get a job

2012-01-04 Thread Geoffrey S. Knauth
== I was writing this to a G+ friend trying out Racket, and I figured I'd share it with you: I have to make another comment about Racket, which I haven't even shared with the Racket community yet. Just before Christmas I had an all-day series of job interviews at a local AI company. I thought I

[racket] Numerical integration

2012-01-04 Thread Данил Анненков
Is there a library for the numerical integration for Racket? I use Science Collection for some calculations but I could't found Numerical integration modules. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] for/hash: bad syntax in: for/hash

2012-01-04 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03-01-12 20:15, Eli Barzilay wrote: > Two hours ago, Marijn wrote: >> Hi, >> >> for/hash is giving me a syntax-error, but the error is in >> macro-expanded code which is not shown by default and which is >> also seemingly inaccessible via the macr

[racket] info.rkt planet-version variable?

2012-01-04 Thread Neil Van Dyke
Would it be a good idea to officially add to "info.rkt" a "planet-version" variable, which indicates that the directory tree corresponds to a particular PLaneT package and version? For example: (define planet-version 'joebob/soundex:1:=2) The "=" in this example is optional. I currently