Re: [racket-users] Racket 5, multiple-collection packages and info.rkt

2018-12-12 Thread 韋嘉誠
Right, that's a good option. For the moment, it wouldn't even need a branch, just point at the current version of the package while the 6.x-compatible version moves on. It's a mature package, and if people need any new functionality that gets implemented later, they should be prepared to upgrade

Re: [racket-users] Racket 5, multiple-collection packages and info.rkt

2018-12-12 Thread Ben Greenman
Another option - make a branch for the Racket 5 code - add version exceptions [1] to pkgs.racket-lang.org - split the repo on the master branch The downside to this plan is that someone needs to add a version exception for every 5.x version of Racket that `graph` wants to support. [1]

[racket-users] Re: JSON vs. normal Racket for simple serialization to database

2018-12-12 Thread George Neuner
On Wed, 12 Dec 2018 07:26:44 -0800 (PST), Brian Adkins wrote: >I have some simple serialization needs. In Ruby, I would always serialize >an object to JSON and store in a postgres text column. However, w/ Racket, >it appears another option is to simply use read/write. Any reason not to >use

Re: [racket-users] Re: Using Racket behind proxy

2018-12-12 Thread Matthew Butterick
> On Dec 10, 2018, at 11:21 AM, making-a-racket wrote: > > Does anyone know if Racket is hard-coded to use git://? The URL that Racket uses to install a package is whatever the developer has listed on the package server — some begin with git://, some with https://, some with http://.

[racket-users] Self reference in struct-copy ?

2018-12-12 Thread Brian Adkins
Rather than the following: (struct descriptive-name (a b)) (define my-instance (descriptive-name 7 8)) (define y (struct-copy descriptive-name my-instance [a (+ 1 (descriptive-name-a my-instance))])) Would it be better to allow referring to struct fields as in the following? (define y

Re: [racket-users] JSON vs. normal Racket for simple serialization to database

2018-12-12 Thread Brian Adkins
In this particular case, the only purpose is saving/loading data to/from a db column. I have plenty of other uses for JSON, so I'm thankful for the Racket JSON library, but I lean toward simplicity when possible. On Wednesday, December 12, 2018 at 10:35:24 AM UTC-5, Jon Zeppieri wrote: > >

Re: [racket-users] JSON vs. normal Racket for simple serialization to database

2018-12-12 Thread Jon Zeppieri
Postgres can index jsonb column data. Also, other languages will have an easier time reading it. If neither of those matter for your case, then no. - Jon On Wed, Dec 12, 2018 at 10:26 AM Brian Adkins wrote: > I have some simple serialization needs. In Ruby, I would always serialize > an

[racket-users] JSON vs. normal Racket for simple serialization to database

2018-12-12 Thread Brian Adkins
I have some simple serialization needs. In Ruby, I would always serialize an object to JSON and store in a postgres text column. However, w/ Racket, it appears another option is to simply use read/write. Any reason not to use read/write for serialization instead of JSON? -- You received this

Re: [racket-users] Racket 5, multiple-collection packages and info.rkt

2018-12-12 Thread Stephen Chang
Hi Claes, Thanks for the effort in splitting the package. Would any users of the graph library object to dropping support for 5.x? On Tue, Dec 11, 2018 at 10:19 PM Claes Wallin (韋嘉誠) wrote: > > I am trying to split the package graph into graph-doc and graph-lib, > see:

Re: [racket-users] Macro introducing definitions from list of ids

2018-12-12 Thread Jens Axel Søgaard
Hi Matt, In the definition of expand-ask-breed you have: (syntax/loc stx (define-syntax (ask-breed stx-inner) (syntax-parse stx-inner [(_ bodies (... ...)) (syntax/loc stx-inner (for ([critter breed-vec])

Re: [racket-users] Macro introducing definitions from list of ids

2018-12-12 Thread Matt Jadud
Hi all, I have improved my question. In asking it, I'm trying to make sure I understand things so that I can ultimately ask fewer questions (about this). Apologies for the verbosity; it exposes more surface for confusion to be corrected. I read Matthew's "Macros as scopes" last night before

[racket-users] Implementing Racket linting in Vim Ale

2018-12-12 Thread Anthony Quizon
Hello, I'm trying to implement a racket linter in Ale for vim. I've just taken neomake code and ported it to ale. Heres what I have so far: ale/raco.vim