Re: [Factor-talk] factor self modify source

2010-11-23 Thread Jim mack
http://paste.factorcode.org/paste?id=2056

I think too many would be irritated by the clipboard changing, so perhaps
this should be opt-in, so I'm not thinking this is a submission, but it may
be interesting to some.  I find it useful.  D

On Mon, Nov 22, 2010 at 11:32 PM, Joe Groff arc...@gmail.com wrote:

 On Tue, Nov 23, 2010 at 12:46 PM, Jim mack j...@less2do.com wrote:

 When you activate auto use, and get told the correct USING: clause, I
 think I'd like to either type a word or have a setting that updates the
 source file.  I am close to being able to implement this myself (although I
 wouldn't mind any amount of direction)


 I see. As you mentioned, it's possible to conflict with unsaved changes
 when updating files directly from Factor. You could definitely add some code
 updating tools that had to be manually applied, because a user would then
 have to explicitly coordinate their saving and updating actions. Automatic
 modification would be dangerous.

 -Joe


 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk




-- 
Jim
I'm for extending the working Medicare program for our seniors all the way
back to contraception, so Americans can concentrate on living their lives
without fear of changing a job, going bankrupt from deductibles or fighting
HMO bureaucracy.
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] factor self modify source

2010-11-22 Thread Joe Groff
On Tue, Nov 23, 2010 at 12:03 PM, Jim mack j...@less2do.com wrote:

 I don't use fuel/emacs, and so have a few steps when presented with a new
 USING: clause.  Has anyone tried but discarded the thought of a word to
 update the code after a restart, for those of us with less than perfect
 editor integration?  Is there a concern outside of overwriting changes in
 progress?


Press F2 in the graphical listener (or type refresh-all in the terminal
listener) and any changed source files will be reloaded. Is that what you
had in mind?


 Something in me also is drawn to a word like
 TODO: This stinks!

 and having it generate a list, presumably
 : TODO. ( -- ) ! prints list
 1) SOURCE.Line32 This stinks!
 2) LISTENER.2010/11/22 8:00pm always get confused about xxx
  with maybe the words
 : go-to ( n -- )  ! calls editor
 : todone ( n -- ) !  timestamping and commenting that line out.

 Is there anything close already existing, other than as a feature of editor
 X?


Check out Doug's annotations vocab.

( scratchpad ) USE: annotations
( scratchpad ) : foo ( x y -- z )
!TODO handle divide by zero
/ ;
( scratchpad ) TODOs.
Computing usage index... done
IN: scratchpad : foo ( x y -- z )

-Joe
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] factor self modify source

2010-11-22 Thread Jim mack

 I don't use fuel/emacs, and so have a few steps when presented with a new
 USING: clause.  Has anyone tried but discarded the thought of a word to
 update the code after a restart, for those of us with less than perfect
 editor integration?  Is there a concern outside of overwriting changes in
 progress?


 Press F2 in the graphical listener (or type refresh-all in the terminal
 listener) and any changed source files will be reloaded. Is that what you
 had in mind?

When you activate auto use, and get told the correct USING: clause, I think
I'd like to either type a word or have a setting that updates the source
file.  I am close to being able to implement this myself (although I
wouldn't mind any amount of direction)


 Check out Doug's annotations vocab.

 ( scratchpad ) USE: annotations
 ( scratchpad ) : foo ( x y -- z )
 !TODO handle divide by zero
 / ;
 ( scratchpad ) TODOs.
 Computing usage index... done
 IN: scratchpad : foo ( x y -- z )


-Joe

 THANKS!  I knew it.
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] factor self modify source

2010-11-22 Thread Joe Groff
On Tue, Nov 23, 2010 at 12:46 PM, Jim mack j...@less2do.com wrote:

 When you activate auto use, and get told the correct USING: clause, I think
 I'd like to either type a word or have a setting that updates the source
 file.  I am close to being able to implement this myself (although I
 wouldn't mind any amount of direction)


I see. As you mentioned, it's possible to conflict with unsaved changes when
updating files directly from Factor. You could definitely add some code
updating tools that had to be manually applied, because a user would then
have to explicitly coordinate their saving and updating actions. Automatic
modification would be dangerous.

-Joe
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk