Re: [racket] Chipmunk FFI bindings on Github! (v0.1)

2012-06-06 Thread Vincent
Woops! Forgot to put the link to the repo in the original post. Here it is for those interested: https://github.com/Freezerburn/Rhipmunk-Physics Racket Users list: http://lists.racket-lang.org/users

[racket] Chipmunk FFI bindings on Github! (v0.1)

2012-06-06 Thread Vince Kuyatt
I just wanted to let anyone know that is interested, the new FFI bindings that I have been looking into for Chipmunk are now on Github. It is far from finished, but there is at least an initial commit in the repository. Currently it provides the API bindings that allow the simple "hello_chipmunk.c"

Re: [racket] programmatic file editing

2012-06-06 Thread Neil Van Dyke
Rodolfo Carvalho wrote at 06/07/2012 01:05 AM: #:insert `( ;; Add a missing #lang line to the top of the file: (0 "#lang setup/infotab\n") [...] Sorry if I just didn't get it right, but wouldn't it be useful to have a conditional insert? For instance, it would make sense

Re: [racket] programmatic file editing

2012-06-06 Thread Rodolfo Carvalho
Hello Neil V, On Wed, Jun 6, 2012 at 7:26 PM, Neil Van Dyke wrote: > ... > > #:insert > `( > ;; Add a missing #lang line to the top of the file: > (0 "#lang setup/infotab\n") > > ... > I thought I'd bounce this off anyone who was interested to see if I missed > some useful feature that's

Re: [racket] file-position and source-location-position

2012-06-06 Thread Neil Van Dyke
OK, thanks. I am unconfused now. Matthew Flatt wrote at 06/07/2012 12:27 AM: Neil V. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Circular dependency error message

2012-06-06 Thread Matthew Flatt
Yes, I'll fix that. Thanks! At Wed, 6 Jun 2012 11:04:14 +0200, Tobias Hammer wrote: > Hi, > > would it, maybe as part of the current error message overhauling, be > possible > to make the error message for cyclic requires more useful. > It is currently truncated at an arbitrary length, that is

Re: [racket] file-position and source-location-position

2012-06-06 Thread Matthew Flatt
At Wed, 06 Jun 2012 23:43:25 -0400, Neil Van Dyke wrote: > Question: A number for source location position of a syntax object is > what file-position would say after the first character of the syntax had > been read? It's what `port-next-location' reports, which is the same as `file-position' af

[racket] file-position and source-location-position

2012-06-06 Thread Neil Van Dyke
Question: A number for source location position of a syntax object is what file-position would say after the first character of the syntax had been read? I'm double-checking before I code this into an API. I see in "http://doc.racket-lang.org/reference/linecol.html"; the statement "Position

[racket] programmatic file editing

2012-06-06 Thread Neil Van Dyke
If anyone is interested in programmatic file editing, please feel free to comment on this library interface I've just sketched out. My immediate need is that I want McFly to automatically edit an existing "info.rkt" file in some circumstances, such as to add necessary things that the programme

[racket] H264 Codec in Racket

2012-06-06 Thread Anurag Mendhekar
I'm considering writing an H.264 encoder/decoder in Racket. Has anyone tried such a thing before?  Codecs require a lot of bit-whacking and the h264 standard is particularly convoluted. Efficiencies are obtained in C in many different and usually complex ways. Codec experts usually recommend

Re: [racket] xml/plist plist-dict

2012-06-06 Thread Matthias Felleisen
On Jun 6, 2012, at 4:58 PM, Steve Byan wrote: > I'm having great fun with Racket. We all do :-) Racket Users list: http://lists.racket-lang.org/users

Re: [racket] xml/plist plist-dict

2012-06-06 Thread Steve Byan
On Jun 1, 2012, at 7:44 PM, Jay McCarthy wrote: > I just pushed the alist version Thanks, it works great! Very interesting code, I'll have to read up on match and friends. Looks like you basically took the grammar from the plist-dict documentation and wrote a recursive-descent parser? On the

Re: [racket] Scribble to latex

2012-06-06 Thread David Janke
You can always try including the relative path. Something like: (find-executable-path "pdflatex" "../../../sw/bin") Doesn't OS X have a .profile? Maybe try defining the path there instead of in .bashrc? On Wed, Jun 6, 2012 at 2:40 PM, Viera Proulx wrote: > I am starting to play with scribble an

[racket] Scribble to latex

2012-06-06 Thread Viera Proulx
I am starting to play with scribble and have tried to generate a pdf document from the scribble source. The conversion to html worked fine. When I hit the Scribble to PDF button I got: Welcome to DrRacket, version 5.2.1 [3m]. Language: scribble/manual; memory limit: 128 MB. scribble: loading xr

Re: [racket] Web server templates

2012-06-06 Thread Jay McCarthy
On Wed, Jun 6, 2012 at 10:57 AM, Jordan Schatz wrote: > But I've been getting around (mostly) the write code -> kill server / start > server -> test -> debug -> kill server / start server work flow by > coding/testing everything outside of the server, and then just doing > integration > testing i

Re: [racket] Web server templates

2012-06-06 Thread Jordan Schatz
I'll have to look into what Jay wrote, as I didn't know it was possible and I'll have to read the docs abit before I really understand it. But I've been getting around (mostly) the write code -> kill server / start server -> test -> debug -> kill server / start server work flow by coding/testing

Re: [racket] inline unit tests

2012-06-06 Thread David Janke
Maybe something similar to Microsoft's #region directive ( http://msdn.microsoft.com/en-us/library/9a1ybwek(v=vs.71).aspx). It wouldn't need much intelligence, but you would have to manually define each block (define fish '(1 2)) ;; region Tests (module+ test (check andmap number? fish)) ;; endreg

Re: [racket] recursion??

2012-06-06 Thread David Janke
Ronald, The Structure and Interpretation of Computer Programs has a pretty good section about how the recursion happens. It's pretty short, and I think it covers what you are interested in understanding http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%_sec_1.1.5 In particular, check

Re: [racket] recursion?? two

2012-06-06 Thread Hendrik Boom
On Wed, Jun 06, 2012 at 03:17:30AM -0700, Ronald Reynolds wrote: > Is it correct to say that when I call a function inside of it's own > definition I am just making it repeat loop?   > (define (my-map f lst) >   (cond >    [(empty? lst) empty] >    [else (cons (f (first lst)) >    

Re: [racket] recursion?? two

2012-06-06 Thread Stephen Bloch
On Jun 6, 2012, at 6:17 AM, Ronald Reynolds wrote: > Is it correct to say that when I call a function inside of it's own > definition I am just making it repeat loop? > (define (my-map f lst) > (cond >[(empty? lst) empty] >[else (cons (f (first lst)) >(my-map f (rest

Re: [racket] recursion?? two

2012-06-06 Thread Joshua Ewulo
Hello Ronald, Function calling is the semantically the same no matter what function you call. When you call a function you set up an environment/stack for the function to operate in. Now when a function is recursive it create a new environment/stack and calls a function just like itself (with equ

[racket] recursion?? two

2012-06-06 Thread Ronald Reynolds
Is it correct to say that when I call a function inside of it's own definition I am just making it repeat loop?   (define (my-map f lst)   (cond    [(empty? lst) empty]    [else (cons (f (first lst))    (my-map f (rest lst)))]))  Is this code telling racket to repeat until lst is

[racket] Circular dependency error message

2012-06-06 Thread Tobias Hammer
Hi, would it, maybe as part of the current error message overhauling, be possible to make the error message for cyclic requires more useful. It is currently truncated at an arbitrary length, that is often not enough to show a full cycle. That makes it unnecessary hard to track down these p

Re: [racket] recursion??

2012-06-06 Thread Marco Morazan
On Tue, Jun 5, 2012 at 7:37 AM, Ronald Reynolds wrote: > I hope I'm not too much of a 'pain in the neck noobie' but what is the short > clean answer about what's going on when we > name a function as part of the definition of itself..  This seems pretty > esoteric to me.  What does the system do?