[racket-users] Racket Document Translation

2018-11-30 Thread Mr. Lambda
Is there any plan to translate current document of Racket to other language. If true ,how could the translator contribute to the document -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails

Re: [racket-users] Implications of stateless servlets & how/whether to avoid them

2018-11-30 Thread Brian Adkins
Jay: Thanks for taking the time to educate me a bit. I expect you are right regarding some/most of my concerns being due to misunderstandings on my part. Despite playing with Racket for a few years, it wasn't until this particular project (with a deadline) that I really began to dig in more

Re: [racket-users] Implications of stateless servlets & how/whether to avoid them

2018-11-30 Thread Jay McCarthy
Hi Brian, I think you are misunderstanding what that section is about. It is just describing how the system is implemented. There's basically nothing in there that you need to know as user other than "It may take a while to compile." For instance, you don't worry about the fact that all

[racket-users] Re: embedded api docs and the `doc` submodule

2018-11-30 Thread Alex Harsanyi
On Wednesday, November 28, 2018 at 12:10:18 AM UTC+8, Neil Van Dyke wrote: > > What do people think about the following way of providing Scribble API > documentation from a module? > > Scribble can already be used to document Racket packages and the `scrdoc` modules can be used by people who

[racket-users] Thoughts/questions on the DOS package

2018-11-30 Thread Christopher Lemmer Webber
Hello all, This is a conversation I had with Jay earlier earlier this month. I asked if I could forward it and Jay said that's fine, so I'm doing so in case it's of use to anyone else. For those not in the know, Jay's DOS package stands for "Delimited-continuation-based Operating-system

Re: [racket-users] Implications of stateless servlets & how/whether to avoid them

2018-11-30 Thread Brian Adkins
I could be misreading the information in "3.2 Usage Considerations", but it seemed like the modifications to my program were automatic, but maybe that only happens when using #lang web-server or #lang web-server/base ? Regardless, I'm wondering if maybe I should just use (serve) instead of

Re: [racket-users] Implications of stateless servlets & how/whether to avoid them

2018-11-30 Thread Jay McCarthy
There's nothing wrong with ignoring the continuation support in the Web server, either the native ones or stateless ones. If you do, I recommend using something like `create-none-manager` [1] as the `#:manager` argument to `serve/servlet` so that you don't accidentally start using them. The "too

Re: [racket-users] embedded api docs and the `doc` submodule

2018-11-30 Thread Neil Van Dyke
Greg Hendershott wrote on 11/30/18 12:01 PM: Are you familiar with the existing `srcdoc` submodule? https://docs.racket-lang.org/scribble/srcdoc.html If so: I'm curious, what are your thoughts behind not using it? For one reason, when I asked in January whether `srcdoc` is something to

Re: [racket-users] How do I launch a REPL in the context of a file?

2018-11-30 Thread Alexis King
> On Nov 30, 2018, at 08:23, Sam Tobin-Hochstadt wrote: > > I'm not sure why `-e` doesn't evaluate in the same namespace as the > REPL, but if you put `(enter! "my-file.rkt")` in `enter.rktl` then: I’m curious about this, too. At first I thought it was just a misfeature, not necessarily a bug,

Re: [racket-users] Re: Signal handling (or alternative)

2018-11-30 Thread Brian Adkins
Awesome - thanks! I wonder if using serve, instead of serve/servlet, may also avoid the extra functionality described in "Stateless Servlets" that I mentioned in another thread here: https://groups.google.com/forum/#!topic/racket-users/fc0mRI-empE On Friday, November 30, 2018 at 1:57:00 PM

[racket-users] Implications of stateless servlets & how/whether to avoid them

2018-11-30 Thread Brian Adkins
A while ago, I read Jay's response about how to use the Racket web server w/o continuations here: https://groups.google.com/forum/#!msg/racket-users/bTBj-RbMLDA/k80HNazuFAAJ At the time, I didn't dig very deeply into it and just assumed avoiding web-server/servlet would be sufficient, but I

Re: [racket-users] Re: Signal handling (or alternative)

2018-11-30 Thread Bogdan Popa
Brian Adkins writes: > I just did a quick test, and "kill " will stop the Racket web server, > but not gracefully. In other words, it doesn't allow the current request to > finish. Maybe another signal will gracefully stop it? I personally run the server with serve[1] which runs it in a

[racket-users] Re: Signal handling (or alternative)

2018-11-30 Thread Brian Adkins
I just did a quick test, and "kill " will stop the Racket web server, but not gracefully. In other words, it doesn't allow the current request to finish. Maybe another signal will gracefully stop it? On Friday, November 30, 2018 at 1:36:04 PM UTC-5, Brian Adkins wrote: > > The Unicorn app

[racket-users] Signal handling (or alternative)

2018-11-30 Thread Brian Adkins
The Unicorn app server uses signals to perform a graceful restart of the worker processes. For example: "kill -USR2 ". This seems like a reasonable approach, so my first though was to use something similar for my Racket app server processes. I found Tony's unix-signals package, but the

Re: [racket-users] embedded api docs and the `doc` submodule

2018-11-30 Thread Greg Hendershott
Are you familiar with the existing `srcdoc` submodule? https://docs.racket-lang.org/scribble/srcdoc.html If so: I'm curious, what are your thoughts behind not using it? If not: The existing `scribble/srcdoc` interface works, but I think there's definitely an opportunity to build some

Re: [racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread Sam Tobin-Hochstadt
You can report an issue at https://github.com/racket/racket/issues Sam On Fri, Nov 30, 2018 at 10:56 AM Habib Alamin wrote: > > Great points which I’d overlooked. It solved the immediate problem; thanks > for this improved approach. > > I’ll be implementing that soon (hoping it works). I just

Re: [racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread Habib Alamin
Great points which I’d overlooked. It solved the immediate problem; thanks for this improved approach. I’ll be implementing that soon (hoping it works). I just gotta decide where to place the enter file for maximum reusability. Does anyone know where I could report this misfeature, by the way?

Re: [racket-users] minor doc change proposal?

2018-11-30 Thread Greg Hendershott
On Fri, Nov 30, 2018 at 5:58 AM Robby Findler wrote: > What about using the function > > (lambda (x) (and x #true)) > > And putting a short discussion of truthy and a link to elsewhere in the docs? Yeah. I feel like the `filter-map` doc would be fine with just that change. Already it tells you

Re: [racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread Sam Tobin-Hochstadt
I strongly recommend not doing this. In particular, it will break in many situations. A few examples: - any file that isn't written in #lang racket such as typed/racket or scribble/manual or ... - any file that doesn't work the same as a sequence of repl interactions. For example, any use of

Re: [racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread حبيب محمد ألأمين محمد ألهـاد
Thanks for the help, but I've already solved the problem; not sure if my second message went out. I was looking for a very specific workflow, and I have it working now, so I no longer require any help (but am open to any criticisms of the workflow I have chosen). Cheers, Habib > On 30 Nov

Re: [racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread Greg Hendershott
If you have xrepl enabled (it is by default in recent Rackets), you get a bunch of handy commands. Try entering ,help to see them. One is ,enter. So one common workflow is you keep one `racket` process running all the time, and simply type `,en /path/to/to/file.rkt` at the prompt. If typing `,en

Re: [racket-users] Re: What is the best way to daemonize a Racket program on linux?

2018-11-30 Thread hashim muqtadir
I've found monit to work alongside systemd services pretty neatly. As in, I have monit monitoring my web server, which is running using systemd, and monit sends me emails if it's not working or something. -- You received this message because you are subscribed to the Google Groups "Racket

Re: [racket-users] minor doc change proposal?

2018-11-30 Thread Robby Findler
What about using the function (lambda (x) (and x #true)) And putting a short discussion of truthy and a link to elsewhere in the docs? Robby On Thu, Nov 29, 2018 at 11:17 PM Philip McGrath wrote: > I can do it. > > -Philip > > > On Thu, Nov 29, 2018 at 5:17 PM John Clements > wrote: > >> I

[racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread Habib Alamin
I found a solution: nnoremap r :w \| !racket -e "$(grep -v '\#lang' %)" -i This little hack, instead of enter!ing a file, simply echoes the contents of the file into the -e argument using a subshell. Racket treats newlines the same as spaces, and ignores blank lines, but if you're a neat