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

2019-12-22 Thread Philip McGrath
The other advice here is good and could help to implement a more principled solution. But, if you want to do something equivalent to editing a running application's database on the fly, just using Racket values instead of a DB, I would build on `file-box`: https://docs.racket-lang.org/web-server/st

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

2019-12-22 Thread Philip McGrath
You can probably use `make-threshold-LRU-manager ` with a much higher memory threshold than the default from `serve/servlet`, which is about 1

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-22 Thread Matthew Flatt
At Sun, 22 Dec 2019 20:28:41 +0300, Dmitry Pavlov wrote: > > > Thanks! It really is a bug in `scheme_get_long_long_val`, where the > > extraction can read past the end of a bignum on a 32-bit platform. > > > > Repair pushed. > Great, thank you! > Given that I do not normally build Racket, should I

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-22 Thread Dmitry Pavlov
Thanks! It really is a bug in `scheme_get_long_long_val`, where the extraction can read past the end of a bignum on a 32-bit platform. Repair pushed. Great, thank you! Given that I do not normally build Racket, should I wait for the next snapshot from UoU or Northwestern to check out the rep

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-22 Thread Matthew Flatt
At Sat, 21 Dec 2019 11:06:33 +0300, Dmitry Pavlov wrote: > The error pops out not on the first or second positioning exceeding 1 GB. In > fact, it happens on different moments in different runs. Thanks! It really is a bug in `scheme_get_long_long_val`, where the extraction can read past the end o

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-22 Thread Matthew Flatt
At Sat, 21 Dec 2019 00:22:19 -0500, George Neuner wrote: > Is Racket really writing billions of zeroes rather than creating a > sparse file?  It seems to me that this file should only create 2 actual > data blocks, and (modulo JIT) the program should finish almost > instantly.  What am I missing

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

2019-12-22 Thread Marc Kaufmann
Thanks George and Matt, those look great. I think I'll try to implement your version later George, as the syntax-parse makes me sure I'll screw up. However it looks like a really nice way to contain what can be changed/updated, while adding things flexibly to it. And it should be possible to combi