Re: [racket-users] Pretty Printing for ASTs represented as structs

2020-08-16 Thread Jay McCarthy
I recommend defining the structs with `#:transparent` and just using `pretty-write` or `pretty-print`. Jay -- Jay McCarthy Associate Professor @ CS @ UMass Lowell http://jeapostrophe.github.io Vincit qui se vincit. On Sun, Aug 16, 2020 at 4:48 PM Jeremy Siek wrote: > > Hi All, > > I'm

[racket-users] Re: Pretty Printing for ASTs represented as structs

2020-08-16 Thread jackh...@gmail.com
I recommend using make-constructor-style-printer , which automates a lot of the fiddly indentation-handling you'd have to do otherwise. On Sunday, August 16, 2020 at

[racket-users] pkg.racket-lang.org account creation / recovery failing

2020-08-16 Thread Marc Burns
Hi all, I'm currently getting a stack trace starting with "subprocess: process creation failed" when I try to get a code to sign up for pkg.racket-lang.org. The stack trace shows up right after I enter my email and hit "Email me a code". I've tried a few different email addresses and browsers.

[racket-users] Pretty Printing for ASTs represented as structs

2020-08-16 Thread Jeremy Siek
Hi All, I'm looking into using Racket structs to represent abstract syntax trees. I've gotten as far as defining gen:custom-write properties, but have not yet figured out how to control indenting. Also, I'm not sure I'm just calling write-string, write, and newline in my gen:custom-write

saneboxes: welcome remedies for a world in turmoil [racket-users]

2020-08-16 Thread Etan Wexler
Matthew Flatt recommended “wrapping the sanebox creation”. Matthew, these saneboxes that you’ve invented seem to be just the devices that we’ve needed. We’d like an initial batch of 5000 saneboxes, as soon as you can manage, even if unwrapped. Please send the bill to 1500, Pennsylvania Avenue,

Re: [racket-users] Scribble and examples can't read racket-prefs.rktd

2020-08-16 Thread Deren Dohoda
Thank you Matthew, that did resolve the problem, though I was unable to ever determine why I could not display a plot from plot/pict. It seems that it was somehow related to (sandbox-output 'string) which could never be coerced display a bitmap, pict, etc. Ultimately I just used

Re: [racket-users] Strange behaviour on re-executing an sgl program

2020-08-16 Thread Hendrik Boom
I've done more experimenting. It now looks as if some resource is leaking away that * is not recovered when one run is cancelled, drracket closes the window, and another run is started, but * is recovered when I close the window before starting another run. Experimental results: If I run

Re: [racket-users] lsp server

2020-08-16 Thread Philip McGrath
On Fri, Jul 31, 2020 at 2:46 PM Catonano wrote: > I'm playing with a toy project in #Racket > > I'd like to use the lsp server… > how do I connect to it from my Emacs based client ? > Just in case by "use the lsp server" you meant "set up Emacs to work on a

[racket-users] Strange behaviour on re-executing an sgl program

2020-08-16 Thread Hendrik Boom
I hauled the sgl-hello-world program (attached below) into drrracket, version 7.6, english by PLT. I click on 'run'I click on 'run'. It creates a small window containing a small white square. I click on 'run' again. It deetes that window, and creates another small window containing a small

Re: [racket-users] Scribble and examples can't read racket-prefs.rktd

2020-08-16 Thread Matthew Flatt
Sandboxed filesystem and unsafety access is too strict for many purposes. For documentation, I recommend using a trusted sandbox by wrapping the sanebox creation with `call-with-trusted-sandbox-configuration`. Matthew At Sun, 16 Aug 2020 00:45:46 -0700 (PDT), Deren Dohoda wrote: > Hi Racketeers,

[racket-users] Scribble and examples can't read racket-prefs.rktd

2020-08-16 Thread Deren Dohoda
Hi Racketeers, I'm going in absolute circles trying to understand what I might be doing wrong. I can use the command line scribble to generate html, which works fine except a problem showing # instead of an actual plot/pict image. And for that matter the package installs fine using a local