Re: [racket-users] Re: inflate/deflate

2021-12-10 Thread reilithion
On Friday, January 13, 2017 at 5:32:51 AM UTC-8 Tony Garnock-Jones wrote: > On 01/12/2017 11:32 PM, Lehi Toskin wrote: > > P.S. I didn't see an implementation of ADLER32 anywhere, so I had to > write my own, which took a little longer than expected, but oh well. > > Oh, cool. That'd probably

[racket-users] Re: racket2nix

2018-02-19 Thread reilithion
I'm excited for this project! As a user of both Racket and NixOS, I've been hoping for something like this to come along for a while. I wish I had more time to devote to helping it succeed. I'll probably poke at it a little with a small side project and try to give feedback on using it. --

[racket-users] GUI / Framework high-level overview

2017-07-25 Thread reilithion
I'm trying to write my own source-code editor using `racket/gui` and `framework`. Things are going well! I love what I've been able to accomplish so far, with very little code! I'm to the point where I'd like to add support for another language besides Racket. I've been using `racket:text%`

[racket-users] Re: [racket] Problems using Sandbox and Scribble

2017-07-15 Thread reilithion
This works now. Sadly, I don't remember why I needed it to work. #lang racket (require racket/sandbox scribble/manual) (define safe-eval (parameterize ([sandbox-namespace-specs (append (sandbox-namespace-specs) '(scribble/manual

[racket-users] Re: Forwarding syntax or srcloc

2017-07-15 Thread reilithion
Thanks for all the suggestions, everyone! I ended up going with William's solution, since it required the least change to the way one will likely use my library. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

[racket-users] Forwarding syntax or srcloc

2017-07-04 Thread reilithion
I'd like to be able to get source location information from behind two or more layers of macros. I have a macro, call it mk-data, whose job it is to make an internal data structure. Among other things, it records a srcloc for later tracking. In another module, I have another macro whose job it

[racket-users] Raising multiple exceptions at once

2017-07-04 Thread reilithion
Hi, I have a program that uses multiple threads and may have several exceptions happen more-or-less at once. I'd like to be able to raise them all together and have all of them printed to stderr, including stack traces. I first tried just throwing them in a list and raising the list, but of

[racket-users] Re: Looking for suggestion on accumulating the paths of Graph from HtDP

2016-01-30 Thread reilithion
In fact, this solution isn't even quite correct modulo the representation problem you pointed out yet. It fails on some input graphs: ``` (define problem-graph '((A (B C E)) (B (E)) (C (F ``` As for your nesting list problem, I believe it will nest things deeper the longer

[racket-users] Using local-expand to mostly expand a module?

2016-01-29 Thread reilithion
I'm trying to make a little EDSL that has one form that is special and needs to be collected and later processed. I want to allow a user of the EDSL to write a macro that expands to the special form. I have a module-begin that (so far) looks like this: (define-syntax (module-begin stx)

Re: [racket-users] Odd behavior of syntax-case

2016-01-28 Thread reilithion
amples. With `syntax-case`, > that pattern is not even allowed. > > > At Wed, 27 Jan 2016 23:11:25 -0800 (PST), reilithion wrote: > > I was trying to write a macro today (I'm not too good at writing macros > > yet) > > and I ran up against a wall when I realized that

[racket-users] Odd behavior of syntax-case

2016-01-27 Thread reilithion
I was trying to write a macro today (I'm not too good at writing macros yet) and I ran up against a wall when I realized that syntax-case wasn't behaving the way I expected. I boiled down the behavior to the following test case: #lang racket/base (require (for-syntax racket/base)) ;; Intended