I am brand new to Factor.
I downloaded factor-winnt-x86-32-0.04.zip.

I created the file
Hello-world.factor from here
http://gitweb.factorcode.org/gitweb.cgi?p=factor;a=blob;f=extra/hello-world/hello-world.factor;hb=HEAD

  1 USE: io
  2 IN: hello-world
  3 
  4 : hello ( -- ) "Hello world" print ;
  5 
  6 MAIN: hello

This works in the Listener.
However when I run from the command line

Factor hello-world.factor 

there is no output.

I have tried replacing line 1 with USING:
I don't know the difference yet, but the other examples use USING:



I have also tried the time-server example at
http://gitweb.factorcode.org/gitweb.cgi?p=factor;a=blob;f=extra/time-server/time-server.factor;hb=HEAD

I had a problem with io.servers not being recognized.
I ultimately replaced this with io.servers.connection

This also works in the Listener, but not from the command line.
>From the command line, when I try to request the time from a browser
http://localhost:1234, there is no response, and the server appears to exit
after a few seconds.

Oh, I also tried the
"tetris" deploy-tool
mentioned in the cookbook.

This took a lot longer to run than I expected.  I am used to using a similar 
tool with Python(py2exe) which seems to run about 10 times faster.
Ultimately, it hung up.  The Listener was frozen.
The tetris.exe left on the disk would simply exit with no GUI generated.

 

Jeffrey Britton
Sr. Software Engineer
Products, Iteris, Inc.
1700 Carnegie Avenue | Suite 100
Santa Ana | CA | 92705-5551
tel 949.270.9400 | fax 949.270.9401


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to