Re: [racket-users] Order of argument conventions, or ... conventions of argument ordering

2016-04-21 Thread Eugene Wallingford
> Eugene Wallingford wrote on 04/21/2016 11:18 AM: > > This also reminds me fondly of Smalltalk's separable message > > names. They always felt more natural to me than more typical > > keyword arguments. > > On a tangent, Smalltalk-like names weren't hard to implement just now, wi

Re: [racket-users] Order of argument conventions, or ... conventions of argument ordering

2016-04-21 Thread Neil Van Dyke
Eugene Wallingford wrote on 04/21/2016 11:18 AM: This also reminds me fondly of Smalltalk's separable message names. They always felt more natural to me than more typical keyword arguments. On a tangent, Smalltalk-like names weren't hard to implement just now, with `syntax-p

Re: [racket-users] Question about syntax properties and expansion

2016-04-21 Thread Jack Firth
> In the same way that properties can now be attached as preserved or > not, we could and an option for specifying whether properties are are > propagated/merged or not. If it's useful, we could even allow a > combining function to be associated with with either a property value > or a property key

Re: [racket-users] Question about syntax properties and expansion

2016-04-21 Thread Vincent St-Amour
On Thu, 21 Apr 2016 15:55:34 -0500, Matthew Flatt wrote: > In the same way that properties can now be attached as preserved or > not, we could and an option for specifying whether properties are are > propagated/merged or not. If it's useful, we could even allow a > combining function to be associa

Re: [racket-users] Order of argument conventions, or ... conventions of argument ordering

2016-04-21 Thread Daniel Prager
Great comments. Thank-you! I think that for the purposes of remembering "take and drop family functions are backwards / wrong" should suffice, or train myself to think "from list L take n elements", etc. Another point that occurred to me is that the common library naming convention of object-fn (

Re: [racket-users] Question about syntax properties and expansion

2016-04-21 Thread Matthew Flatt
At Thu, 21 Apr 2016 11:45:08 -0700 (PDT), Jack Firth wrote: > The documentation for syntax properties states that if a macro sets a syntax > property during expansion then instead of the expanded syntax having only the > set value, it has a cons tree containing that value and any previous values

[racket-users] Question about syntax properties and expansion

2016-04-21 Thread Jack Firth
The documentation for syntax properties states that if a macro sets a syntax property during expansion then instead of the expanded syntax having only the set value, it has a cons tree containing that value and any previous values set for that same property. As I understand it, this means it's i

Re: [racket-users] Limiting memory for raco

2016-04-21 Thread Matthew Flatt
At Thu, 21 Apr 2016 08:45:13 -0700, Jordan Johnson wrote: > Is it possible to limit the memory that raco uses for running builds (beyond > whatever reduction I might get by using the -j option to reduce the number of > parallel jobs)? > > If so, how? Mostly, a build with a given sets of package

[racket-users] Limiting memory for raco

2016-04-21 Thread Jordan Johnson
Hi all, Is it possible to limit the memory that raco uses for running builds (beyond whatever reduction I might get by using the -j option to reduce the number of parallel jobs)? If so, how? Thanks, jmj -- You received this message because you are subscribed to the Google Groups "Racket Use

Re: [racket-users] Custodian/Will question

2016-04-21 Thread Deren Dohoda
Thanks, Matthew. There's safety and then there's safety. I'm mostly concerned with and application-level soft reset. I can add some thread messaging to make sure the thread dies on its own, then shut down everything. I was hoping to avoid this plumbing. Deren On Apr 21, 2016 10:40 AM, "Matthew F

Re: [racket-users] Order of argument conventions, or ... conventions of argument ordering

2016-04-21 Thread Eugene Wallingford
On Thu, Apr 21, 2016 at 08:07:36AM -0700, Jordan Johnson wrote: > 1) With many of these functions, there's usually an imaginary preposition > there, when I read most of them functions: > > sort ls by > > cons X onto ls > remove X from ls > map f over ls I think this way when I design a fun

Re: [racket-users] Order of argument conventions, or ... conventions of argument ordering

2016-04-21 Thread Jordan Johnson
1) With many of these functions, there's usually an imaginary preposition there, when I read most of them functions: sort ls by > cons X onto ls remove X from ls map f over ls 2) Any "-ref" function — list-ref, vector-ref, hash-ref — has the object first. Longstanding Scheme/lisp convention, an

Re: [racket-users] custodians & wills (FAQ?)

2016-04-21 Thread Matthew Flatt
At Wed, 20 Apr 2016 20:58:34 -0400, "'John Clements' via Racket Users" wrote: > I feel like this must be a FAQ. I have a server process that I’m starting > with > process*, and I’d like to try to make sure that it gets killed when the > “program halts.” (Presumably, this corresponds to process e

Re: [racket-users] Custodian/Will question

2016-04-21 Thread Matthew Flatt
At Tue, 19 Apr 2016 10:39:57 -0400, Deren Dohoda wrote: > I have a thread that can only be shut down during certain points: In general, you can't implement that safety in Racket, in much the same way you can't implement that in Unix or Windows process. As long as the thread might get shut down th

Re: [racket-users] Order of argument conventions, or ... conventions of argument ordering

2016-04-21 Thread Jay McCarthy
I believe the actual principle is, "Scheme did this" and "LISP did this" so "We do this." I don't think that's necessarily a good reason though. :) I generally prefer object-first, but sometimes not. If I were to dig down to when, I would say that I want the expression that is likely to be longest

[racket-users] Order of argument conventions, or ... conventions of argument ordering

2016-04-21 Thread Daniel Prager
Does anyone else struggle to remember the order of arguments for some of the common functions? There seem to be two extant conventions, roughly: 1. object-first: (function obj other) 2. object-last: (function other obj): e.g. Object-first: take, drop, list-ref, add-between, sort Object-las