[racket] [CfP] ELS 2015, 8th European Lisp Symposium, Apr. 20-21, London

2014-12-04 Thread Didier Verna
ELS'15 - 8th European Lisp Symposium Goldsmiths College, London, UK April 20-21, 2015 http://www.european-lisp-symposium.org/ Sponsored by EPITA, Franz Inc. and Lispworks Ltd. The purpose of the European L

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread George Neuner
On 12/4/2014 11:54 PM, Jon Zeppieri wrote: The part about HTML forms is true. From the HTML 5 spec: [https://html.spec.whatwg.org/multipage/forms.html#attr-fs-method]. There are also various discussions about this, like [http://programmers.stackexchange.com/a/211790]. Thanks! That was interest

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread Jon Zeppieri
The part about HTML forms is true. From the HTML 5 spec: [https://html.spec.whatwg.org/multipage/forms.html#attr-fs-method]. There are also various discussions about this, like [http://programmers.stackexchange.com/a/211790]. My XHR tests against Jay's code (using a Safari's JS console) work fine:

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread George Neuner
Hi Jon, On 12/4/2014 10:37 PM, Jon Zeppieri wrote: To my knowledge none of the major browsers support HTML forms using anything but GET and POST. This is a user agent issue; not a server issue. (Some frameworks use JS to intercept form submissions and perform them via XHR, which can use other

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread Jon Zeppieri
To my knowledge none of the major browsers support HTML forms using anything but GET and POST. This is a user agent issue; not a server issue. (Some frameworks use JS to intercept form submissions and perform them via XHR, which can use other methods.) I haven't had a chance to take a close look

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread George Neuner
On 12/4/2014 8:26 PM, Jay McCarthy wrote: Were you not able to run my example? In the sample you sent, your cases for delete and put are commented out. Addendum: if I say: action="/resources/spam" as I should be able to, the XHR appears to work, but still no data received by the server for P

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread George Neuner
On 12/4/2014 8:26 PM, Jay McCarthy wrote: Were you not able to run my example? In the sample you sent, your cases for delete and put are commented out. Those functions were commented out because they would not dispatch properly. Something is weird. I had to grab a copy of curl ... I'd never u

Re: [racket] [ACM-BULLETIN] Today's Topic: ACM Names 2014 Distinguished Members

2014-12-04 Thread C K Kashyap
Congratulations Matthew! Regards, Kashyap On Fri, Dec 5, 2014 at 12:43 AM, Éric Tanter wrote: > Congratulations Matthew! Well-deserved! > > -- Éric > > > > On Dec 4, 2014, at 1:50 PM, Matthias Felleisen > wrote: > > > > > > Even the ACM considers our very own Matthew Flatt as a distinguished >

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread Jay McCarthy
Were you not able to run my example? In the sample you sent, your cases for delete and put are commented out. In the code you quote, the second to last case is [meth ...] and that handles all methods not mentioned. Jay On Thu, Dec 4, 2014 at 8:23 PM, George Neuner wrote: > Hi Jay, > > Additiona

Re: [racket] web server: CRUD put/delete?

2014-12-04 Thread Jay McCarthy
It would have been interesting to see what you tried. The simplest thing I could think of worked fine. Here's a little database app: #lang racket/base (require web-server/http web-server/servlet-env web-server/dispatch) (define (writer s) (λ (op) (displayln s op))) (defin

[racket] web server: CRUD put/delete?

2014-12-04 Thread George Neuner
Hi all, I'm using 6.0.1 trying to implement a CRUD interface, but the dispatch-rules doesn't seem to recognize PUT or DELETE as valid methods - they both are interpreted as GET. Is dispatch-rules limited to HTML 1.0 (i.e. only GET, POST and HEAD)? Has this been updated since 6.0.1? The cur

[racket] when is `listof` the better contract

2014-12-04 Thread Matthew Butterick
In what situations should one prefer the `listof` combinator over an equivalent predicate contract? For instance, it seems to me that: (λ(x) (and (list? x) (andmap pred? x))) is a more-or-less equivalent way of saying this: (listof pred?) But in my experience the predicate version is always s

Re: [racket] Issue with splicing-syntax-parameterize in Typed Racket

2014-12-04 Thread Jack Firth
Unfortunately those options wouldn't help because I ran across this issue where an extension to Typed Racket I was working with was using splicing-syntax-parameterize "under the hood" to provide some interesting extensions. I would prefer it if those extensions didn't prohibit use of : within them

Re: [racket] Issue with splicing-syntax-parameterize in Typed Racket

2014-12-04 Thread Alexander D. Knauth
On Dec 4, 2014, at 3:24 PM, Jack Firth wrote: > I’m having an issue where splicing-syntax-parameterize removes type > annotations in Typed Racket. I posted a question about it to Stack Overflow, > and any assistance would be welcomed greatly. > > > Racket Users list: >

Re: [racket] Curious error messages

2014-12-04 Thread Marc Burns
You can run racket under gdb and use a catchpoint to break when a certain system call is executed: https://sourceware.org/gdb/onlinedocs/gdb/Set-Catchpoints.html (make peace with 3m by issuing 'handle SIGSEGV nostop noprint' before 'run') You could then deliver SIGTERM to the racket process to c

[racket] Issue with splicing-syntax-parameterize in Typed Racket

2014-12-04 Thread Jack Firth
I’m having an issue where splicing-syntax-parameterize removes type annotations in Typed Racket. I posted a question about it to Stack Overflow, and any assistance would be welcomed gre

Re: [racket] [ACM-BULLETIN] Today's Topic: ACM Names 2014 Distinguished Members

2014-12-04 Thread Frank Weytjens
Great news! (no surprise for this usergroup) Qaulity is never an accident! Congratz Matthew Frank 2014-12-04 20:13 GMT+01:00 Éric Tanter : > Congratulations Matthew! Well-deserved! > > -- Éric > > > > On Dec 4, 2014, at 1:50 PM, Matthias Felleisen > wrote: > > > > > > Even the ACM considers our

Re: [racket] [ACM-BULLETIN] Today's Topic: ACM Names 2014 Distinguished Members

2014-12-04 Thread Éric Tanter
Congratulations Matthew! Well-deserved! -- Éric > On Dec 4, 2014, at 1:50 PM, Matthias Felleisen wrote: > > > Even the ACM considers our very own Matthew Flatt as a distinguished > scientist. -- Matthias > > > > > Begin forwarded message: > >> From: ACM Bulletin >> Subject: [ACM-

Re: [racket] Curious error messages

2014-12-04 Thread Prabhakar Ragde
On 2014-12-03 11:43 PM, Stephen De Gabrielle wrote: I've had the same thing using scribble, but including screenshot images I just assumed it was pdflatex that was calling libpng, and the problem was either pdflatex how it was passing the image to libpng, or libpng itself, rather than anything in

Re: [racket] Curious error messages

2014-12-04 Thread Prabhakar Ragde
On 2014-12-04 7:35 AM, Jens Axel Søgaard wrote: By any chance: is the file saved inside a Dropbox ? When Dropbox synchronizes it might set a flag/time somewhere. I'm not using Dropbox on these files. I am using OS X. About the only thing that might be looking at these files is Spotlight (and a

Re: [racket] Curious error messages

2014-12-04 Thread Sam Tobin-Hochstadt
No, I don't know of a way to do that, and I'd be surprised if there was an easy one (ie, one that I have remotely the low-level knowledge to implement). But someone who knows more about the system level might have better ideas. Sam On Thu Dec 04 2014 at 12:01:30 PM Robby Findler wrote: > Do you

Re: [racket] Curious error messages

2014-12-04 Thread Robby Findler
Do you know how to get the racket-level stack at the point strace reports a call to open() or write()? (I do see this bug occasionally but not reproducibly so setting up something on my machine with more debugging output seems likely to be productive.) Robby On Thu, Dec 4, 2014 at 10:34 AM, Sam

[racket] Fwd: [ACM-BULLETIN] Today's Topic: ACM Names 2014 Distinguished Members

2014-12-04 Thread Matthias Felleisen
Even the ACM considers our very own Matthew Flatt as a distinguished scientist. -- Matthias Begin forwarded message: > From: ACM Bulletin > Subject: [ACM-BULLETIN] Today's Topic: ACM Names 2014 Distinguished Members > Date: December 4, 2014 11:04:44 AM EST > To: acm-bulle...@listser

Re: [racket] Curious error messages

2014-12-04 Thread Sam Tobin-Hochstadt
On Thu Dec 04 2014 at 9:36:08 AM Robby Findler wrote: > On Wed, Dec 3, 2014 at 10:30 PM, Prabhakar Ragde > wrote: > > I'm currently using Racket 6.1. For some time now, when editing Scribble > > files in DrRacket, I've been getting "file has changed on disk" messages > > when trying to save or r

Re: [racket] Curious error messages

2014-12-04 Thread Jens Axel Søgaard
By any chance: is the file saved inside a Dropbox ? When Dropbox synchronizes it might set a flag/time somewhere. /Jens Axel 2014-12-04 15:30 GMT+01:00 Robby Findler : > On Wed, Dec 3, 2014 at 10:30 PM, Prabhakar Ragde wrote: >> I'm currently using Racket 6.1. For some time now, when editing Sc

Re: [racket] Curious error messages

2014-12-04 Thread Robby Findler
On Wed, Dec 3, 2014 at 10:30 PM, Prabhakar Ragde wrote: > I'm currently using Racket 6.1. For some time now, when editing Scribble > files in DrRacket, I've been getting "file has changed on disk" messages > when trying to save or render - not consistently, just every so often. These > are files I

Re: [racket] [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-04 Thread Stephen De Gabrielle
Thanks for the insight guys. Fortunately I've solved my problem by adding a 1 pixel bitmap. going down the rabbit-hole of trying to fix the underlying problem in the Cocoa widget is beyond my skill. Stephen On Thu, 4 Dec 2014 at 11:48, Neil Van Dyke wrote: > Antony Blakey wrote on 12/03/2014 10:

Re: [racket] [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-04 Thread Neil Van Dyke
Antony Blakey wrote on 12/03/2014 10:09 PM: I'm responsible for the Native L&F for VisualWorks Smalltalk (which is entirely synthetic), and it's a big deal for many of our customers. Even on Windows. Very glad to see a VisualWorks person here! (Not everyone knows, but VisualWorks began pushin

Re: [racket] [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-04 Thread Antony Blakey
> On 4 Dec 2014, at 18:52, Stephen De Gabrielle wrote: > > How does your team manage tracking native L&F? I'm assuming you have your own > gui toolkit and you mimic the platforms you target as closely as possible? Yes, the GUI toolkit is 100% non-native. Over the last two releases we've devel

Re: [racket] Continuation in embedding Racket

2014-12-04 Thread Nesterov Kirill
Little clarification. I call (call-with-continuation-prompt (lambda () (generate-digit) (generate-digit))) and it's successfully executed, but if I try (call-with-continuation-prompt (lambda () (generate-digit)) two times - access violation occurs. 03.12.2014, 23:55, "Matthew Flatt" : > I don't

Re: [racket] [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-04 Thread Stephen De Gabrielle
How does your team manage tracking native L&F? I'm assuming you have your own gui toolkit and you mimic the platforms you target as closely as possible? Great to hear from someone in the language business :) Kind regards Stephen On Thu, 4 Dec 2014 at 03:09, Antony Blakey wrote: > > > On 4 Dec 20