Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-02 Thread infodeveloperdon
Thanks for all the wonderful feedback!  The 'raco setup' function worked 
beautifully for me resolving my issues. 
Running raco setup without arguments did bring my system to it's knees, 
i.e., slowing it down to a snail's pace but after a reboot all seems to be 
well.
Based on the displayed feedback, I saw that it did a lot of work. 
Would there be less work for 'raco setup' if I uninstalled all but the 
current and previous versions of Racket?

On Sunday, November 1, 2020 at 8:07:57 PM UTC-7 gneuner2 wrote:

>
> On 11/1/2020 9:20 PM, Sam Tobin-Hochstadt wrote:
>
>
> On Sun, Nov 1, 2020, 9:11 PM George Neuner  wrote:
>
>>
>> On 11/1/2020 6:50 PM, Shu-Hung You wrote:
>> > Using the command-line instruction `raco setup` will update all
>> > obsolete bytecodes. If you are looking for a programmable interface,
>> > `compiler/cm` is a good starting point.
>>
>> Note that "raco setup" rebuilds *only* Racket's own modules and 
>> installed extra packages - it does not rebuild any programmer code.
>>
>
> `raco setup` rebuilds all collections, including all installed or linked 
> packages. This includes "programmer code" if you make it a package or 
> collection, which is usually a good idea for anything long lived. 
>
> Sam
>
>>
> In general I agree with you (although making packages out of everything 
> complicates migrations to new Racket versions).   However what I said 
> previously is correct:  "raco setup" only rebuilds stuff that is directly 
> under Racket's control  (installed packages or collections).  
>
> It is not guaranteed to rebuild every Racket based program on your system 
> ... and that is what I intended to convey.
>
> George
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/fd85e769-61b4-4cdc-a306-44265ba1d37an%40googlegroups.com.


Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread George Neuner


On 11/1/2020 9:20 PM, Sam Tobin-Hochstadt wrote:


On Sun, Nov 1, 2020, 9:11 PM George Neuner > wrote:



On 11/1/2020 6:50 PM, Shu-Hung You wrote:
> Using the command-line instruction `raco setup` will update all
> obsolete bytecodes. If you are looking for a programmable interface,
> `compiler/cm` is a good starting point.

Note that "raco setup" rebuilds *only* Racket's own modules and
installed extra packages - it does not rebuild any programmer code.


`raco setup` rebuilds all collections, including all installed or 
linked packages. This includes "programmer code" if you make it a 
package or collection, which is usually a good idea for anything long 
lived.


Sam



In general I agree with you (although making packages out of everything 
complicates migrations to new Racket versions).   However what I said 
previously is correct:  "raco setup" only rebuilds stuff that is 
directly under Racket's control  (installed packages or collections).


It is not guaranteed to rebuild every Racket based program on your 
system ... and that is what I intended to convey.


George

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/90429cf8-1ada-9a3d-9413-b973120c98e1%40comcast.net.


Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread Sam Tobin-Hochstadt
On Sun, Nov 1, 2020, 9:11 PM George Neuner  wrote:

>
> On 11/1/2020 6:50 PM, Shu-Hung You wrote:
> > Using the command-line instruction `raco setup` will update all
> > obsolete bytecodes. If you are looking for a programmable interface,
> > `compiler/cm` is a good starting point.
>
> Note that "raco setup" rebuilds *only* Racket's own modules and
> installed extra packages - it does not rebuild any programmer code.
>

`raco setup` rebuilds all collections, including all installed or linked
packages. This includes "programmer code" if you make it a package or
collection, which is usually a good idea for anything long lived.

Sam

>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAK%3DHD%2BZQxPA3p49Pu9jnLZeRKkJmCOve%2Bie7qLfhiAVa3HC6zQ%40mail.gmail.com.


Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread George Neuner



On 11/1/2020 6:50 PM, Shu-Hung You wrote:

Using the command-line instruction `raco setup` will update all
obsolete bytecodes. If you are looking for a programmable interface,
`compiler/cm` is a good starting point.


Note that "raco setup" rebuilds *only* Racket's own modules and 
installed extra packages - it does not rebuild any programmer code.


George

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/99286665-fed0-caeb-6eb0-2cb2cac4969f%40comcast.net.


Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread Shu-Hung You
Using the command-line instruction `raco setup` will update all
obsolete bytecodes. If you are looking for a programmable interface,
`compiler/cm` is a good starting point.

On Sun, Nov 1, 2020 at 5:43 PM infodeveloperdon
 wrote:
>
> I've never had problems with the .zo files being auto-created during 
> development, only when update the Racket version because of course then a new 
> compiler is involved. If I am remembering correctly, any time I've had issues 
> with the compiled files, I've resolved them by deleting the compiled 
> directory identified by the error message. Which only makes me wonder if 
> there is some function I am unaware of that will update compiled directories 
> without needing to specify the path to each one, or find and delete them all 
> (Racket recreates them).
>
> --
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/1169e7cf-80b2-4093-b3be-f9253993188cn%40googlegroups.com.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAMTzy%2BaUhRQWt_LkeKgJxsOL33-sd6Hbv7Qgu5oCVvXti0cHFA%40mail.gmail.com.


[racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread infodeveloperdon
I've never had problems with the .zo files being auto-created during 
development, only when update the Racket version because of course then a 
new compiler is involved. If I am remembering correctly, any time I've had 
issues with the compiled files, I've resolved them by deleting the compiled 
directory identified by the error message. Which only makes me wonder if 
there is some function I am unaware of that will update compiled 
directories without needing to specify the path to each one, or find and 
delete them all (Racket recreates them).

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1169e7cf-80b2-4093-b3be-f9253993188cn%40googlegroups.com.