Re: [racket-users] Re: Inadvertedly requiring racket/unsafe/ops

2019-12-23 Thread Dominik Pantůček
Hello all, a short followup on the issue. I opened a PR[1] and Sam raised an interesting question: (require (filtered-in (λ (name) (and (regexp-match #rx"^unsafe-fx" name) (regexp-replace #rx"unsafe-" name ""))) racket/unsafe/ops))

Re: [racket-users] ffi-lib and scribble/srcdoc

2019-12-23 Thread Dominik Pantůček
Hi, On 23. 12. 19 15:29, Sam Tobin-Hochstadt wrote: > What you're seeing is that `scribble/srcdoc` looks for the _binding_ > of `->` from `racket/contract` which is being shadowed by the version > of `->` from `ffi/unsafe`. I would do something like this: > > #lang racket > (require (rename-in

Re: [racket-users] Can I somehow connect to and update values in a specific hash table used by a running web server?

2019-12-23 Thread George Neuner
On 12/21/2019 9:25 PM, Matt Jadud wrote: My off-list thought (which was largely because I wasn't sure it would even work) was to run a second web server on another port that was bound to localhost. Then, SSH onto the localhost when needed, and squirt values into the locally bound webserver

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Marc Kaufmann
Yeah, I realized that after George's message. I also now searched the Github for the message and found this: ``` #:manager [manager (make-threshold-LRU-manager (lambda (request) (response/xexpr `(html (head (title "Page Has Expired.")) (body (p "Sorry, this page has expired. Please go

[racket-users] macOS 10.10 Yosemite?

2019-12-23 Thread Robby Findler
We recently changed a library that DrRacket uses on macOS 10.10 and later, but have only a 10.11 version to test on. Does someone have version 10.10 running that they can download the current Utah snapshot build and report if DrRacket starts properly and if tabs seem to work properly (creating a

Re: [racket-users] ffi-lib and scribble/srcdoc

2019-12-23 Thread Sam Tobin-Hochstadt
What you're seeing is that `scribble/srcdoc` looks for the _binding_ of `->` from `racket/contract` which is being shadowed by the version of `->` from `ffi/unsafe`. I would do something like this: #lang racket (require (rename-in ffi/unsafe [-> -->]) scribble/srcdoc) (provide (proc-doc/names

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Sam Tobin-Hochstadt
The default is documented here: https://docs.racket-lang.org/web-server/run.html?q=serve%2Fservlet#%28def._%28%28lib._web-server%2Fservlet-env..rkt%29._serve%2Fservlet%29%29 as the default value for the `#:manager` argument. The default handler is `#f`, which produces the behavior you see. You

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Marc Kaufmann
Of course. I read this line of the docs: #:manager manager but not this one: manager : manager? = (make-threshold-LRU-manager

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread George Neuner
On 12/23/2019 6:54 AM, Marc Kaufmann wrote: By the way, where does it say that the default is 130MB? In the docs for serve/servlet. Can I set the instance-expiration-manager to #f and that is the place where it generates the 'Sorry, this page link has expired' error? So I could provide a

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Marc Kaufmann
In order to do everything as I do now - where I have been blissfully unaware of the managers - I do ``` (define the-manager-with-threshold (make-threshold-LRU-manager what-is-this-instance-expiration-handler? (* 512 1024 1024))) (serve/servlet start ... ... #:manager the-manager-with-threshold)

[racket-users] ffi-lib and scribble/srcdoc

2019-12-23 Thread Dominik Pantůček
Hello, apart from parallel sorting and working with unsafe ops, I stumbled upon a very strange behavior using ffi-lib: -->8-- #lang racket (require scribble/srcdoc) (provide (proc-doc/names a-struct? (-> any/c boolean?) (a) ("Returns true if a is a-struct"))) (struct