Re: [Factor-talk] Noob

2009-01-20 Thread Jonathan Leto
Hello Steve,

Welcome to Factor, it is a great community.

You may want to look here to see how to run a Factor script from the
command line:

http://leto.net/factor/2008/11/running-a-factor-script.html

Then you tie that in with how your editor invokes external commands
(:! in vim). You can even
have the script use the highlighted text in the editor to determine
what to run, etc.

Cheers,



On Mon, Jan 19, 2009 at 5:57 PM, Steve Weeks  wrote:
> I'm learning factor and have some of those noob questions.  I can
> program in quite a few languages, the usual things plus Smalltalk,
> Ruby and a little Forth, so my questions aren't really about the
> language (which looks pretty interesting).  It is the simple things
> like using the REPL appropriately.  Right now, I'm using Scite and
> while I'm usually willing to switch editors (and really want syntax
> coloring) I'm am not willing to switch to emacs so FUEL is not an
> option.  I looked at emacs again today and I know people really love
> it, but no, I'm not willing to switch.  So here is my question...
>
> I edit my code in Scite, press ctrl-S to save the file.
> Atl-tab to switch to the Factor listener.
> Press ctrl-P
> Down arrow twice to the line "" reload
> Press enter twice
> Assuming I didn't screw anything up (I'm a noob, remember)
> Press ctrl-P
> Down arrow twice
> Press enter twice to run the word for my app
>
> I'm sure there is a simpler way and I'm going to feel dumb when you tell me 
> ;-P
>
> Steve
>
> --
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>



-- 
[-]
  Jonathan Leto
jal...@gmail.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Noob

2009-01-19 Thread Matthew Willis
The F2 key will reload any changed vocabularies.  That will save you  
some time :)

Matt

On Jan 20, 2009, at 10:57 AM, Steve Weeks wrote:

> I'm learning factor and have some of those noob questions.  I can
> program in quite a few languages, the usual things plus Smalltalk,
> Ruby and a little Forth, so my questions aren't really about the
> language (which looks pretty interesting).  It is the simple things
> like using the REPL appropriately.  Right now, I'm using Scite and
> while I'm usually willing to switch editors (and really want syntax
> coloring) I'm am not willing to switch to emacs so FUEL is not an
> option.  I looked at emacs again today and I know people really love
> it, but no, I'm not willing to switch.  So here is my question...
>
> I edit my code in Scite, press ctrl-S to save the file.
> Atl-tab to switch to the Factor listener.
> Press ctrl-P
> Down arrow twice to the line "" reload
> Press enter twice
> Assuming I didn't screw anything up (I'm a noob, remember)
> Press ctrl-P
> Down arrow twice
> Press enter twice to run the word for my app
>
> I'm sure there is a simpler way and I'm going to feel dumb when you  
> tell me ;-P
>
> Steve
>
> --
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] Noob

2009-01-19 Thread Steve Weeks
I'm learning factor and have some of those noob questions.  I can
program in quite a few languages, the usual things plus Smalltalk,
Ruby and a little Forth, so my questions aren't really about the
language (which looks pretty interesting).  It is the simple things
like using the REPL appropriately.  Right now, I'm using Scite and
while I'm usually willing to switch editors (and really want syntax
coloring) I'm am not willing to switch to emacs so FUEL is not an
option.  I looked at emacs again today and I know people really love
it, but no, I'm not willing to switch.  So here is my question...

I edit my code in Scite, press ctrl-S to save the file.
Atl-tab to switch to the Factor listener.
Press ctrl-P
Down arrow twice to the line "" reload
Press enter twice
Assuming I didn't screw anything up (I'm a noob, remember)
Press ctrl-P
Down arrow twice
Press enter twice to run the word for my app

I'm sure there is a simpler way and I'm going to feel dumb when you tell me ;-P

Steve

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] noob question on editor usage.

2007-11-05 Thread Arie van Wingerden
Had to run-file a source first.
After that, Factor apparently knows where the sourcefile lives.
And that's why edit can be used on any of the newly loaded words (i guess
;-)

Neat feature!

Thx,
   Arie

2007/11/5, Slava Pestov <[EMAIL PROTECTED]>:
>
> It is meant for words defined in source files, this includes standard
> library words as well as words you write yourself.
>
> On 5-Nov-07, at 4:59 AM, Arie van Wingerden wrote:
>
> > Hi Slava,
> >
> > thanks for the answer - works indeed now. I didn't realize it was
> > meant for library words only.
> >
> > Thanks for this great language; just getting my feet wet ;-)
> >
> > Kind regards,
> >Arie
> >
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] noob question on editor usage.

2007-11-05 Thread Slava Pestov
It is meant for words defined in source files, this includes standard  
library words as well as words you write yourself.

On 5-Nov-07, at 4:59 AM, Arie van Wingerden wrote:

> Hi Slava,
>
> thanks for the answer - works indeed now. I didn't realize it was  
> meant for library words only.
>
> Thanks for this great language; just getting my feet wet ;-)
>
> Kind regards,
>Arie
>


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] noob question on editor usage.

2007-11-05 Thread Arie van Wingerden
Hi Slava,

thanks for the answer - works indeed now. I didn't realize it was meant for
library words only.

Thanks for this great language; just getting my feet wet ;-)

Kind regards,
   Arie

2007/11/4, Slava Pestov <[EMAIL PROTECTED]>:
>
> That's because your 'test' word was defined in the listener, and not
> in a source file.
>
> Try something like
>
> \ + edit
>
> To open the library word '+'. It should open core/math/math.factor in
> scite.
>
> Slava
>
> On 4-Nov-07, at 4:30 PM, Arie van Wingerden wrote:
>
> > Hi Matthew and Daniel,
> >
> > thanks for the answer.
> > Indeed the USE works fine.
> >
> > However, when i create a dummy word like
> >: test * . ;
> > and i enter
> >\ test edit
> > no error is reported, but also Scite doesn't open.
> >
> > I already have put the path to scite.exe in the Windows environment
> > variable PATH, but still no result.
> > Do I need to specify the path to Scite manually (e.g. in edit-
> > location) ?
> >
> > Sorry to bother again ;-)
> >
> > TIA,
> >Arie
> >
> > 2007/11/4, Daniel Ehrenberg <[EMAIL PROTECTED]>: To load a
> > vocabulary, generally you use the parsing word USE: or
> > USING:. You can look up the help files on these words for more
> > details, but in this case, you just need to enter the command USE:
> > editors.scite at the listener. (You might later want to save an image
> > with this loaded, or put it in your .factor-rc, but for now, just
> > entering this command should do.)
> >
> > Daniel Ehrenberg
> >
> > On 11/4/07, Arie van Wingerden <[EMAIL PROTECTED] > wrote:
> > > Hi,
> > >
> > > i found this
> > >
> > >   -  edit ( defspec -- )
> > >   Depending on the editor you are using, you must load one of the
> > child
> > > vocabularies of the editors vocabulary, for example editors.emacs.
> > >   
> > > in the documentation and am aware that i (in my case) should "load"
> > > editors.scite.
> > >
> > > But i don't know how to "load" :-(
> > >
> > > I found "load-vocab" but didn't manage to use it properly.
> > >
> > > Question 1: Does somebody have a literal example?
> > >
> > > Question 2: is there a kind of INI file to do this kind of thing
> > > automatically every time the workspace is started?
> > >
> > > TIA,
> > >Arie
> > >
> > >
> > --
> > ---
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> > browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > ___
> > > Factor-talk mailing list
> > > Factor-talk@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/factor-talk
> > >
> > >
> >
> > --
> > ---
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> > browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
> >
> > --
> > ---
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> > browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] noob question on editor usage.

2007-11-04 Thread Slava Pestov
That's because your 'test' word was defined in the listener, and not  
in a source file.

Try something like

\ + edit

To open the library word '+'. It should open core/math/math.factor in  
scite.

Slava

On 4-Nov-07, at 4:30 PM, Arie van Wingerden wrote:

> Hi Matthew and Daniel,
>
> thanks for the answer.
> Indeed the USE works fine.
>
> However, when i create a dummy word like
>: test * . ;
> and i enter
>\ test edit
> no error is reported, but also Scite doesn't open.
>
> I already have put the path to scite.exe in the Windows environment  
> variable PATH, but still no result.
> Do I need to specify the path to Scite manually (e.g. in edit- 
> location) ?
>
> Sorry to bother again ;-)
>
> TIA,
>Arie
>
> 2007/11/4, Daniel Ehrenberg <[EMAIL PROTECTED]>: To load a  
> vocabulary, generally you use the parsing word USE: or
> USING:. You can look up the help files on these words for more
> details, but in this case, you just need to enter the command USE:
> editors.scite at the listener. (You might later want to save an image
> with this loaded, or put it in your .factor-rc, but for now, just
> entering this command should do.)
>
> Daniel Ehrenberg
>
> On 11/4/07, Arie van Wingerden <[EMAIL PROTECTED] > wrote:
> > Hi,
> >
> > i found this
> >
> >   -  edit ( defspec -- )
> >   Depending on the editor you are using, you must load one of the  
> child
> > vocabularies of the editors vocabulary, for example editors.emacs.
> >   
> > in the documentation and am aware that i (in my case) should "load"
> > editors.scite.
> >
> > But i don't know how to "load" :-(
> >
> > I found "load-vocab" but didn't manage to use it properly.
> >
> > Question 1: Does somebody have a literal example?
> >
> > Question 2: is there a kind of INI file to do this kind of thing
> > automatically every time the workspace is started?
> >
> > TIA,
> >Arie
> >
> >  
> -- 
> ---
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a  
> browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
> >
> >
>
> -- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
> -- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/ 
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] noob question on editor usage.

2007-11-04 Thread Arie van Wingerden
Hi Matthew and Daniel,

thanks for the answer.
Indeed the USE works fine.

However, when i create a dummy word like
   : test * . ;
and i enter
   \ test edit
no error is reported, but also Scite doesn't open.

I already have put the path to scite.exe in the Windows environment variable
PATH, but still no result.
Do I need to specify the path to Scite manually (e.g. in edit-location) ?

Sorry to bother again ;-)

TIA,
   Arie

2007/11/4, Daniel Ehrenberg <[EMAIL PROTECTED]>:
>
> To load a vocabulary, generally you use the parsing word USE: or
> USING:. You can look up the help files on these words for more
> details, but in this case, you just need to enter the command USE:
> editors.scite at the listener. (You might later want to save an image
> with this loaded, or put it in your .factor-rc, but for now, just
> entering this command should do.)
>
> Daniel Ehrenberg
>
> On 11/4/07, Arie van Wingerden <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > i found this
> >
> >   -  edit ( defspec -- )
> >   Depending on the editor you are using, you must load one of the child
> > vocabularies of the editors vocabulary, for example editors.emacs.
> >   
> > in the documentation and am aware that i (in my case) should "load"
> > editors.scite.
> >
> > But i don't know how to "load" :-(
> >
> > I found "load-vocab" but didn't manage to use it properly.
> >
> > Question 1: Does somebody have a literal example?
> >
> > Question 2: is there a kind of INI file to do this kind of thing
> > automatically every time the workspace is started?
> >
> > TIA,
> >Arie
> >
> >
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > Factor-talk mailing list
> > Factor-talk@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
> >
> >
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] noob question on editor usage.

2007-11-04 Thread Matthew Willis
Try USE: 

On Nov 4, 2007, at 11:26 AM, Arie van Wingerden wrote:

> Hi,
>
> i found this
>
>   -  edit ( defspec -- )
>   Depending on the editor you are using, you must load one of the  
> child vocabularies of the editors vocabulary, for example  
> editors.emacs.
>   
> in the documentation and am aware that i (in my case) should "load"  
> editors.scite.
>
> But i don't know how to "load" :-(
>
> I found "load-vocab" but didn't manage to use it properly.
>
> Question 1: Does somebody have a literal example?
>
> Question 2: is there a kind of INI file to do this kind of thing  
> automatically every time the workspace is started?
>
> TIA,
>Arie
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> 
> http://get.splunk.com/___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] noob question on editor usage.

2007-11-04 Thread Daniel Ehrenberg
To load a vocabulary, generally you use the parsing word USE: or
USING:. You can look up the help files on these words for more
details, but in this case, you just need to enter the command USE:
editors.scite at the listener. (You might later want to save an image
with this loaded, or put it in your .factor-rc, but for now, just
entering this command should do.)

Daniel Ehrenberg

On 11/4/07, Arie van Wingerden <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i found this
>
>   -  edit ( defspec -- )
>   Depending on the editor you are using, you must load one of the child
> vocabularies of the editors vocabulary, for example editors.emacs.
>   
> in the documentation and am aware that i (in my case) should "load"
> editors.scite.
>
> But i don't know how to "load" :-(
>
> I found "load-vocab" but didn't manage to use it properly.
>
> Question 1: Does somebody have a literal example?
>
> Question 2: is there a kind of INI file to do this kind of thing
> automatically every time the workspace is started?
>
> TIA,
>Arie
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] noob question on editor usage.

2007-11-04 Thread Arie van Wingerden
Hi,

i found this
   
  -  edit ( defspec -- )
  Depending on the editor you are using, you must load one of the child
vocabularies of the editors vocabulary, for example editors.emacs.
  
in the documentation and am aware that i (in my case) should "load"
editors.scite.

But i don't know how to "load" :-(

I found "load-vocab" but didn't manage to use it properly.

Question 1: Does somebody have a literal example?

Question 2: is there a kind of INI file to do this kind of thing
automatically every time the workspace is started?

TIA,
   Arie
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk