Re: [racket] 18 scribble-created files

2014-11-23 Thread Neil Van Dyke
On second thought, I'll have to think more about `http://example.com/racket//` URLs, as well as about the home page URLs. Main question is what URL should people use in `require` forms, if they want to live a little dangerously and always get the latest stable-branch version of the package, e

Re: [racket] (values) vs (void)

2014-11-23 Thread Alexander D. Knauth
Most contexts expect one value, and you can easily define a macro that does the (define-syntaxes () (begin0 (values) expr …)) or (define-syntaxes () (begin expr … (values))) for you. The one that comes too my mind first is (and (test-something-about x) (do-something-with x) (do-something-els

Re: [racket] 18 scribble-created files

2014-11-23 Thread Neil Van Dyke
Thanks, Matthew. I have to rework McFly and my package release setup for the new package system soon, and I plan to work around the 18 files then. I don't know that my plan is relevant to anyone else, but here it is: * Make distributions (and packages?) include the documentation files howeve

Re: [racket] (values) vs (void)

2014-11-23 Thread Roman Klochkov
I can't imagine an example, where one need to use void function in context, that expects a single value. Moreover, in macro definition I had to write (define-syntaxes ()    (begin0 (values)                   (save-fields! #'NAME (list 'ALL-FIELD ...)) to make side effect work in expansion time

Re: [racket] ANN: Lux

2014-11-23 Thread Jay McCarthy
To show off some of the fun that you can with lux, I made an interface module that hooks up to NvD's CharTerm and made a vi-like text pager: https://github.com/jeapostrophe/lux-charterm/blob/master/lux/examples/charterm.rkt Jay On Sun, Nov 23, 2014 at 2:02 PM, Jay McCarthy wrote: > I've just re

Re: [racket] (values) vs (void)

2014-11-23 Thread Alexander D. Knauth
On Nov 23, 2014, at 1:31 PM, Roman Klochkov wrote: > > void is a good placeholder in dummy functions/objects > > (define (foo) (values)) also works just fine. But then you can’t use (foo) in a context that expects a single value, but if you use (void) instead of (values), it will return one v

Re: [racket] scribble/base doesn't use new css?

2014-11-23 Thread Stephen Chang
On Sun, Nov 23, 2014 at 5:21 PM, Matthew Flatt wrote: > Are you looking for `manual-doc-style` to add to your document's main > part? Or do you need more information about applying a style from the > outside of a document whose source you can't modify? That's exactly what I was looking for, thank

Re: [racket] scribble/base doesn't use new css?

2014-11-23 Thread Matthew Flatt
Are you looking for `manual-doc-style` to add to your document's main part? Or do you need more information about applying a style from the outside of a document whose source you can't modify? At Sun, 23 Nov 2014 16:43:48 -0500, Stephen Chang wrote: > If my scribble file begins with #lang scribble

[racket] scribble/base doesn't use new css?

2014-11-23 Thread Stephen Chang
If my scribble file begins with #lang scribble/manual, I get the new css, but if I use #lang scribble/base, I get the old look and I can't figure out how to change it. This is with 6.1.1.4. I can of course, start with scribble/manual, grab the files, and then switch back to scribble/base, but I th

Re: [racket] (values) vs (void)

2014-11-23 Thread Roman Klochkov
in inner define contex I better write (define-values () (procedure ...)) than (define dummy (procedure ...)) In other context return value is used only whe  it is part of expression. void? is almost never applicable to expression. Sun, 23 Nov 2014 14:22:20 +0100 от Jens Axel Søgaard : >Most c

[racket] ANN: Puresuri

2014-11-23 Thread Jay McCarthy
I've just released Puresuri, which you can think of as a variant of slideshow. The documentation is here: http://pkg-build.racket-lang.org/doc/puresuri/index.html And here's an example slideshow (that I used for RacketCon 2014): https://github.com/jeapostrophe/presentations/blob/master/201409-ra

[racket] ANN: Lux

2014-11-23 Thread Jay McCarthy
I've just released Lux, which you can think of as a variant of big-bang that isn't necessarily designed for beginners or for use with 2htdp/image. The documentation is here: http://pkg-build.racket-lang.org/doc/lux/index.html Here's a little example program: https://github.com/jeapostrophe/lux/b

Re: [racket] (values) vs (void)

2014-11-23 Thread Roman Klochkov
> void is a good placeholder in dummy functions/objects (define (foo) (values)) also works just fine. > fill a gap, which is useful If function returns void?, then it is used as a procedure. I mean returned value never assigned to a variable. So in what cases it is useful? Sun, 23 Nov 2014 1

Re: [racket] Providing/importing user lang modules.

2014-11-23 Thread J Arcane
Thanks! Restructuring things this way does in fact appear to work. It means I still have to cross reference stuff a bit when writing the libs, but I can safely now pen a standard library and then just provide the lot in a new simpler main.rkt. You can see the result here: https://github.com/jarca

Re: [racket] 18 scribble-created files

2014-11-23 Thread Matthew Flatt
No, there's not already a way in place. Is it a question of file count or file sizes? There are many goals and constraints that go into that layout, so removing any individual file is difficult. I think the size could be reduced a lot, though. For example, the "manual-fonts.css" file doesn't rea

[racket] Client-side WeScheme: testers wanted!

2014-11-23 Thread Emmanuel Schanzer
Hi all - I’m looking for a few testers to bang on a project I’ve been working on. It's a re-architected version of WeScheme, in which the Racket->Bytecode compilation is done entirely on the client (once the editor loads, you can switch off the wifi and hack away!). The local compiler has actu

Re: [racket] Providing/importing user lang modules.

2014-11-23 Thread Gustavo Massaccesi
You should split the language in three parts: 1) The heresy/pre-base language (or heresy/private/pre-base) that implements the basic syntax (no pun intended), for example 'if', 'def', ... (probably most of the current content of heresy/main) 2) The libraries, for example heresy/lib/string that im

Re: [racket] (values) vs (void)

2014-11-23 Thread Jens Axel Søgaard
Most contexts expects a single return value, so use (void) unless you are in a special situation. /Jens Axel 2014-11-23 13:55 GMT+01:00 Roman Klochkov : > When I should use (void) and when (values)? > > They are both used to show, that there are no return values. > They are both not printable. >

Re: [racket] (values) vs (void)

2014-11-23 Thread Stephen De Gabrielle
void is a good placeholder in dummy functions/objects. It doesn't do anything, except for fill a gap, which is useful. Values is used to pass multiple values. Check the manual for details. Does that help? Stephen On Sun, 23 Nov 2014 at 12:56 Roman Klochkov wrote: > When I should use (void) a

[racket] (values) vs (void)

2014-11-23 Thread Roman Klochkov
When I should use (void) and when (values)? They are both used to show, that there are no return values. They are both not printable. What is intended use for (void) and (values) and when one should prefer one over other? -- Roman Klochkov Racket Users list: http://lis

Re: [racket] FastCGI support?

2014-11-23 Thread Neil Van Dyke
This version of package `scgi` should remove the dependency on package `html-template`: (require (planet neil/scgi:2:3)) I'll add in the Unix domain sockets support once it's Racket's support is moved out of `unstable/socket`. (The package documentation on my Web site is still for versio

[racket] 18 scribble-created files

2014-11-23 Thread Neil Van Dyke
Is there already a way to greatly reduce the number of files that Scribble creates for a small one-page manual (like is used for the documentation of a package)? In Racket 6.1, Scribble creates 18 files, in 2 directories. Before this change, Scribble created only 5 files, in 1 directory, for