Re: [racket-users] Version metadata on Racket packages

2021-03-17 Thread Jeff Henrikson
ot;unstable" or "experimental", like unstable/gui/redex <https://docs.racket-lang.org/unstable-redex/index.html>or my adjutor/unstable <https://docs.racket-lang.org/adjutor/Unstable.html>, or you put a big scary warning in the docs like this <https://docs.racket-lang.or

[racket-users] Version metadata on Racket packages

2021-03-16 Thread Jeff Henrikson
cket package manager? Thanks in advance, Jeff Henrikson #lang racket ;; obtain data with: ;; curl https://pkgs.racket-lang.org/pkgs-all > contrib_pkgs-all.sexp ;; relfin is "contrib_pkgs-all.sexp" or similar. ;; ;; In practice it's one value that comes over the

Re: [racket-users] Version metadata on Racket packages

2021-04-08 Thread Jeff Henrikson
-Hochstadt wrote: On Wed, Mar 17, 2021 at 1:58 PM Jeff Henrikson wrote: Thanks for the help. In fact there are two concepts here, and part of what I think confused you is something I just discovered this week and plan to report as a bug: https://pkgs.racket-lang.org/pkgs-all does not include

Re: [racket-users] Version metadata on Racket packages

2021-04-08 Thread Jeff Henrikson
of old packages) then I recommend Bogdan Popa's racksnaps. Sam On Thu, Apr 8, 2021, 8:57 PM Jeff Henrikson <mailto:jehenri...@gmail.com>> wrote: Sam, Thanks for the help. >> Could it be that the package service is actually deleting old versions of packages when

[racket-users] How to recover whitespace from syntax->string

2021-04-08 Thread Jeff Henrikson
behavior if I read-syntax from a file and apply syntax->string to those values. Does anyone know how to get syntax->string to recover the original whitespace? I'm using Racket 8.0 cs on Ubuntu 20. Thanks in advance, Jeff Henrikson -- You received this message because you are subscri

Re: [racket-users] How to recover whitespace from syntax->string

2021-04-09 Thread Jeff Henrikson
h of stuff to decorate.  If I try to do the more convenient outside position for quasisyntax/loc, my EOL data seems to get overwritten: ;; ex4 (let* ((xs '("collected" "from" "separate" "lines"))    (ys (syntax-on-lines xs)))   (syntax->string (

Re: [racket-users] How to recover whitespace from syntax->string

2021-04-09 Thread Jeff Henrikson
) (define in (open-input-string "(comment\n  \"hello world\"\n  line)")) (port-count-lines! in) (syntax->string (read-syntax "mystring" in)) ; -> "comment\n \"hello world\"\n line" On Fri, Apr 9, 2021 at 2:10 AM Jeff Henrikson <mailto

Re: [racket-users] Obtaining the path of the application program?

2021-08-27 Thread Jeff Henrikson
places. Regards, Jeff Henrikson On 8/26/21 8:14 AM, Matthew Flatt wrote: The analog to the first argument to main in C is (find-system-path 'run-file) I think that's probably what you want. Something closer to `get-current-source` but adapting to a run-time file is (variable

[racket-users] Obtaining the path of the application program?

2021-08-26 Thread Jeff Henrikson
ing the original source location if the program is compiled with raco exe (and then moved). Is there a way in racket to obtain the path of the application program? Jeff Henrikson -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To uns

Re: [racket-users] Re: Detecting broken inbound TCP connections

2022-07-05 Thread Jeff Henrikson
Thanks Tony, I can confirm that eof-evt promptly delivers the expected information about the dropped TCP connection. Can an application promptly find out about dropped connections from any available HTTP library for racket? Jeff Tony Garnock-Jones unread, Jul 2, 2022, 9:23:51 AM (2

[racket-users] Re: Detecting broken inbound TCP connections

2022-07-01 Thread Jeff Henrikson
try testing the input port for closedness two different ways. The default code tests with port-closed-evt. The commented out code tests by calling port-closed? in a loop.  Neither method succeeds in detecting the broken TCP connection. Thanks for any help. Regards, Jeff Henrikson #lang

[racket-users] Detecting broken inbound TCP connections

2022-06-30 Thread Jeff Henrikson
Racket users, How do I accept an inbound TCP connection so that once I am processing it, if the connection is broken by the client or network, my program promptly finds out? Regards, Jeff Henrikson -- You received this message because you are subscribed to the Google Groups "Racket