Re: [Factor-talk] Saving an image file with extra vocabularies loaded
Oh, and it turns out that saving the image with the changes to the interactive-vocabs variable works after all. Thanks again for that insight! On Sun, Nov 29, 2020 at 1:20 PM kevin wrote: > Alexander: thanks a lot! Your code did the trick nicely. I added a bunch > of other of my commonly-used vocabs as well and I can barely tell the > difference in the time it takes to start up the listener. It would still > be neat to get images working, but this makes me very happy for now. > > As for range words, I don't feel strongly either way. I remember there > used to be a ... syntax in math.extras that you could use like > > 1 ... 10 > > and I always thought it was kind of elegant, but it was removed (I think > in 0.98) and I can understand not wanting to clutter up code with syntax. > > On Sun, Nov 29, 2020 at 9:29 AM Alexander Ilin wrote: > >> Is it possible to merge the range and interval concepts into one thing? >> Not sure if a good idea, but would resolve the confusion. >> >> >> https://math.stackexchange.com/questions/2056510/what-is-the-mathematical-symbol-for-range >> >> It seems that for integer values there is also the notation of {a..b}, >> which includes both ends. >> Maybe we could also add {a..b-1} to exclude the last value, and add the >> commonly used {0..b-1}, although there is already the shorter for >> the latter. >> >> 29.11.2020, 18:12, "John Benediktsson" : >> >> The common ambiguity between math.ranges and math.intervals has also >> bothered us. >> >> I did like the syntax aside from that issue that, but we are >> experimenting with new range syntax: >> >> [a..b] >> (a..b] >> (a..b) >> [a..b) >> >> What do you think of that instead? >> >> Some other variants discussed from other languages: >> >> a..b >> a...b >> a..> a..=b >> >> What does everyone think? Any feedback? >> >> Best, >> John. >> >> >> >> On Nov 29, 2020, at 5:56 AM, Alexander Ilin wrote: >> >> >> >> Here's the full code for .factor-rc: >> >> USING: listener namespaces sequences ; >> ! Add math.ranges to the Scratchpad vocab of the Listener. >> interactive-vocabs [ "math.ranges" suffix ] change-global >> >> >> 29.11.2020, 16:50, "Alexander Ilin" : >> >> See the SYMBOL: interactive-vocabs in the basis\listener.factor. >> >> 29.11.2020, 15:25, "Alexander Ilin" : >> >> I think you need to somehow edit the vocabs preloaded into the Scratchpad >> vocab of the Listener. >> >> 29.11.2020, 12:07, "kevin" : >> >> Hello fellow Factor users. >> >> Today, I finally became fed up with having to load the math.ranges >> vocabulary in the listener every time I want to use a word like [a,b]. >> Especially since it needs to disambiguate with math.intervals and I have >> to stop and think about which one to pick. >> >> I was under the impression that simply going >> >> USE: math.ranges >> save >> >> Would save to the default image with math.ranges loaded, but when I exit >> and start the listener up again, the change does not take. >> >> I then figured that maybe I could save a custom image with >> >> "myimage.image" save-image >> >> and indeed, it does save a file named myimage.image in the factor >> directory. Then when I try to invoke factor like >> >> factor -i=myimage.image >> >> it complains about not being able to locate the file. >> >> I then figured I wouldn't mind waiting for vocabs to load and maybe I >> could just try loading them in my .factor-rc or .factor-boot-rc, but that >> doesn't work either. Any ideas on how I can get this to work? Thanks! >> ,, >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> >> >> ---=--- >> Александр >> >> ,, >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> >> >> ---=--- >> Александр >> >> ,, >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> >> >> ---=--- >> Александр >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> ,, >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> >> >> ---=--- >> Александр >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Saving an image file with extra vocabularies loaded
Alexander: thanks a lot! Your code did the trick nicely. I added a bunch of other of my commonly-used vocabs as well and I can barely tell the difference in the time it takes to start up the listener. It would still be neat to get images working, but this makes me very happy for now. As for range words, I don't feel strongly either way. I remember there used to be a ... syntax in math.extras that you could use like 1 ... 10 and I always thought it was kind of elegant, but it was removed (I think in 0.98) and I can understand not wanting to clutter up code with syntax. On Sun, Nov 29, 2020 at 9:29 AM Alexander Ilin wrote: > Is it possible to merge the range and interval concepts into one thing? > Not sure if a good idea, but would resolve the confusion. > > > https://math.stackexchange.com/questions/2056510/what-is-the-mathematical-symbol-for-range > > It seems that for integer values there is also the notation of {a..b}, > which includes both ends. > Maybe we could also add {a..b-1} to exclude the last value, and add the > commonly used {0..b-1}, although there is already the shorter for > the latter. > > 29.11.2020, 18:12, "John Benediktsson" : > > The common ambiguity between math.ranges and math.intervals has also > bothered us. > > I did like the syntax aside from that issue that, but we are experimenting > with new range syntax: > > [a..b] > (a..b] > (a..b) > [a..b) > > What do you think of that instead? > > Some other variants discussed from other languages: > > a..b > a...b > a.. a..=b > > What does everyone think? Any feedback? > > Best, > John. > > > > On Nov 29, 2020, at 5:56 AM, Alexander Ilin wrote: > > > > Here's the full code for .factor-rc: > > USING: listener namespaces sequences ; > ! Add math.ranges to the Scratchpad vocab of the Listener. > interactive-vocabs [ "math.ranges" suffix ] change-global > > > 29.11.2020, 16:50, "Alexander Ilin" : > > See the SYMBOL: interactive-vocabs in the basis\listener.factor. > > 29.11.2020, 15:25, "Alexander Ilin" : > > I think you need to somehow edit the vocabs preloaded into the Scratchpad > vocab of the Listener. > > 29.11.2020, 12:07, "kevin" : > > Hello fellow Factor users. > > Today, I finally became fed up with having to load the math.ranges > vocabulary in the listener every time I want to use a word like [a,b]. > Especially since it needs to disambiguate with math.intervals and I have > to stop and think about which one to pick. > > I was under the impression that simply going > > USE: math.ranges > save > > Would save to the default image with math.ranges loaded, but when I exit > and start the listener up again, the change does not take. > > I then figured that maybe I could save a custom image with > > "myimage.image" save-image > > and indeed, it does save a file named myimage.image in the factor > directory. Then when I try to invoke factor like > > factor -i=myimage.image > > it complains about not being able to locate the file. > > I then figured I wouldn't mind waiting for vocabs to load and maybe I > could just try loading them in my .factor-rc or .factor-boot-rc, but that > doesn't work either. Any ideas on how I can get this to work? Thanks! > ,, > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ---=--- > Александр > > ,, > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ---=--- > Александр > > ,, > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ---=--- > Александр > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > ,, > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ---=--- > Александр > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Saving an image file with extra vocabularies loaded
Is it possible to merge the range and interval concepts into one thing? Not sure if a good idea, but would resolve the confusion. https://math.stackexchange.com/questions/2056510/what-is-the-mathematical-symbol-for-range It seems that for integer values there is also the notation of {a..b}, which includes both ends.Maybe we could also add {a..b-1} to exclude the last value, and add the commonly used {0..b-1}, although there is already the shorter for the latter. 29.11.2020, 18:12, "John Benediktsson" :The common ambiguity between math.ranges and math.intervals has also bothered us. I did like the syntax aside from that issue that, but we are experimenting with new range syntax: [a..b](a..b](a..b)[a..b) What do you think of that instead? Some other variants discussed from other languages: a..ba...ba..a..=b What does everyone think? Any feedback? Best,John. On Nov 29, 2020, at 5:56 AM, Alexander Ilinwrote: Here's the full code for .factor-rc: USING: listener namespaces sequences ;! Add math.ranges to the Scratchpad vocab of the Listener.interactive-vocabs [ "math.ranges" suffix ] change-global 29.11.2020, 16:50, "Alexander Ilin" :See the SYMBOL: interactive-vocabs in the basis\listener.factor. 29.11.2020, 15:25, "Alexander Ilin" :I think you need to somehow edit the vocabs preloaded into the Scratchpad vocab of the Listener. 29.11.2020, 12:07, "kevin" :Hello fellow Factor users. Today, I finally became fed up with having to load the math.ranges vocabulary in the listener every time I want to use a word like [a,b]. Especially since it needs to disambiguate with math.intervals and I have to stop and think about which one to pick. I was under the impression that simply going USE: math.ranges save Would save to the default image with math.ranges loaded, but when I exit and start the listener up again, the change does not take. I then figured that maybe I could save a custom image with "myimage.image" save-image and indeed, it does save a file named myimage.image in the factor directory. Then when I try to invoke factor like factor -i=myimage.image it complains about not being able to locate the file. I then figured I wouldn't mind waiting for vocabs to load and maybe I could just try loading them in my .factor-rc or .factor-boot-rc, but that doesn't work either. Any ideas on how I can get this to work? Thanks!,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Saving an image file with extra vocabularies loaded
The common ambiguity between math.ranges and math.intervals has also bothered us. I did like the syntax aside from that issue that, but we are experimenting with new range syntax: [a..b] (a..b] (a..b) [a..b) What do you think of that instead? Some other variants discussed from other languages: a..b a...b a.. On Nov 29, 2020, at 5:56 AM, Alexander Ilin wrote: > > > Here's the full code for .factor-rc: > > USING: listener namespaces sequences ; > ! Add math.ranges to the Scratchpad vocab of the Listener. > interactive-vocabs [ "math.ranges" suffix ] change-global > > > 29.11.2020, 16:50, "Alexander Ilin" : > See the SYMBOL: interactive-vocabs in the basis\listener.factor. > > 29.11.2020, 15:25, "Alexander Ilin" : > I think you need to somehow edit the vocabs preloaded into the Scratchpad > vocab of the Listener. > > 29.11.2020, 12:07, "kevin" : > Hello fellow Factor users. > > Today, I finally became fed up with having to load the math.ranges vocabulary > in the listener every time I want to use a word like [a,b]. Especially since > it needs to disambiguate with math.intervals and I have to stop and think > about which one to pick. > > I was under the impression that simply going > > USE: math.ranges > save > > Would save to the default image with math.ranges loaded, but when I exit and > start the listener up again, the change does not take. > > I then figured that maybe I could save a custom image with > > "myimage.image" save-image > > and indeed, it does save a file named myimage.image in the factor directory. > Then when I try to invoke factor like > > factor -i=myimage.image > > it complains about not being able to locate the file. > > I then figured I wouldn't mind waiting for vocabs to load and maybe I could > just try loading them in my .factor-rc or .factor-boot-rc, but that doesn't > work either. Any ideas on how I can get this to work? Thanks! > ,, > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ---=--- > Александр > > ,, > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ---=--- > Александр > > ,, > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ---=--- > Александр > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Saving an image file with extra vocabularies loaded
Here's the full code for .factor-rc: USING: listener namespaces sequences ;! Add math.ranges to the Scratchpad vocab of the Listener.interactive-vocabs [ "math.ranges" suffix ] change-global 29.11.2020, 16:50, "Alexander Ilin" :See the SYMBOL: interactive-vocabs in the basis\listener.factor. 29.11.2020, 15:25, "Alexander Ilin":I think you need to somehow edit the vocabs preloaded into the Scratchpad vocab of the Listener. 29.11.2020, 12:07, "kevin" :Hello fellow Factor users. Today, I finally became fed up with having to load the math.ranges vocabulary in the listener every time I want to use a word like [a,b]. Especially since it needs to disambiguate with math.intervals and I have to stop and think about which one to pick. I was under the impression that simply going USE: math.ranges save Would save to the default image with math.ranges loaded, but when I exit and start the listener up again, the change does not take. I then figured that maybe I could save a custom image with "myimage.image" save-image and indeed, it does save a file named myimage.image in the factor directory. Then when I try to invoke factor like factor -i=myimage.image it complains about not being able to locate the file. I then figured I wouldn't mind waiting for vocabs to load and maybe I could just try loading them in my .factor-rc or .factor-boot-rc, but that doesn't work either. Any ideas on how I can get this to work? Thanks!,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Saving an image file with extra vocabularies loaded
See the SYMBOL: interactive-vocabs in the basis\listener.factor. 29.11.2020, 15:25, "Alexander Ilin" :I think you need to somehow edit the vocabs preloaded into the Scratchpad vocab of the Listener. 29.11.2020, 12:07, "kevin":Hello fellow Factor users. Today, I finally became fed up with having to load the math.ranges vocabulary in the listener every time I want to use a word like [a,b]. Especially since it needs to disambiguate with math.intervals and I have to stop and think about which one to pick. I was under the impression that simply going USE: math.ranges save Would save to the default image with math.ranges loaded, but when I exit and start the listener up again, the change does not take. I then figured that maybe I could save a custom image with "myimage.image" save-image and indeed, it does save a file named myimage.image in the factor directory. Then when I try to invoke factor like factor -i=myimage.image it complains about not being able to locate the file. I then figured I wouldn't mind waiting for vocabs to load and maybe I could just try loading them in my .factor-rc or .factor-boot-rc, but that doesn't work either. Any ideas on how I can get this to work? Thanks!,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Saving an image file with extra vocabularies loaded
I think you need to somehow edit the vocabs preloaded into the Scratchpad vocab of the Listener. 29.11.2020, 12:07, "kevin" :Hello fellow Factor users. Today, I finally became fed up with having to load the math.ranges vocabulary in the listener every time I want to use a word like [a,b]. Especially since it needs to disambiguate with math.intervals and I have to stop and think about which one to pick. I was under the impression that simply going USE: math.ranges save Would save to the default image with math.ranges loaded, but when I exit and start the listener up again, the change does not take. I then figured that maybe I could save a custom image with "myimage.image" save-image and indeed, it does save a file named myimage.image in the factor directory. Then when I try to invoke factor like factor -i=myimage.image it complains about not being able to locate the file. I then figured I wouldn't mind waiting for vocabs to load and maybe I could just try loading them in my .factor-rc or .factor-boot-rc, but that doesn't work either. Any ideas on how I can get this to work? Thanks!,,___Factor-talk mailing listFactor-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/factor-talk ---=---Александр ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Saving an image file with extra vocabularies loaded
Hello fellow Factor users. Today, I finally became fed up with having to load the math.ranges vocabulary in the listener every time I want to use a word like [a,b]. Especially since it needs to disambiguate with math.intervals and I have to stop and think about which one to pick. I was under the impression that simply going USE: math.ranges save Would save to the default image with math.ranges loaded, but when I exit and start the listener up again, the change does not take. I then figured that maybe I could save a custom image with "myimage.image" save-image and indeed, it does save a file named myimage.image in the factor directory. Then when I try to invoke factor like factor -i=myimage.image it complains about not being able to locate the file. I then figured I wouldn't mind waiting for vocabs to load and maybe I could just try loading them in my .factor-rc or .factor-boot-rc, but that doesn't work either. Any ideas on how I can get this to work? Thanks! ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk