Re: [racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread Matthew Flatt
At Sat, 9 Jan 2016 22:58:00 +0800, WarGrey Gyoudmon Ju wrote: > 1. Could you please treat the exn:fail:unsupported like a normal case as if > it is wrapped by (eval:error)? > > http://docs.racket-lang.org/ts-reference/type-ref.html#%28form._%28%28lib._type >

Re: [racket-users] Simple regex question. How to match this: "[X] foo"

2016-01-09 Thread Alex Knauth
> On Jan 9, 2016, at 1:38 AM, David Storrs wrote: > > Related question: Perl has a capacity to change your delimiters on regexen > in order to avoid having to backwhack everything. The raw-string package allows this for strings: #lang raw-string/raw-string racket

[racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread WarGrey Gyoudmon Ju
1. Could you please treat the exn:fail:unsupported like a normal case as if it is wrapped by (eval:error)? http://docs.racket-lang.org/ts-reference/type-ref.html#%28form._%28%28lib._typed-racket%2Fbase-env%2Fbase-types..rkt%29._.Ext.Fl.Vector%29%29 this example is about ExtFlVector which is not

[racket-users] typed/racket (or foo #f) doesn't work as expected

2016-01-09 Thread Norman Gray
Greetings. Consider the following: #lang typed/racket ;#lang typed/racket/no-check ; <-- this works as expected (: func (case-> ([#:as (U Integer False)] -> Any) (Integer [#:as (U Integer False)] -> Any))) (define (func (arg1 #f) #:as (opt-arg

Re: [racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread Matthew Flatt
At Sat, 9 Jan 2016 08:34:45 -0700, Matthew Flatt wrote: > At Sat, 9 Jan 2016 22:58:00 +0800, WarGrey Gyoudmon Ju wrote: > > 1. Could you please treat the exn:fail:unsupported like a normal case as if > > it is wrapped by (eval:error)? > > > > >

Re: [racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread Robby Findler
Could this problem be helped if we run something like drdr, but in more configurations? (That doesn't seem particularly simple, tho.) Robby On Sat, Jan 9, 2016 at 10:07 AM, Matthew Flatt wrote: > At Sat, 9 Jan 2016 08:34:45 -0700, Matthew Flatt wrote: >> At Sat, 9 Jan 2016

Re: [racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread Gustavo Massaccesi
In TravisCI, building with the "main-distribution" packge, the versions in linux that don't have "--disable-jit" finish corretly just a minutes after an hour. (I think the official max time is 1 hour, but apparently there are some bonus minutes.) The versions with "--disable-jit" take longer and

Re: [racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread Robby Findler
Yes, right. This is why I suggested drdr. Robby On Sat, Jan 9, 2016 at 11:38 AM, Sam Tobin-Hochstadt wrote: > We do run the core racket tests without exflonums on Travis; you can > see an example here: > https://travis-ci.org/racket/racket/jobs/101270780 > > Unfortunately,

Re: [racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread Sam Tobin-Hochstadt
We do run the core racket tests without exflonums on Travis; you can see an example here: https://travis-ci.org/racket/racket/jobs/101270780 Unfortunately, building all of Racket + everything else takes more time that various hosted CI systems allow. If there was a build of Racket without

Re: [racket-users] Simple regex question. How to match this: "[X] foo"

2016-01-09 Thread Matthew Butterick
> ...and extract the following strings: > "[X] Escape with Inoue-sensei" > "[X] Forget all these disloyal options and stick with Shikigami-sensei's > plan" > What method would you suggest for that? There's nothing wrong with `regexp-whatever`. But because Racket has so many good tools for list

Re: [racket-users] warning on use trie functions in #lang racket?

2016-01-09 Thread Robby Findler
I gave this a try here: https://github.com/rfindler/tr-pfds but got stuck. Robby On Fri, Jan 8, 2016 at 9:14 AM, Sam Tobin-Hochstadt wrote: > On Fri, Jan 8, 2016 at 10:10 AM, Robby Findler > wrote: >> I think we must be talking past each

Re: [racket-users] Simple regex question. How to match this: "[X] foo"

2016-01-09 Thread Eli Barzilay
On Sat, Jan 9, 2016 at 9:44 AM, Alex Knauth wrote: > >> On Jan 9, 2016, at 1:38 AM, David Storrs wrote: >> >> Related question: Perl has a capacity to change your delimiters on >> regexen in order to avoid having to backwhack everything. > > [...] >

Re: [racket-users] [racket] suggestions on scribble/example

2016-01-09 Thread WarGrey Gyoudmon Ju
Oh, I see the alternative solution for #1. https://github.com/racket/typed-racket/pull/288 Your discussion there is delightful. Thanks. On Sun, Jan 10, 2016 at 2:51 AM, Robby Findler wrote: > Yes, right. This is why I suggested drdr. > > Robby > > On Sat, Jan 9,

[racket-users] Re: HTTPS for Racket web sites and packages

2016-01-09 Thread Juan Francisco Cantero Hurtado
Can you change also the snapshots in utah.edu to access to the catalog with https? The server supports https. On 09/01/16 04:54, Matthew Flatt wrote: Sam, Ryan, I, and others have been moving Racket services to HTTPS: https://racket-lang.org/ We're changing all references to use HTTPS, so

Re: [racket-users] Simple regex question. How to match this: "[X] foo"

2016-01-09 Thread Daniel Prager
Matthew writes: > Repeated application of `string-split` is my secret weapon. (filter (curryr string-prefix? "[X]") (string-split str "\n")) To say nothing of string-prefix? (new in 6.3) and curryr - nice! Somewhat more explicit (and verbose) variations: (filter (λ (line) (string-prefix?

Re: [racket-users] Re: HTTPS for Racket web sites and packages

2016-01-09 Thread Matthew Flatt
The snapshots from Utah should be configured that way already, at least in the most recent snapshots (6.3.0.14). Were you looking at an older build? If not, can you say more about where you're seeing non-HTTPS URLs? At Sun, 10 Jan 2016 00:45:52 +0100, Juan Francisco Cantero Hurtado wrote: > Can

Re: [racket-users] Re: HTTPS for Racket web sites and packages

2016-01-09 Thread Juan Francisco Cantero Hurtado
Yes, I was testing 6.3.0.13. Sorry for the noise. On sábado, 9 de enero de 2016 17:39:02 (CET) Matthew Flatt wrote: >The snapshots from Utah should be configured that way already, at least >in the most recent snapshots (6.3.0.14). Were you looking at an older >build? If not, can you say more

[racket-users] Web server with x-expressions vs templates

2016-01-09 Thread Marc Kaufmann
Hi all, I was just about to start encoding my forms as formlets when I remembered that there are templates for web development. Do people advise using templates over x-expressions for web development with Racket, that is, what are most people using who do that kind of thing? After rereading

Re: [racket-users] warning on use trie functions in #lang racket?

2016-01-09 Thread Sam Tobin-Hochstadt
Here's an initial pull request: https://github.com/takikawa/tr-pfds/pull/6 It runs John's test case in about 2 ms, instead of multiple seconds. Sam On Sat, Jan 9, 2016 at 2:21 PM, Robby Findler wrote: > I gave this a try here: https://github.com/rfindler/tr-pfds

Re: [racket-users] Re: upload file with http post an Content-Type is multipart/form

2016-01-09 Thread Neil Van Dyke
George Neuner wrote on 01/10/2016 02:22 AM: Why would they break anything? Section 5.1.1 of RFC-2046 says: By "boundary string" I meant what that RFC section calls "boundary parameter value". Putting leading "-" in there is just asking for trouble, for no reason. Not asking for trouble

[racket-users] Re: upload file with http post an Content-Type is multipart/form

2016-01-09 Thread George Neuner
On Fri, 8 Jan 2016 21:32:19 -0500, Neil Van Dyke wrote: >Also, I would not put leading "-" characters in the part boundary >string, even if it doesn't break any servers you test against. I would >use only alphanumeric ASCII characters. Why would they break anything?