Re: [Factor-talk] Linter for Factor USING: ... ; forms

2018-02-08 Thread CW Alston
Hi all --
I've added a convenience testing word and workflow instructions to the Factor
USING: ... ; forms linter
,
and tested the code on 10 dozen project vocabs, with --lo and behold-- no
breakage.
I hope some intrepid folks can find the the time to stress-test this code
on their systems, in advance
of the forthcoming .99 release. It may turn out to be a useful start. So
far, my confidence is bolstered,
but let's see if other folks' mileage differs.
Thanks, pro or con,
~cw

On Wed, Feb 7, 2018 at 7:25 PM, CW Alston  wrote:

> Much improved version of a USING linter here (gist)
> .
> Tracing through the fuel vocabs, I found that by using `vocab-uses`,
> defined IN: tools.crossref,
> I could get the job done without a temporary file, & the linter code
> dropped from 11 definitions to 7.
> For now, the use case is focussed on linting only the first occurring
> USING: ... ; form.
> I renamed the vocab "lint-using". User interaction works the same way. See
> what you think.
> I'm still pondering all the suggestions in the comments... more to do on
> this.
> Thanks for the help,
> ~cw
>
> On Wed, Feb 7, 2018 at 3:20 PM, CW Alston  wrote:
>
>> Thanks for the tip, Björn -
>>
>> Being one of those non-emacs users, I never thought to look there. I'll
>> check out how it's done in fuel.
>> ~cw
>>
>>
>> On Wed, Feb 7, 2018 at 8:33 AM, Björn Lindqvist 
>> wrote:
>>
>>> Hi guys,
>>>
>>> I haven't tested it but it looks pretty good! But note that FUEL has a
>>> very similar feature. You press C-c C-eu and it finds a minimal using list,
>>> using restarts. So to make a free-standing one (which would be useful
>>> because then non-emacs users can use it), you probably want to look in
>>> fuel-debug-uses.el and fuel.factor for inspiration.
>>>
>>> 2018-02-07 10:44 GMT+01:00 CW Alston :
>>>
 Hi again - Posted a cleaned-up, working gist of a USING linter
 .
 See what you think of it.
 Cheers,
 ~cw

 P.S. - cat, I didn't notice your comments until I posted this. I'll
 take a good look
 at your suggestions. Thanks!
 ~cw
 --
 *~ Memento Amori*

 
 --
 Check out the vibrant tech community on one of the world's most
 engaging tech sites, Slashdot.org! http://sdm.link/slashdot
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


>>>
>>>
>>> --
>>> mvh/best regards Björn Lindqvist
>>>
>>
>>
>>
>> --
>> *~ Memento Amori*
>>
>
>
>
> --
> *~ Memento Amori*
>



-- 
*~ Memento Amori*
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Linter for Factor USING: ... ; forms

2018-02-07 Thread CW Alston
Much improved version of a USING linter here (gist)
.
Tracing through the fuel vocabs, I found that by using `vocab-uses`,
defined IN: tools.crossref,
I could get the job done without a temporary file, & the linter code
dropped from 11 definitions to 7.
For now, the use case is focussed on linting only the first occurring
USING: ... ; form.
I renamed the vocab "lint-using". User interaction works the same way. See
what you think.
I'm still pondering all the suggestions in the comments... more to do on
this.
Thanks for the help,
~cw

On Wed, Feb 7, 2018 at 3:20 PM, CW Alston  wrote:

> Thanks for the tip, Björn -
>
> Being one of those non-emacs users, I never thought to look there. I'll
> check out how it's done in fuel.
> ~cw
>
>
> On Wed, Feb 7, 2018 at 8:33 AM, Björn Lindqvist  wrote:
>
>> Hi guys,
>>
>> I haven't tested it but it looks pretty good! But note that FUEL has a
>> very similar feature. You press C-c C-eu and it finds a minimal using list,
>> using restarts. So to make a free-standing one (which would be useful
>> because then non-emacs users can use it), you probably want to look in
>> fuel-debug-uses.el and fuel.factor for inspiration.
>>
>> 2018-02-07 10:44 GMT+01:00 CW Alston :
>>
>>> Hi again - Posted a cleaned-up, working gist of a USING linter
>>> .
>>> See what you think of it.
>>> Cheers,
>>> ~cw
>>>
>>> P.S. - cat, I didn't notice your comments until I posted this. I'll take
>>> a good look
>>> at your suggestions. Thanks!
>>> ~cw
>>> --
>>> *~ Memento Amori*
>>>
>>> 
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> ___
>>> Factor-talk mailing list
>>> Factor-talk@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>>
>>>
>>
>>
>> --
>> mvh/best regards Björn Lindqvist
>>
>
>
>
> --
> *~ Memento Amori*
>



-- 
*~ Memento Amori*
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Linter for Factor USING: ... ; forms

2018-02-07 Thread CW Alston
Thanks for the tip, Björn -

Being one of those non-emacs users, I never thought to look there. I'll
check out how it's done in fuel.
~cw


On Wed, Feb 7, 2018 at 8:33 AM, Björn Lindqvist  wrote:

> Hi guys,
>
> I haven't tested it but it looks pretty good! But note that FUEL has a
> very similar feature. You press C-c C-eu and it finds a minimal using list,
> using restarts. So to make a free-standing one (which would be useful
> because then non-emacs users can use it), you probably want to look in
> fuel-debug-uses.el and fuel.factor for inspiration.
>
> 2018-02-07 10:44 GMT+01:00 CW Alston :
>
>> Hi again - Posted a cleaned-up, working gist of a USING linter
>> .
>> See what you think of it.
>> Cheers,
>> ~cw
>>
>> P.S. - cat, I didn't notice your comments until I posted this. I'll take
>> a good look
>> at your suggestions. Thanks!
>> ~cw
>> --
>> *~ Memento Amori*
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>>
>
>
> --
> mvh/best regards Björn Lindqvist
>



-- 
*~ Memento Amori*
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Linter for Factor USING: ... ; forms

2018-02-07 Thread Björn Lindqvist
Hi guys,

I haven't tested it but it looks pretty good! But note that FUEL has a very
similar feature. You press C-c C-eu and it finds a minimal using list,
using restarts. So to make a free-standing one (which would be useful
because then non-emacs users can use it), you probably want to look in
fuel-debug-uses.el and fuel.factor for inspiration.

2018-02-07 10:44 GMT+01:00 CW Alston :

> Hi again - Posted a cleaned-up, working gist of a USING linter
> .
> See what you think of it.
> Cheers,
> ~cw
>
> P.S. - cat, I didn't notice your comments until I posted this. I'll take a
> good look
> at your suggestions. Thanks!
> ~cw
> --
> *~ Memento Amori*
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>


-- 
mvh/best regards Björn Lindqvist
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] Linter for Factor USING: ... ; forms

2018-02-07 Thread CW Alston
Hi again - Posted a cleaned-up, working gist of a USING linter
.
See what you think of it.
Cheers,
~cw

P.S. - cat, I didn't notice your comments until I posted this. I'll take a
good look
at your suggestions. Thanks!
~cw
-- 
*~ Memento Amori*
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk