Re: [racket] `namespace-set-variable-value!` doesn't "shadow"? How to do?

2013-11-24 Thread Greg Hendershott
On Sun, Nov 24, 2013 at 6:54 PM, Matthew Flatt wrote: > At Sun, 24 Nov 2013 14:46:03 -0500, Greg Hendershott wrote: >> The code below is from >> https://github.com/greghendershott/frog/blob/f9bda203b4b26d8f24bc466db93979a015 >> 873512/frog/template.rkt >> >> [...] >> > I'm not clear on what you're

Re: [racket] `namespace-set-variable-value!` doesn't "shadow"? How to do?

2013-11-24 Thread Matthew Flatt
At Sun, 24 Nov 2013 14:46:03 -0500, Greg Hendershott wrote: > The code below is from > https://github.com/greghendershott/frog/blob/f9bda203b4b26d8f24bc466db93979a015 > 873512/frog/template.rkt > > [...] > > (define/contract (render-template dir filename dict) > (path? path-string? dict? . -> .

Re: [racket] `namespace-set-variable-value!` doesn't "shadow"? How to do?

2013-11-24 Thread Greg Hendershott
Continuing my rendition of Billy Idol's Dancing with Myself... OK I got it to work like so: -- pre-base.rkt -- (module pre-base racket/base (provide (except-out (all-from-out racket/base) date))) -- template.rkt -- #lang racket/base (module template "pre-base.rkt" (provide render-template)

Re: [racket] How to compile C libraries that use Cairo?

2013-11-24 Thread Jens Axel Søgaard
I have now applied all patches (except the gettext one) and added gmp and mpfr. The libs are in: https://www.dropbox.com/s/ezznymjtcfxv2ph/final-libs-24-nov.tar.gz The instructions have been updated accordingly: https://github.com/soegaard/racket-osx-libs /Jens Axel 2013/11/24 Jens Axe

Re: [racket] `namespace-set-variable-value!` doesn't "shadow"? How to do?

2013-11-24 Thread Greg Hendershott
> 1. Is there a way to make `namespace-set-variable-value!` "shadow", generally? It looks like the answer is "no", if I were to actually RTFM: "Sets the value of sym in the top-level environment of namespace in the base phase, defining sym if it is not already defined." Last 6 words = No. > 2.

Re: [racket] Learning Scribble

2013-11-24 Thread Greg Hendershott
Does the Scribble doc preap part of McFly work independently of the Planet package part? What I mean is, can McFly be used to prepare Scribble docs for packages for the new package system? Racket Users list: http://lists.racket-lang.org/users

[racket] `namespace-set-variable-value!` doesn't "shadow"? How to do?

2013-11-24 Thread Greg Hendershott
The code below is from https://github.com/greghendershott/frog/blob/f9bda203b4b26d8f24bc466db93979a015873512/frog/template.rkt As the comment indicate, I'd don't fully understand WTH I'm doing here, except that it has worked fine so far. However: One of the "template variables" I would like to su

Re: [racket] How to compile C libraries that use Cairo?

2013-11-24 Thread Jens Axel Søgaard
2013/11/24 Matthew Flatt : > As far as I can tell, your instructions don't mention the patches in > "racket/src/mac/README.txt". Did you apply those patches or skip them? When I configure and makes gettext everything works smoothly, but I note that you write: gettext/gettext-tools/gnulib-lib/stpn

Re: [racket] How to compile C libraries that use Cairo?

2013-11-24 Thread Jens Axel Søgaard
2013/11/24 Jens Axel Søgaard : > 2013/11/24 Matthew Flatt : >> This is great! I have been tempted to just compile the libraries for >> you, but taking advantage of your interest has paid off. Now, at least >> two of us know how this works, and you've written much better >> instructions. ... >> And

Re: [racket] How to compile C libraries that use Cairo?

2013-11-24 Thread Jens Axel Søgaard
2013/11/24 Matthew Flatt : > This is great! I have been tempted to just compile the libraries for > you, but taking advantage of your interest has paid off. Now, at least > two of us know how this works, and you've written much better > instructions. ;-) > As far as I can tell, your instructions

Re: [racket] How to compile C libraries that use Cairo?

2013-11-24 Thread Matthew Flatt
This is great! I have been tempted to just compile the libraries for you, but taking advantage of your interest has paid off. Now, at least two of us know how this works, and you've written much better instructions. As far as I can tell, your instructions don't mention the patches in "racket/src/m

Re: [racket] How to compile C libraries that use Cairo?

2013-11-24 Thread Jens Axel Søgaard
Build instructions and source files are now available here: https://raw.github.com/soegaard/racket-osx-libs/master/README.md 2013/11/24 Jens Axel Søgaard : > 2013/11/17 Matthew Flatt : >> At Sat, 16 Nov 2013 22:16:40 +0100, Jens Axel Søgaard wrote: > >> To turn "librsvg-2.2.dylib" into someth

Re: [racket] How to compile C libraries that use Cairo?

2013-11-24 Thread Jens Axel Søgaard
2013/11/17 Matthew Flatt : > At Sat, 16 Nov 2013 22:16:40 +0100, Jens Axel Søgaard wrote: > To turn "librsvg-2.2.dylib" into something that you can give other Mac > users to install into their Racket "lib" directory, you'll need to > adjust the references from the "librsvg-2.2.dylib" to other ".dy