[racket-users] Interning custom types?

2019-03-23 Thread jackhfirth
If I wanted to make my own interned data type, how hard would that be? I have a datatype representing an immutable sorted set of keywords and I want to guarantee that total memory use for these sets depends only on the number of unique combinations of keywords created by a program. -- You

Re: [racket-users] Error handling for the GUI

2019-03-23 Thread Greg Hendershott
Using `exn->string` from `racket/exn` should usually include context ("stack trace")? https://docs.racket-lang.org/reference/exns.html#(def._((lib._racket%2Fexn..rkt)._exn-~3estring)) Also there will be more context to see, if in DrRacket or racket-mode you've selected that higher level.

Re: [racket-users] Error handling for the GUI

2019-03-23 Thread Ben Greenman
On 3/23/19, David Storrs wrote: > Alex makes good points, but I'm curious about the original question: Is > there a straightforward way to tell which function it was whose contract > was violated, aside from parsing the message? Or, more generally, where a > specific exception came from? For

Re: [racket-users] Error handling for the GUI

2019-03-23 Thread David Storrs
Alex makes good points, but I'm curious about the original question: Is there a straightforward way to tell which function it was whose contract was violated, aside from parsing the message? Or, more generally, where a specific exception came from? On Fri, Mar 22, 2019 at 7:17 PM Alex Harsanyi

Re: [racket-users] Can someone help me solve a raco mystery?

2019-03-23 Thread Gustavo Massaccesi
> 2) The error seems to happen on computers where I am switching some package > in the dependency graph from a catalog installation to a github repo installation. > I'm not sure if this could contribute to raco deciding that two packages with the > same name are actually different and, for some

[racket-users] Re: SQL DB tooling

2019-03-23 Thread Alex Harsanyi
The package is called "north" and you can find it here: https://pkgs.racket-lang.org/package/north There is also the announcement on Reddit: https://www.reddit.com/r/Racket/comments/akob56/ann_north_database_migrations/ Alex. On Saturday, March 23, 2019 at 12:40:48 PM UTC+8, Aidan Gauland