[racket] Unknown C Struct definition

2013-07-01 Thread Cosme Enmanuel Zamudio Salazar
Theres a libsdl struct i want to use from racket: SDL_Window the problem is that there is nothing in the SDL include files about the struct fields, just this: typedef struct SDL_Window SDL_Window, the weird part is that i been looking at other language bindings to sdl2 and it looks like they hav

Re: [racket] How to either extend eval or write macros in #lazy?

2013-07-01 Thread Stephen Chang
For #2, can you give a more specific example? For example, I can do this: #lang lazy (require (for-syntax racket/base)) (cons 1 (cons 2 (cons 3 null))) (define-syntax econs (syntax-rules () [(_ x y) (cons x (! y))])) (econs 1 (econs 2 (econs 3 null))) Welcome to DrRacket, version 5.3.4.11

Re: [racket] inline source documentation->html tool for Racket? (like Pydoc or Javadoc?)

2013-07-01 Thread Matthias Felleisen
1. For now you may wish to look up provide-and-document and provide-extracted This is not exactly javadoc but it does allow you to combine documentation with the module itself as opposed to a separate file. 2. Consider scribble/lp as an alternative, keeping the lp part to a minimum.

Re: [racket] inline source documentation->html tool for Racket? (like Pydoc or Javadoc?)

2013-07-01 Thread Neil Van Dyke
Christopher wrote at 07/01/2013 02:11 PM: Is there an inline source documentation to HTML tool for Racket? I have been converting all my packages to use McFly for this: http://www.neilvandyke.org/mcfly/ In addition to helping with embedded documentation, McFly also encourages you to develop

[racket] Eval / Lazy Macros followup

2013-07-01 Thread Sean Kanaley
Please disregard the first option as it would be semantically incorrect... One could then not use mappend as a higher order function properly as the arguments would've been evaluated already in, say, the list if mappend is folded in. So I'll have to use lazy, but how does one write macros wit

Re: [racket] inline source documentation->html tool for Racket? (like Pydoc or Javadoc?)

2013-07-01 Thread Laurent
Hi Christopher, You probably want this: http://docs.racket-lang.org/scribble/srcdoc.html Laurent On Mon, Jul 1, 2013 at 8:11 PM, Christopher wrote: > Hey all, > > Is there an inline source documentation to HTML tool for Racket? I want > to document my Racket module functions and classes and v

[racket] How to either extend eval or write macros in #lazy?

2013-07-01 Thread Sean Kanaley
I'm attempting to provide a package very soon with Haskell-like type classes initially including Monoid, Functor, and Foldable, however I've discovered the terrible bug that mappend is too strict when it expands into "or" or "and". Is there a way to extend eval from within #lang racket such th

[racket] inline source documentation->html tool for Racket? (like Pydoc or Javadoc?)

2013-07-01 Thread Christopher
Hey all, Is there an inline source documentation to HTML tool for Racket? I want to document my Racket module functions and classes and variables in the .rkt file and then run it through a tool that will extract the documentation from my comments and dump it into an HTML file or files. You kn

Re: [racket] Deploying racket webserver on VPS host

2013-07-01 Thread John Clements
On Jun 30, 2013, at 2:25 PM, Jay McCarthy wrote: > Can you be more specific? > > If you have a Web app that locally works... just put that file and > Racket on your server and run it. If it listens on the right port, > then you have a public Web app? Like Jay, I would encourage you to be more s

[racket] Question about sandbox.rktl failing its unit test

2013-07-01 Thread Tim Brown
Folks, I've just built racket-5.3.5 on Solaris-11 Intel (32 and 64 bit flavours). Because I need to embed Racket into C, as well as run it standalone, I have also built both the CGC (Boehm) and 3m (default) versions. So that's four versions of racket. All of which seem to run with stability. Ho

[racket] problem with database connectivity

2013-07-01 Thread Christian Wagenknecht
Regardless of using a postgresql or a mysql database server the following error message ptr-ref: contract violation expected: ctype? given: # argument position: 2nd other arguments...: # appears when trying to connect it from drracket by #lang racket (require db) (define dbc1 (p