Re: [racket-users] Reflecting on context arity

2020-03-27 Thread Ben Greenman
procedure-result-arity is very limited if you can find a way to call `f` once, though, you could assume that its result arity never changes -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving

[racket-users] Reflecting on context arity

2020-03-27 Thread William J. Bowman
I'm trying to write a generalization of map that supports multiple return values: (define (map-n n f ls . lss) (if (empty? ls) (apply values (build-list n (lambda _ '( (call-with-values (thunk (apply f (car ls) (map car lss))) (lambda vs (call-with-values

Re: [racket-users] Embedding Racket CS

2020-03-27 Thread Matthew Flatt
At Fri, 27 Mar 2020 15:48:13 -0700 (PDT), zeRusski wrote: > How I might go about embedding Racket CS The current development version (as reflected by snapshot builds) now has support and documentation for that: https://www.cs.utah.edu/plt/snapshots/current/doc/inside/cs-embedding.html Of

[racket-users] Embedding Racket CS

2020-03-27 Thread zeRusski
How I might go about embedding Racket CS in a fairly big C codebase, about 100KLOC big. It is exceptionally well written C authored by people who knew what they were doing. I am sadly not one such person, so I'd rather not muddy things with my exceptionally terrible C. C code will be driving

[racket-users] Single Stepping?

2020-03-27 Thread Nicholas Papadonis
Is there documentation on single stepping in Racket? I.e. setting a breakpoint and single stepping evaluation of expressions from there? I found: https://docs.racket-lang.org/stepper/index.html however, the documentation is lacking this info. Thanks! -- You received this message because you

[racket-users] UDP networking issue

2020-03-27 Thread David Storrs
This isn't a Racket question per se, but I'm hoping someone here will have a suggestion. We're working on NAT traversal, it's failing to connect, and we aren't clear why. On hostname Alice on the LAN: (define s (udp-open-socket)) (udp-bind! s #f 3) (udp-send-to s "18.218.67.59" 54545 #"hi")

Re: [racket-users] How to find source file loaded by/relevant for (require )?

2020-03-27 Thread Alexis King
I recommend Ryan Culpepper’s whereis package: https://docs.racket-lang.org/whereis/index.html It provides both a programmatic interface and a raco command. Alexis > On Mar 27, 2020, at 03:56, Marc Kaufmann wrote: > > Hi, > > I am trying to

[racket-users] How to find source file loaded by/relevant for (require )?

2020-03-27 Thread Marc Kaufmann
Hi, I am trying to set up vim such that it jumps to the correct source file when I see a `(require some-module)`. With packages that I have installed myself, I have managed to do so (80% solution), since they get installed in $HOME/.racket//pkgs. However, I can't quite figure out where all