[racket-users] test user-interact function dont work

2019-02-16 Thread Joao Pedro Abreu De Souza
Hi everyone. I have a test of a user-related function that I don't can see why don't work : #lang racket (require rackunit) (require "../../main.rkt") (check-equal? (with-output-to-string (lambda () (with-input-from-string

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-16 Thread David Van Horn
I've updated the docs to get to the point faster with some early examples. http://dvanhorn.github.io/ralist/ David On Sat, Feb 16, 2019 at 5:21 PM John Clements wrote: > I struggled with whether to send that message… I saw the name, “random > access lists”, thought, “hmm, I wonder what that w

Re: [racket-users] Questions about Scribble docs

2019-02-16 Thread David Storrs
On Sat, Feb 16, 2019 at 9:18 PM Greg Hendershott wrote: > > The package web site seems to think no packages have been built: The > "Most recent build results" item is blank for every of the dozen > packages I just checked. Ah, that would do it. Thanks. > > So I think that's one problem. > > > W

Re: [racket-users] Running raco setup from within DrRacket?

2019-02-16 Thread Greg Hendershott
p.s. If you wanted to do a general thing, for DrRacket, this is what I was referring to. The README is probably enough of a hint, you don't need to read the Emacs Lisp. :) https://github.com/purcell/exec-path-from-shell On Sat, Feb 16, 2019 at 10:07 PM Greg Hendershott wrote: > > From unsophisti

Re: [racket-users] Running raco setup from within DrRacket?

2019-02-16 Thread Greg Hendershott
>From unsophisticated searching the source, it looks like the code to implement deps checking is in setup/private/pkg-deps.rkt -- "private" meaning you're not supposed to use it directly. It seems to be called from the `setup-core` function provided by (non-private) setup/setup-core.rkt. That seem

Re: [racket-users] Questions about Scribble docs

2019-02-16 Thread Greg Hendershott
p.s. As another example of the current breakage: All my own packages that do have documentation, have yellow "This package needs documentation" demerit badges, at the moment. On Sat, Feb 16, 2019 at 9:17 PM Greg Hendershott wrote: > > The package web site seems to think no packages have been buil

Re: [racket-users] Questions about Scribble docs

2019-02-16 Thread Greg Hendershott
The package web site seems to think no packages have been built: The "Most recent build results" item is blank for every of the dozen packages I just checked. So I think that's one problem. When that's working normally, as it usually does, there are two levels of refresh: 1. The package catalog

[racket-users] Questions about Scribble docs

2019-02-16 Thread David Storrs
Do I need to do something particular to make the package server notice my documentation? I've got a scribblings/struct-plus-plus.scrbl file but the package server is still listing it as "needs documentation". Separate but related, when I install a module and it builds the documentation, is there

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-16 Thread 'John Clements' via Racket Users
I struggled with whether to send that message… I saw the name, “random access lists”, thought, “hmm, I wonder what that would like”, and clicked on the link. I wound up reading a bit about whether I should use (first impresssion) superficial or in-depth contracts, and ran out of steam pretty qui

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-16 Thread David Van Horn
There are several examples for every function provided by the ralist library. (And it's almost verbatim what's in the Racket reference for pairs and lists.) But... I can add some early examples. No problem. David On Sat, Feb 16, 2019, 4:00 PM John Clements wrote: > The pointer to RaLists wou

Re: [racket-users] Contracts question on structs

2019-02-16 Thread David Storrs
Hi Chris, I just pushed an update to struct-plus-plus that I think does what you want. https://pkgd.racket-lang.org/pkgn/package/struct-plus-plus The package server is telling me "This package needs documentation". I'm not sure why that is, since I've got scribblings/strut-plus-plus.scrbl and I

Re: [racket-users] raco distribute creating too many subdirectories

2019-02-16 Thread 'John Clements' via Racket Users
Good to know; I also use define-runtime-path with abandon, and was not aware of possible consequences of casting too wide a net. Thanks! John > On Feb 10, 2019, at 09:49, Philip McGrath wrote: > > I think this is probably a consequence of the quirk of `define-runtime-path` > with directories

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-16 Thread 'John Clements' via Racket Users
The pointer to RaLists would be much more enticing if we could convince David Van Horn to begin his documentation with a couple of small examples…. John > On Feb 13, 2019, at 14:35, Stephen De Gabrielle > wrote: > > Thanks > > I should note that anyone with a GitHub account can edit > htt

[racket-users] Re: Little language design/implementation guidance

2019-02-16 Thread George Neuner
On Wed, 13 Feb 2019 15:24:41 +, Stephen De Gabrielle wrote: >As far as when to consult a specialist/expert I didn't mean a programming >languages researcher, I was more referring to when you were designing a >little language like a templating system or config file. Would that be >covered by

[racket-users] Compiler Fundamentals: Closure Conversion

2019-02-16 Thread rain1
Hello everybody, I wanted to share this short literate program/article I wrote that teaches the closure conversion compiler pass. I hope it's useful or interesting to some of you. It is done using the nanopass style. If you've got any questions I will try to answer! #lang racket ;; this i

Re: [racket-users] [macro help] How can I render a parenthesized set of elements optional?

2019-02-16 Thread David Storrs
Thank you both -- Jon for the code and Alexis for the thorough description. Alexis, this was exactly what I was looking for. I've been frustrated with macros because I kept trying and failing to figure out a mental model of what the heck was going on under the hood. I had some of the basics, but

[racket-users] Alpine-based docker racket images

2019-02-16 Thread Tony Garnock-Jones
Hi all, Just a quick note to let anyone interested know I've built some Racket 7.2 docker images: one "full" and one "minimal", from the respective source tarballs, and for both "x86_64" and "aarch64". I'm still working on armhf. There's also a manifest set up against tags "latest" (for full) a