I think the missing point for me was <node-server>. I knew how to start a few server examples, but in general <threaded-server> requires an encoding and a few parameters for configuration. What was not obvious for me was how to create a server that would work with Factor distributed message passing (for instance I had no idea what encoding to choose because I don't know how serialization is performed). <node-server> was what I needed.
I have a few more doubts: - if I understand correctly, Factor has both an actor model and a CSP implementation, the first one using named thread on processes - so that you can send messages asynchronously provided you know the address of the recipient - and the second one using channels, which are a point of synchronization and decouple sender and receiver. Is this correct? - is it possible to start the second Factor instance from the first one? I guess this is possible using run-detached, but maybe there is something Factor specific. Just to clarify, my end goal would be to be able to launch a few worker processes, say a fixed multiple of the number of available cores, and have a Factor frontend that delegates work to them. Servers are becoming more and more multicore, and it is hard to sell Factor without being able to make good use of them. 2014-11-21 0:05 GMT+01:00 Jon Harper <jon.harpe...@gmail.com>: > Just to confirm that the following sequence of actions work (ie print > "hello" in the first factor instance) > > $ ./factor # first factor process > USING: concurrency.distributed threads io.sockets io.servers ; > "127.0.0.1" 9000 <inet4> <node-server> start-server > FROM: concurrency.messaging => receive ; > : log-message ( -- ) receive . flush log-message ; > [ log-message ] "logger" spawn dup name>> register-remote-thread > > > $ ./factor # second factor process > USING: io.sockets concurrency.messaging concurrency.distributed ; > FROM: concurrency.messaging => send ; > "hello" "127.0.0.1" 9000 <inet4> "logger" <remote-thread> send > > Jon > > > Jon > > On Thu, Nov 20, 2014 at 10:09 PM, Chris Double <chris.dou...@double.co.nz> > wrote: >> >> On Thu, Nov 20, 2014 at 8:24 AM, Andrea Ferretti >> <ferrettiand...@gmail.com> wrote: >> > I am trying to make this work, but I have issues with the line >> > >> > "myhost.com" 9001 start-server >> >> Looks like the API for starting servers/nodes has changed quite a bit. >> If you look at the following file you'll see examples of current >> usage: >> >> basis/concurrency/distributed/distributed-tests.factor >> >> -- >> http://bluishcoder.co.nz >> >> >> ------------------------------------------------------------------------------ >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> >> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >> _______________________________________________ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk