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  (dynamic-requir

[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 "Rack

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

2020-06-09 Thread jon stenerson
08 Jun 20, at 9: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 lexe

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

[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] link: bad variable linkage

2017-01-30 Thread jon stenerson
f error could be resolved! (even when all > files are compiled by DrRacket) > Usually, I just turn off "populate 'compiled' directories", but then > DrRacket needs to compile the file on each F5, which can take some precious > time. > Th

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 yo

Re: [racket-users] reading html

2016-02-25 Thread jon stenerson
but instead want to use http://docs.racket-lang.org/html-parsing/index.html Jay On Thu, Feb 25, 2016 at 1:13 PM, jon stenerson 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 and . You can see in thi

[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] a little bug

2016-02-05 Thread jon stenerson
r wrote: Sorry 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 wrote: Thanks for the explanation. I appreciate it. On 2/5/2016 1:55 PM,

Re: [racket-users] a little bug

2016-02-05 Thread jon stenerson
aph). I hope this clears up the issue somewhat. In the meantime, I suggest you lower the memory limit for your machine. Robby On Fri, Feb 5, 2016 at 10:53 AM, jon stenerson wrote: Actually you don't even have to run the program. With memory limit set to 1024, just open a file containing

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 di

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 the

[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 DrRacket

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

2016-01-31 Thread jon stenerson
to reproduce the problem. Thanks, Robby On Sun, Jan 31, 2016 at 4:51 PM, jon stenerson 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 internal tables in the .zo files (

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

2016-01-31 Thread jon stenerson
te. If the latter, then it is a bug. Robby On Sun, Jan 31, 2016 at 4:17 PM, jon stenerson 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 just adding or subtracting a blan

[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 t

[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 uns

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

2016-01-12 Thread jon stenerson
ted-caller. 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]

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 a

Re: [racket-users] net/url question

2015-10-16 Thread Jon Stenerson
least something like (error 'http-conn-send! "URL is missing a path") so it fails more understandably? On Fri, Oct 16, 2015 at 6:18 AM, Jon Stenerson wrote: This works: (define p (head-impure-port (string->url "http://www.racket-lang.org/";))) (read-line p) "

[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] Please help with syntax

2014-06-28 Thread Jon Stenerson
On June 28, 2014, at 12:43AM, Roman Klochkov wrote: Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Please help with syntax

2014-06-28 Thread Jon Stenerson
On June 28, 2014, at 12:43AM, Roman Klochkov wrote: Racket Users list: http://lists.racket-lang.org/users

[racket] create executable on linux

2014-03-08 Thread Jon Stenerson
If anyone has linux available can you try this out and see if it is an actual bug, and not just my installation? I did reinstall Racket 6 to no avail. I also checked that this does not happen on Windows. Thanks. If I enter any program in DrRacket 6.0 on Ubuntu #lang racket "OK" then do "Creat

[racket] define-syntax comment

2014-03-06 Thread Jon Stenerson
When I run this in DrRacket, the first (m) gives 0 and the second gives #. #lang racket (m) (define-syntax m (lambda (stx) #'+)) (m) Seems a little strange to me. I see why it happens but I guess I had expected a "use before definition" warning. Racket Users list: htt

Re: [racket] struct-copy and custom-write bug?

2014-03-01 Thread Jon Stenerson
I get it. Thanks all. Racket Users list: http://lists.racket-lang.org/users

[racket] struct-copy and custom-write bug?

2014-03-01 Thread Jon Stenerson
When I put the following in the DrRacket definitions window and then evaluate t, it works for a few seconds and runs out of memory. Anyone understand the problem? #lang racket (define (Print stx port mode) (if (Atom? stx) (write-string "ATOM " port) (Print (Pair-cdr stx) port mod

[racket] Open recent

2012-07-09 Thread Jon Stenerson
Using DrRacket 5.2.1 on Ubuntu 12.04. The DrRacket recent list does not work at program launch. I have to do a file save first. Then the recent list works until next time I start DrRacket. Any ideas? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] a syntax-case question

2011-09-28 Thread Jon Stenerson
Thanks guys. I get it now. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] a syntax-case question

2011-09-27 Thread Jon Stenerson
I'm trying to understand what this is supposed to do: (define (parse stx) (syntax-case stx () [(_ p ...) #'(p ...)])) (display (parse #'(1 2 3))) If I run this in DrRacket with first line #lang racket I get a syntax object containing a list: # If I run with #!r6rs instead I get a list of