I think you probably want to use "raco update --clone math" and you'll end up with a directory named "math": where you run that that is a clone of the racket/math github repo and the racket installation you ran "raco" from will now use that as the source. Then you can add a remote to it with your clone to work on a pull request. You should be able to do this with your own built version of racket (which you get by running "make" in the top level of a clone of racket/racket) or in a snapshot build or probably even in 8.0.
Does that help? Robby On Tue, Feb 16, 2021 at 2:36 PM John Kemp <[email protected]> wrote: > Hi there, > > I implemented an alternative to the modular-expt function in the > math/number-theory package, that uses bit-shift ( > https://gist.github.com/frumioj/2dcc1364464508ec359075d5014d0157), as > proposed by Bruce Scheier (pseudocode in > https://en.wikipedia.org/wiki/Modular_exponentiation). > > Although that’s how I ended up here, my actual problem came when I thought > “oh, I could just add this to my local copy of the number-theory package, > and test whether my implementation is faster or slower than modular-expt.” > > First, I forked the github racket/math repo, and couldn’t see a way to > build that independently of Racket. So then I checked out the racket repo > itself, which uses raco to get me a copy of the math package collection. I > was able to build with that, but it seems unconnected to the github > racket/math repo. > > I tried various raco incantations to see if it were possible to get a copy > of my forked math package, but nothing seemed to work, and I am concerned I > misunderstood the instructions in > https://docs.racket-lang.org/racket-build-guide/index.html > > Is there any document that describes how I should be able to both build > and use a local math/number-theory package, and also be able to use my > forked copy of that repo to commit my changes? Is it possible for me to > *only* check out racket/math and build it for my local Racket installation? > > Thank you, > > - johnk > > -- > You received this message because you are subscribed to the Google Groups > "Racket Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-dev/E30EA0E9-DC7F-498C-9F67-42554EBB757E%40gmail.com > . > -- You received this message because you are subscribed to the Google Groups "Racket Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-dev/CAL3TdOPckjO9B2eu5sUq4h_p%2BEcKhisyACTqden32XnqS8iuNw%40mail.gmail.com.
