Re: [racket-users] DrRacket 6.5 + OS X El Capitan = slow execution
This might be a wild guess, but are you using typed/racket as the language? On my machine (Windows 7, DrRacket 6.6), if I use #lang typed/racket, evaluate it than type "Hello World" in the REPL, it takes about 2 seconds to display the result (after that it seems to run fast). If I just use #lang racket, it is instantaneous. Best Regards, Alex. On Thursday, July 28, 2016 at 10:52:10 AM UTC+8, Robby Findler wrote: > Okay, thanks. (For the record, I use Mac OS X 10.11 routinely and do > not experience this issue, so there must be something something else > going on. I'm not sure what guess to make next, but it is interesting > that 6.2.1 didn't have this issue.) > > On Wed, Jul 27, 2016 at 9:45 PM, Ivan Kuzminwrote: > > But nothing changes in working order. > > > > -- > > 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] DrRacket 6.5 + OS X El Capitan = slow execution
Okay, thanks. (For the record, I use Mac OS X 10.11 routinely and do not experience this issue, so there must be something something else going on. I'm not sure what guess to make next, but it is interesting that 6.2.1 didn't have this issue.) On Wed, Jul 27, 2016 at 9:45 PM, Ivan Kuzminwrote: > But nothing changes in working order. > > -- > 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] DrRacket 6.5 + OS X El Capitan = slow execution
But nothing changes in working order. -- 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] DrRacket 6.5 + OS X El Capitan = slow execution
Hello, Robby! It took about 15 seconds and no warnings or errors were reported. > It may be that something went wrong with the date stamps. > > Can you try opening a Terminal window and Running the command: (quit > DrRacket first and you should be able to just paste that command into > the Terminal window and hit return) > > /Applications/Racket\ v6.5/bin/raco setup > > This should print a lot and complete in about a minute or so. If it > takes substantially longer (or you see what appears to be an error), > something else more interesting is going on. If it completely quickly, > tho, then I think that your DrRacket should be back in working order. > > Robby > > > > On Wed, Jul 27, 2016 at 9:30 PM, Ivan Kuzmin wrote: > > Matthias, hello! Thank you for your reply. > > > > I downloaded dmg. Then I copied DrRacket folder into Applications folder > > and start DrRacket without any additional tuning. > > > >> This sounds like your interpreting code instead of running compiled code. > >> Did you download dmg or source? If the latter, did you run setup? > >> > >> > >> > >> > On Jul 27, 2016, at 10:20 PM, Ivan Kuzmin wrote: > >> > > >> > To reproduce: > >> > 1. Download DrRacket x86_64 v6.5 [1] > >> > 2. Start on OS X El Capitan. > >> > 3. Type in "hello world" and press run... > >> > > >> > It takes about 2-3 seconds to execute this code on my machine. Also > >> > "flawed" builds show blinking recycling icon in the bottom right corner > >> > while executing the code and consume more than 500 MB of RAM. > >> > > >> > [1] I have tested all the major versions down to v6.3; the last one that > >> > works well is v6.2.1 > >> > > >> > -- > >> > 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] DrRacket 6.5 + OS X El Capitan = slow execution
It may be that something went wrong with the date stamps. Can you try opening a Terminal window and Running the command: (quit DrRacket first and you should be able to just paste that command into the Terminal window and hit return) /Applications/Racket\ v6.5/bin/raco setup This should print a lot and complete in about a minute or so. If it takes substantially longer (or you see what appears to be an error), something else more interesting is going on. If it completely quickly, tho, then I think that your DrRacket should be back in working order. Robby On Wed, Jul 27, 2016 at 9:30 PM, Ivan Kuzminwrote: > Matthias, hello! Thank you for your reply. > > I downloaded dmg. Then I copied DrRacket folder into Applications folder and > start DrRacket without any additional tuning. > >> This sounds like your interpreting code instead of running compiled code. >> Did you download dmg or source? If the latter, did you run setup? >> >> >> >> > On Jul 27, 2016, at 10:20 PM, Ivan Kuzmin wrote: >> > >> > To reproduce: >> > 1. Download DrRacket x86_64 v6.5 [1] >> > 2. Start on OS X El Capitan. >> > 3. Type in "hello world" and press run... >> > >> > It takes about 2-3 seconds to execute this code on my machine. Also >> > "flawed" builds show blinking recycling icon in the bottom right corner >> > while executing the code and consume more than 500 MB of RAM. >> > >> > [1] I have tested all the major versions down to v6.3; the last one that >> > works well is v6.2.1 >> > >> > -- >> > 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] DrRacket 6.5 + OS X El Capitan = slow execution
Matthias, hello! Thank you for your reply. I downloaded dmg. Then I copied DrRacket folder into Applications folder and start DrRacket without any additional tuning. > This sounds like your interpreting code instead of running compiled code. > Did you download dmg or source? If the latter, did you run setup? > > > > > On Jul 27, 2016, at 10:20 PM, Ivan Kuzmin wrote: > > > > To reproduce: > > 1. Download DrRacket x86_64 v6.5 [1] > > 2. Start on OS X El Capitan. > > 3. Type in "hello world" and press run... > > > > It takes about 2-3 seconds to execute this code on my machine. Also > > "flawed" builds show blinking recycling icon in the bottom right corner > > while executing the code and consume more than 500 MB of RAM. > > > > [1] I have tested all the major versions down to v6.3; the last one that > > works well is v6.2.1 > > > > -- > > 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] DrRacket 6.5 + OS X El Capitan = slow execution
Matthias, hello! Thank you for your reply. I did download dmg. Then I copied DrRacket folder into Applications folder and start DrRacket without any additional tuning. > This sounds like your interpreting code instead of running compiled code. > Did you download dmg or source? If the latter, did you run setup? > > > > > On Jul 27, 2016, at 10:20 PM, Ivan Kuzmin wrote: > > > > To reproduce: > > 1. Download DrRacket x86_64 v6.5 [1] > > 2. Start on OS X El Capitan. > > 3. Type in "hello world" and press run... > > > > It takes about 2-3 seconds to execute this code on my machine. Also > > "flawed" builds show blinking recycling icon in the bottom right corner > > while executing the code and consume more than 500 MB of RAM. > > > > [1] I have tested all the major versions down to v6.3; the last one that > > works well is v6.2.1 > > > > -- > > 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] DrRacket 6.5 + OS X El Capitan = slow execution
Matthias, hello! Thank you for your reply. I did download dmg. Then I copied DrRacket folder into Applications folder and start DrRacket without any additional tuning. четверг, 28 июля 2016 г., 12:23:11 UTC+10 пользователь Matthias Felleisen написал: > This sounds like your interpreting code instead of running compiled code. > Did you download dmg or source? If the latter, did you run setup? > > > > > On Jul 27, 2016, at 10:20 PM, Ivan Kuzminwrote: > > > > To reproduce: > > 1. Download DrRacket x86_64 v6.5 [1] > > 2. Start on OS X El Capitan. > > 3. Type in "hello world" and press run... > > > > It takes about 2-3 seconds to execute this code on my machine. Also > > "flawed" builds show blinking recycling icon in the bottom right corner > > while executing the code and consume more than 500 MB of RAM. > > > > [1] I have tested all the major versions down to v6.3; the last one that > > works well is v6.2.1 > > > > -- > > 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] DrRacket 6.5 + OS X El Capitan = slow execution
This sounds like your interpreting code instead of running compiled code. Did you download dmg or source? If the latter, did you run setup? > On Jul 27, 2016, at 10:20 PM, Ivan Kuzminwrote: > > To reproduce: > 1. Download DrRacket x86_64 v6.5 [1] > 2. Start on OS X El Capitan. > 3. Type in "hello world" and press run... > > It takes about 2-3 seconds to execute this code on my machine. Also "flawed" > builds show blinking recycling icon in the bottom right corner while > executing the code and consume more than 500 MB of RAM. > > [1] I have tested all the major versions down to v6.3; the last one that > works well is v6.2.1 > > -- > 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] DrRacket 6.5 + OS X El Capitan = slow execution
To reproduce: 1. Download DrRacket x86_64 v6.5 [1] 2. Start on OS X El Capitan. 3. Type in "hello world" and press run... It takes about 2-3 seconds to execute this code on my machine. Also "flawed" builds show blinking recycling icon in the bottom right corner while executing the code and consume more than 500 MB of RAM. [1] I have tested all the major versions down to v6.3; the last one that works well is v6.2.1 -- 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] Handling disappeared uses from within syntax classes
Ask Ryan to expose the backtrack continuation. Then accumulate the anti-effects and attach them to the backtrack continuation. If it is thrown, it’ll automatically undo the effects. I bet this will be useful in a more general setting. [See Prolog implementation as embeddings.] > On Jul 26, 2016, at 3:01 PM, Alexis Kingwrote: > > It is not uncommon for me, as a macro writer, to need to perform > syntax-local-value on some identifier, then record the disappeared use > in the resulting expansion. The syntax-local-value/record helper makes > this much easier, but it still requires some manual failure logic. I was > thinking it would be really nice if I could wrap that up into a syntax > class: > > (define-syntax-class (local-value predicate?) >#:description #f >[pattern id:id > #:attr local-value (syntax-local-value/record #'id predicate?) > #:fail-unless (attribute local-value) #f]) > > Then, by wrapping a syntax-parse form with with-disappeared-uses, I > automatically get disappeared use tracking. > > There is a problem with this, though: syntax-local-value/record is > side-effectful, so if parsing backtracks, then the use will still be > recorded, even though it really shouldn’t be. Because of this, I > realized that in order to make this approach work, I would need some > sort of #:undo pattern option to mirror #:do — something that would be > executed when “unwinding” due to backtracking. > > It’s possible, of course, that the side-effectful model is the wrong > one, anyway. It would likely be even better to have first-class support > for this within syntax-parse. I would love it if, when I used ~literal > or #:literals and a pattern successfully matched, syntax-parse would > automatically record the disappeared uses for me. The same mechanism > could be used to record disappeared uses from a syntax class like the > one above. > > Is there any way to implement either of these things as derived concepts > given the existing primitives that syntax-parse provides? I know that I > could return disappeared uses as an attribute and manually thread the > property, but that’s precisely what I’m trying to avoid, since I think > it goes against the syntax-parse philosophy of declarative > specifications whenever possible. I’m not sure how to implement these > without some kind of support from syntax-parse itself, though. > > Alexis > > -- > 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] racket command-line REPL: Constructor style printing mode?
Thanks for the prompt reply! I managed to install the package. For my current use-case, using the racket in module mode, with the right #lang directive at the top of the .rkt file is enough. For the interactive mode, however, I was expecting something like racket -I 'constructor-style-print racket' to behave similarly. But it leads to: Welcome to Racket v6.0. module-declared?: contract violation expected: (or/c module-path? module-path-index? resolved-module-path?) given: '(submod (lib "constructor-style-print racket") configure-runtime) argument position: 1st other arguments...: #t > Just out of curiosity, what would be the adequate "-I" syntax, if any? (what I read in quote-bad/constructor-style-print/lang/runtime-config.rkt is too advanced racket code for me to find out how to change dynamically the printer in the repl.) Best, Delphine -- 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] racket command-line REPL: Constructor style printing mode?
One option is to use Alex Knauth's package quote-bad. https://docs.racket-lang.org/quote-bad/index.html?q=constructor#%28part._.Changing_the_printing_style_to_avoid_printing_bad_uses_of_quote%29 If you want to see how he sets the print handler: https://github.com/AlexKnauth/quote-bad/blob/master/constructor-style-print/lang/runtime-config.rkt /Jens Axel 2016-07-27 20:37 GMT+02:00 Delphine Demange: > Hi, > > I'd like to use the Constructor printing style in the command-line REPL, > so that it behaves the same as in my current DrRacket config, e.g. > > > (list 1 2 3) > (list 1 2 3) > > Using https://docs.racket-lang.org/reference/printing.html, I've been > trying to set (interactively) the right parameters to the printer, without > success. > > Is there any way to achieve this (either manually, or using a file similar > to org.racket-lang.prefs.rktd)? > > I may have missed something in the documentation. > I'm running DrRacket 6.0. > > Thanks for your help, > Delphine > > -- > 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. > -- -- Jens Axel Søgaard -- 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] racket command-line REPL: Constructor style printing mode?
Hi, I'd like to use the Constructor printing style in the command-line REPL, so that it behaves the same as in my current DrRacket config, e.g. > (list 1 2 3) (list 1 2 3) Using https://docs.racket-lang.org/reference/printing.html, I've been trying to set (interactively) the right parameters to the printer, without success. Is there any way to achieve this (either manually, or using a file similar to org.racket-lang.prefs.rktd)? I may have missed something in the documentation. I'm running DrRacket 6.0. Thanks for your help, Delphine -- 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.