Re: [racket-users] infix notation embedded in Racket
2015-04-24 14:44 GMT+02:00 Jens Axel Søgaard jensa...@soegaard.net: The arrows disappear when I use the at-exp syntax: @${b^2-4*a*x}. I am not sure why. Anyone? Thanks to Alexander for submitting a fix. /Jens Axel -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Re: raco demod : 'cannot instantiate `racket/gui/base' a second time in the same process
On Saturday, April 25, 2015 01:03:13 PM you wrote: On Saturday, April 25, 2015 01:39:54 AM you wrote: On Saturday, April 25, 2015 01:34:59 AM you wrote: To all, I have a project that I'm trying to compile to a single bytecode file via (raco demod). I compile a module .rkt file which requires several library module .rkt files. One of these module .rkt files is a windowing library that call on #lang racket/gui. (raco demod) manages to flatten and generate the bytecode but the bytecode fails to run with (racket). This is the error I get from (raco decompile). - (#%apply-values _print-values4927 (if (_scheme_register_process_global10921 'GRacket-support-initialized (_cast8910 '1 _scheme _pointer)) (error 'cannot instantiate `racket/gui/base' a second time in the same process) '#void)) - The program runs fine when I compile it with (raco make) and (raco exe). In addition, the windowing library is only required once. What could be causing this error? Regards, Mark This error also repeats if I just (raco demod) the windowing library itself. Regards, Mark I tried a simple sample of GUI code and I get the same error: - #lang racket/gui (let ([window (new frame% [label Test Window] [stretchable-width #t] [stretchable-height #t])]) (new message% [label testing] [stretchable-height #t] [stretchable-width #t] [parent window]) (send window show #t)) -- Regards, Mark I tried a hello world program without calling any windowing but using #lang racket/gui. It seems the issue lies with raco demod and #lang racket/gui. --- #lang racket/gui (displayln Hello World) --- Regards, Mark -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: This is a digitally signed message part.
Re: [racket-users] Racketeer - Continuous Testing Plugin for DrRacket
This looks very nice, thanks! You may wish to use raco pkg install racketeer to install and raco pkg remove racketeer to remove it. These are both available via drracket's menus. Robby On Saturday, April 25, 2015, Mira Leung emailmirale...@gmail.com wrote: Racketeer is a plugin for DrRacket that integrates continuous testing with Racket development. This is aimed primarily at the context of usage within university-level programming courses, and has been tested on computer science freshmen and senior students. Source and more info available at https://github.com/miraleung/racketeer Any comments, feedback, and questions appreciated! Thanks, Mira Leung -- 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 an email to racket-users+unsubscr...@googlegroups.com javascript:;. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] infix notation embedded in Racket
2015-04-24 14:44 GMT+02:00 Jens Axel Søgaard jensa...@soegaard.net: The planet package took a *very* long time to install, so I intend to upload a version to pkg.racket-lang.org. The infix package is now available through pkg.racket-lang.org. /Jens Axel -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Re: raco demod : 'cannot instantiate `racket/gui/base' a second time in the same process
On Saturday, April 25, 2015 01:39:54 AM you wrote: On Saturday, April 25, 2015 01:34:59 AM you wrote: To all, I have a project that I'm trying to compile to a single bytecode file via (raco demod). I compile a module .rkt file which requires several library module .rkt files. One of these module .rkt files is a windowing library that call on #lang racket/gui. (raco demod) manages to flatten and generate the bytecode but the bytecode fails to run with (racket). This is the error I get from (raco decompile). - (#%apply-values _print-values4927 (if (_scheme_register_process_global10921 'GRacket-support-initialized (_cast8910 '1 _scheme _pointer)) (error 'cannot instantiate `racket/gui/base' a second time in the same process) '#void)) - The program runs fine when I compile it with (raco make) and (raco exe). In addition, the windowing library is only required once. What could be causing this error? Regards, Mark This error also repeats if I just (raco demod) the windowing library itself. Regards, Mark I tried a simple sample of GUI code and I get the same error: - #lang racket/gui (let ([window (new frame% [label Test Window] [stretchable-width #t] [stretchable-height #t])]) (new message% [label testing] [stretchable-height #t] [stretchable-width #t] [parent window]) (send window show #t)) -- Regards, Mark -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: This is a digitally signed message part.
RE: [racket-users] define-language, trouble with parentheses.
Hi Matthias, The only thing I can think of is (side-condition pattern guard) where the guard would check for the alternation of + and n. Thanks, Jos _ From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On Behalf Of Matthias Felleisen Sent: sábado, 25 de abril de 2015 19:38 To: Jos Koot Cc: racket-users@googlegroups.com Subject: Re: [racket-users] define-language, trouble with parentheses. Redex's term-language is about defining __abstract__ syntax not concrete syntax. For the former, the tricks of concrete syntax don't matter. So let's think, how would you generalize #lang racket (require redex) (define-language jk (t n (n + t) (n + n + t) (n + n + n + t)) (n number)) (redex-match? jk t 1) (redex-match? jk t (+ 1 1)) (redex-match? jk t (+ 1 1 1)) with the tools you have in Redex? -- Matthias On Apr 24, 2015, at 5:30 PM, Jos Koot wrote: I have trouble translating the following into a define-language form: term ::= number term ::= number + term An attempt like: (define-language my-language (term number (number + term)) does not work. It accepts (1 + (2 + 3)) and ((1 + 2) +3) but not (1 + 2 + 3). May be there already is a method to do something like: (define-language my-language (term number (number + ,@term-list)) (term-list (term))) or (define-languafe my-language (term (number + number ... ...))) where the first ... refers to + and the second one to number, alternating of course. If something like the above two above already is possible in some way, please direct me to the related parts of the docs. If not, would it be a great efffort to allow ,@ or ... ... in a language-definition-clause? If not too big an effort may be I could try to implement it, but I warn you, I would need much guidance. Thanks, Jos -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] reaching connection pool limit on connection pool with +inf.0 limit?
I have a long-running racket server that’s connecting to a MySQL back end. It has a connection pool wrapped in a virtual connection, created like this: ;; create a connection to the database (define conn (virtual-connection (connection-pool (lambda () (mysql-connect #:database sodec2 #:user clements #:password “redacted #:socket mysql-socket) When this server is running, it periodically produces errors of this form: connection-pool-lease: connection-pool-limit reached My reading of the documentation is that the “default” connection pool limit is +inf.0, which suggests that I shouldn’t be getting this error. Is this a bug? Ah, what the heck, lemme ask about my other problem. I’m running this process with everything at or above ‘warning’ level redirected to syslog, and I’m a whole lot of these: System Events =-=-=-=-=-=-= Apr 25 09:02:45 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:02:45 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:02:45 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:02:45 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:02:46 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:02:46 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:03:45 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:03:45 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:03:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:03:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:03:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:03:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:03:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:04:49 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:04:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:04:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:04:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:04:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:04:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:05:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:05:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:05:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:05:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:05:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:05:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:06:50 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:06:54 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:06:54 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:06:54 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:06:54 linode racket: epoll error at remove: Bad file descriptor; errno=9 Apr 25 09:06:54 linode racket: epoll error at remove: Bad file descriptor; errno=9 …. This continues for sometimes hours at a time. I just spent five minutes reading the epoll documentation, and it sounds like … maybe a select() on a fd that’s already closed? John -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] RE: infix notation embedded in Racket
2015-04-24 18:32 GMT+02:00 Jens Axel Søgaard jensa...@soegaard.net: 2015-04-24 18:25 GMT+02:00 Jos Koot jos.k...@gmail.com: Hi Jens Axel, Thanks for replying and explaining. Can you discriminate between a+b and |a+b| or a|+|b? When I get around to adding |...| identifiers to the lexer, it will work like this: a+b will be parsed as (+ a b) |a+b| as a+b(a single identifier) a|+|b will be passed as (+ a b) I forgot to mention that the infix reader already reads foo_bar as foo-bar. I.e. the most common symbols are easily accessible already. /Jens Axel -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racketeer - Continuous Testing Plugin for DrRacket
Mira, you exist. I just submitted a bug report after installing the package and playing with it. -- Also once you get the tool to work on HEAD, please enter it into the catalog so it is easier to install. Thanks, this is really neat and great to have -- Matthias On Apr 25, 2015, at 9:43 PM, Matthias Felleisen wrote: NICE! On Apr 25, 2015, at 8:10 PM, Mira Leung wrote: Racketeer is a plugin for DrRacket that integrates continuous testing with Racket development. This is aimed primarily at the context of usage within university-level programming courses, and has been tested on computer science freshmen and senior students. Source and more info available at https://github.com/miraleung/racketeer Any comments, feedback, and questions appreciated! Thanks, Mira Leung -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] The mails to the bug tracker don't arrive
Hi, I sent a reply to an old bug report (15008) and the mail apparently didn't arrive. Is the bug tracker working? Should I migrate the bug to github? -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Racketeer - Continuous Testing Plugin for DrRacket
Racketeer is a plugin for DrRacket that integrates continuous testing with Racket development. This is aimed primarily at the context of usage within university-level programming courses, and has been tested on computer science freshmen and senior students. Source and more info available at https://github.com/miraleung/racketeer Any comments, feedback, and questions appreciated! Thanks, Mira Leung -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: [racket-users] define-language, trouble with parentheses.
I find: #lang racket (require redex) (define-language jk (t n (n + t) (n + n + t) (n + n + n + t)) (n number)) (redex-match? jk t 1) ; - #t (redex-match? jk t (term (+ 1 1))) ; - #f (redex-match? jk t (term (+ 1 1 1))) ; - #f (redex-match? jk t (term (1 + 2))) ; -#t This makes sense to me. Thanks again, Jos _ From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On Behalf Of Matthias Felleisen Sent: sábado, 25 de abril de 2015 19:38 To: Jos Koot Cc: racket-users@googlegroups.com Subject: Re: [racket-users] define-language, trouble with parentheses. Redex's term-language is about defining __abstract__ syntax not concrete syntax. For the former, the tricks of concrete syntax don't matter. So let's think, how would you generalize #lang racket (require redex) (define-language jk (t n (n + t) (n + n + t) (n + n + n + t)) (n number)) (redex-match? jk t 1) (redex-match? jk t (+ 1 1)) (redex-match? jk t (+ 1 1 1)) with the tools you have in Redex? -- Matthias On Apr 24, 2015, at 5:30 PM, Jos Koot wrote: I have trouble translating the following into a define-language form: term ::= number term ::= number + term An attempt like: (define-language my-language (term number (number + term)) does not work. It accepts (1 + (2 + 3)) and ((1 + 2) +3) but not (1 + 2 + 3). May be there already is a method to do something like: (define-language my-language (term number (number + ,@term-list)) (term-list (term))) or (define-languafe my-language (term (number + number ... ...))) where the first ... refers to + and the second one to number, alternating of course. If something like the above two above already is possible in some way, please direct me to the related parts of the docs. If not, would it be a great efffort to allow ,@ or ... ... in a language-definition-clause? If not too big an effort may be I could try to implement it, but I warn you, I would need much guidance. Thanks, Jos -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] infix notation embedded in Racket
2015-04-24 14:44 GMT+02:00 Jens Axel Søgaard jensa...@soegaard.net: The arrows disappear when I use the at-exp syntax: @${b^2-4*a*x}. I am not sure why. Anyone? I haven't figured it out yet, but it seems to have worked at some point. I have found this: (define-syntax ($ stx) (syntax-case stx () [(_ item ...) (let* ([from-at? (syntax-property stx 'scribble)]) (if from-at? ; reintroduce the original (discarded) indentation (with-syntax ([(item ...) (let loop ([items (syntax-list #'(item ...))]) (if (null? items) '() (let* ([fst (car items)] [prop (syntax-property fst 'scribble)] [rst (loop (cdr items))]) (cond [(eq? prop 'indentation) rst] [(not (and (pair? prop) (eq? (car prop) 'newline))) (cons fst rst)] [else (cons (datum-syntax fst (cadr prop) fst) rst)]]) #'($$ item ...)) #'($$ item ...)))])) -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racketeer - Continuous Testing Plugin for DrRacket
Issues fixed and added to catalog, thanks Matthias! On Saturday, April 25, 2015 at 6:58:22 PM UTC-7, Matthias Felleisen wrote: Mira, you exist. I just submitted a bug report after installing the package and playing with it. -- Also once you get the tool to work on HEAD, please enter it into the catalog so it is easier to install. Thanks, this is really neat and great to have -- Matthias On Apr 25, 2015, at 9:43 PM, Matthias Felleisen wrote: NICE! On Apr 25, 2015, at 8:10 PM, Mira Leung wrote: Racketeer is a plugin for DrRacket that integrates continuous testing with Racket development. This is aimed primarily at the context of usage within university-level programming courses, and has been tested on computer science freshmen and senior students. Source and more info available at https://github.com/miraleung/racketeer Any comments, feedback, and questions appreciated! Thanks, Mira Leung -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racketeer - Continuous Testing Plugin for DrRacket
Needed a DrRacket upgrade to notice that, thanks Robby! On Saturday, April 25, 2015 at 5:29:29 PM UTC-7, Robby Findler wrote: This looks very nice, thanks! You may wish to use raco pkg install racketeer to install and raco pkg remove racketeer to remove it. These are both available via drracket's menus. Robby On Saturday, April 25, 2015, Mira Leung emailmi...@gmail.com wrote: Racketeer is a plugin for DrRacket that integrates continuous testing with Racket development. This is aimed primarily at the context of usage within university-level programming courses, and has been tested on computer science freshmen and senior students. Source and more info available at https://github.com/miraleung/racketeer Any comments, feedback, and questions appreciated! Thanks, Mira Leung -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.