[racket-users] Re: Logging and stdout in web-server

2016-11-11 Thread Jack Firth
You may need to call `(flush-output)` after printing to ensure the buffer is flushed. The library racket/place/distributed provides some convenience wrappers like printf/f and displayln/f which print and immediately flush the output port. -- You received this message because you are subscribed

[racket-users] (sixth RacketCon) videos up.

2016-11-11 Thread Leif Andersen
Hello all, The videos for RacketCon are finally up. You can watch them directly on Youtube here: https://www.youtube.com/playlist?list=PLXr4KViVC0qKSiKGO6Vz9EtxUfKPb1Ma0 You can also find slides at the RacketCon website: https://con.racket-lang.org ~Leif Andersen -- You received this message

[racket-users] Re: Logging and stdout in web-server

2016-11-11 Thread Luke Bayes
For clarity, that line where I call: (make '() req) Is the one that's failing because '() is clearly not a "connection". Thanks! Luke On Fri, Nov 11, 2016 at 2:18 PM, Luke Bayes wrote: > Disclaimer: I'm a long-time software engineer, but very new to Lisp/Scheme > and even newer to Racket.

[racket-users] Logging and stdout in web-server

2016-11-11 Thread Luke Bayes
Disclaimer: I'm a long-time software engineer, but very new to Lisp/Scheme and even newer to Racket. Please bear with me! I have a basic web-server working that has handlers configured for different routes. I can return markup for GET requests and process params on POST requests with different han

Re: [racket-users] Redefining a function or aliasing a function

2016-11-11 Thread Lehi Toskin
The package Racquel creates a neat DB-agnostic interface that you can use with many different types (basically everything in the db package). You might have to get creative if you want to use mongo, though there is a mongo package around. You may be able to create a fork or a pull request to Rac

Re: [racket-users] Macro calling macro

2016-11-11 Thread Matthew Butterick
On Nov 11, 2016, at 10:16 AM, dear chap wrote: > Hi MB > That did the trick. Using the macro stepper didnt help much but after > running the (message-syntax ...) I see the message object getting populated > correctly with field objects. Why is there a difference ? `quote` converts its input

Re: [racket-users] Redefining a function or aliasing a function

2016-11-11 Thread Ken M
Well I am using DB liberally so to be clear I am thinking there could be several possible data store formats that I deal with out the gate. 1. sqlite 2. mysql 3. postgresql 4. mongo 5. text fixed width 6. cvs I know it seems crazy but right now part of what I am dealing with is a lot of formats I

Re: [racket-users] Redefining a function or aliasing a function

2016-11-11 Thread David Storrs
I think the first question is "what are you trying to achieve?" What differences should the system demonstrate if it's hooked to MySQL vs PostgreSQL? Personally, I just pass connection objects around. As long as you stick with standard SQL this is all that's required to make your system work wit

Re: [racket-users] Macro calling macro

2016-11-11 Thread dear chap
Hi MB That did the trick. Using the macro stepper didnt help much but after running the (message-syntax ...) I see the message object getting populated correctly with field objects. Why is there a difference ? Thanks p.s pollen is the reason I started learning Racket. Thanks !!!. On Frida

Re: [racket-users] Macro calling macro

2016-11-11 Thread Matthew Butterick
On Nov 11, 2016, at 7:24 AM, dear chap wrote: > (define-syntax (message-syntax stx) > (syntax-parse stx > ([_ name field:field_binding ...] > #`(begin >(define message-inst (message 'name '((field-syntax field) ...) > > > I want the message object to contain the nam

[racket-users] Macro calling macro

2016-11-11 Thread dear chap
Hi I'm writing a macro similar to this (struct field (x y z) ) (struct message (name field-list)) (define-syntax (field-syntax stx) (syntax-parse stx ([_ field:field_binding] #`(begin (field 1 2 5) (define-syntax (message-syntax stx) (syntax-parse stx ([_ na

[racket-users] Racket development with nix

2016-11-11 Thread Anthony Carrico
Thanks to whoever wrote Racket's nixpkgs derivation. I have found that nix is a great development tool. With nix-shell: * You set declare an environment, commit it to your repo, and all devs are on the same page. * When dealing with ISSUEs you can easily switch between racket versions. * You can

[racket-users] ACM/SPEC ICPE 2017 - Call for Work in Progress and Vision Papers

2016-11-11 Thread Andrea Rosà
ICPE 2017 8th ACM/SPEC International Conference on Performance Engineering Sponsored by ACM SIGMETRICS, SIGSOFT, and SPEC RG L'Aquila, Italy April 22-26, 2017

[racket-users] Redefining a function or aliasing a function

2016-11-11 Thread Ken MacKenzie
I am trying to figure out the best way to do this and granted I am not sure my architecture is the most sane or sensible way to handle it. I am trying to build my DB interface and I want to allow the system to deal with numerous types of data stores. So I have a config file that is read and ge