Re: [racket-users] net/url question

2015-10-16 Thread Jon Stenerson
t;URL is missing a path") so it fails more understandably? On Fri, Oct 16, 2015 at 6:18 AM, Jon Stenerson <jonstener...@comcast.net> wrote: This works: (define p (head-impure-port (string->url "http://www.racket-lang.org/;))) (read-line p) "HTTP/1.1 200 OK\r" Bu

[racket-users] net/url question

2015-10-16 Thread Jon Stenerson
This works: > (define p (head-impure-port (string->url "http://www.racket-lang.org/;))) > (read-line p) "HTTP/1.1 200 OK\r" But, leaving off trailing /, I usually see > (define p (head-impure-port (string->url "http://www.racket-lang.org;))) string-trim: contract violation expected: string?

Re: [racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-12 Thread jon stenerson
. Therefore I want ALL parameters protected. Thanks, Jos -Original Message- From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On Behalf Of jon stenerson Sent: miércoles, 13 de enero de 2016 0:50 To: racket-users@googlegroups.com Subject: Re: [racket-users] Calling

Re: [racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-12 Thread jon stenerson
Can you use this instead? (define (protected-caller thunk) (parameterize ([p 'anything]) (thunk))) Works for me Jon -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [racket-users] a little bug

2016-02-05 Thread jon stenerson
t you lower the memory limit for your machine. Robby On Fri, Feb 5, 2016 at 10:53 AM, jon stenerson <jonstener...@comcast.net> wrote: Actually you don't even have to run the program. With memory limit set to 1024, just open a file containing the expression and wait. After a minute or

Re: [racket-users] a little bug

2016-02-05 Thread jon stenerson
Setting the limit lower helped. Thanks. I did not see that message about Background Expansion Terminated before. Now I do. Jon On 2/5/2016 6:55 AM, Robby Findler wrote: It took a while for mine for the custodian limit to be reached and for the expansion to run out of memory. It may be that

Re: [racket-users] a little bug

2016-02-05 Thread jon stenerson
Actually you don't even have to run the program. With memory limit set to 1024, just open a file containing the expression and wait. After a minute or two DrRacket puts up a MSVC runtime error dialog. On 2/5/2016 9:39 AM, jon stenerson wrote: Setting the limit lower helped. Thanks. I did

[racket-users] a little bug

2016-02-04 Thread jon stenerson
#lang racket (let ((x 1)) (letrec-syntax ((m (lambda (t) (syntax (m) (m))) When I run this in DrRacket 6.3 on Win 10 it starts looping. I hit the stop button. The interaction window says "user break" and is ready for another command. However, the windows task manager shows

Re: [racket-users] a little bug

2016-02-05 Thread jon stenerson
we can't do better. And it is really amazing how I actually think so anthropomorphically about these things. :) That really was a literal brain dump. Robby On Fri, Feb 5, 2016 at 3:53 PM, jon stenerson <jonstener...@comcast.net> wrote: Thanks for the explanation. I appreciate it. On 2/5/

[racket-users] unread-char

2016-01-28 Thread jon stenerson
Some languages have stream libraries with a function to put stuff back into an input stream, like Common Lisp's unread-char, or C++ istream::putback. Is there anything like that in Racket? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

Re: [racket-users] link: bad variable linkage

2016-01-31 Thread jon stenerson
eproduce the problem. Thanks, Robby On Sun, Jan 31, 2016 at 4:51 PM, jon stenerson <jonstener...@comcast.net> wrote: Just using DrRacket 6.3 on Win 10. Jon On 1/31/2016 3:22 PM, Robby Findler wrote: The compilation of racket is (not yet) deterministic so things like that can throw off intern

[racket-users] link: bad variable linkage

2016-01-31 Thread jon stenerson
I have some .rkt files and, depending on which file was edited most recently, either it works fine or it gives a compilation error. (By "edited" I mean just adding or subtracting a blank line to change the timestamp). I can submit a simplified example if nobody else has seen this problem. If

Re: [racket-users] link: bad variable linkage

2016-01-31 Thread jon stenerson
up to date. If the latter, then it is a bug. Robby On Sun, Jan 31, 2016 at 4:17 PM, jon stenerson <jonstener...@comcast.net> wrote: I have some .rkt files and, depending on which file was edited most recently, either it works fine or it gives a compilation error. (By "edited" I mean

[racket-users] reading html

2016-02-25 Thread jon stenerson
I find that when I use the html library I have to make a few simple changes to html-spec.rkt. It seems that and are not treated like and . You can see in this example that while remains in the enclosing , does not. I also find that I have to allow pcdata as a child of and . I don't know

Re: [racket-users] reading html

2016-02-25 Thread jon stenerson
Thanks Neil. Jay, it seems to me that the html spec at w3.org says that and can be used as inline elements so that may be a reasonable change to html-spec.rkt. On 2/25/2016 11:30 AM, Neil Van Dyke wrote: Jay McCarthy wrote on 02/25/2016 01:21 PM: Since you mention "in the wild", I think

Re: [racket-users] reading html

2016-02-25 Thread jon stenerson
stead want to use http://docs.racket-lang.org/html-parsing/index.html Jay On Thu, Feb 25, 2016 at 1:13 PM, jon stenerson <jonstener...@comcast.net> wrote: I find that when I use the html library I have to make a few simple changes to html-spec.rkt. It seems that and are not treated like an

Re: [racket-users] link: bad variable linkage

2017-01-30 Thread jon stenerson
some precious > time. > Thank you both then :) > > On Sun, Jan 31, 2016 at 11:19 PM, jon stenerson <jonstener...@comcast.net <mailto:jonstener...@comcast.net>> > wrote: >> >> >> The simplest thing I can find: I have three file

Re: [racket-users] br-parser-tools question

2020-06-09 Thread jon stenerson
:29 PM, Jon Stenerson <mailto:jonstener...@comcast.net>> wrote: Thanks for confirming. I had actually started with the lexer-src-pos version but had other problems like exn:fail:read wanting a list of srclocs and the lexer only having positions. So I switched to lexer-srcpos wh

[racket-users] #lang support for menu bar?

2020-06-13 Thread jon stenerson
Some #lang like scribble cause buttons to be added to DrRacket toolbar. Can they also add menus or menu items? There is a quickscript example that does this so it doesn't seem unreasonable. But I don't know. Jon -- You received this message because you are subscribed to the Google Groups

Re: [racket-users] br-parser-tools question

2020-06-08 Thread Jon Stenerson
between positions and srclocs at some point? Seems awkward. On June 8, 2020, at 6:49 PM, Jon Zeppieri wrote: On Mon, Jun 8, 2020 at 8:36 PM jon stenerson wrote: > > Hi all, > > I don't understand the error message here. The parser seems to be > looking for a position-token but the l

[racket-users] br-parser-tools question

2020-06-08 Thread jon stenerson
Hi all, I don't understand the error message here. The parser seems to be looking for a position-token but the lexer is sending srcloc-tokens? Is there a simple fix? Using Racket 7.7 on WIn 10. I am also confused about whether to use br-parser-tools or parser-tools package. br-* is the more

Re: [racket-users] dynamic-require

2021-02-03 Thread jon stenerson
Very good! Thank you. On 2/2/2021 8:31 PM, jon stenerson wrote: The previous message here prompts this ... I have some modules with paths "A1.rkt" ... "An.rkt". In the interaction window of DrRacket I can require any or all of them and I believe them to be correct.

[racket-users] dynamic-require

2021-02-02 Thread jon stenerson
The previous message here prompts this ... I have some modules with paths "A1.rkt" ... "An.rkt". In the interaction window of DrRacket I can require any or all of them and I believe them to be correct. Now suppose I have a function (F) that produces one of those paths. I try