Re: [Factor-talk] Does the location of the image file matter ?

2015-07-26 Thread Georg Simon
Am Sun, 26 Jul 2015 12:35:01 +0200 schrieb Georg Simon : Yes, it does matter. http://docs.factorcode.org/content/article-io.pathnames.special.html If a pathname begins with resource:, it is resolved relative to the directory con

Re: [Factor-talk] Timers & Deployed Apps

2015-07-26 Thread evandibona
That helps very much, thank you both! Evan From: John Benediktsson Sent: ‎Sunday‎, ‎July‎ ‎26‎, ‎2015 ‎3‎:‎28‎ ‎PM To: factor-talk@lists.sourceforge.net Your ``[ t ] loop`` is a busy loop that will suck 100% CPU. The problem you have is that a timer starts a new thread, and you wan

Re: [Factor-talk] Timers & Deployed Apps

2015-07-26 Thread John Benediktsson
Your ``[ t ] loop`` is a busy loop that will suck 100% CPU. The problem you have is that a timer starts a new thread, and you want to wait forever just sleep the main thread? start-looping-timer 1 year sleep I'm not sure if we have a way to wait for an existing thread to exit, but if we did,

Re: [Factor-talk] Timers & Deployed Apps

2015-07-26 Thread Doug Coleman
Hi Evan, You set up the loop but then starve it by going 100% CPU on the ``[ t ] loop``, which never gives the scheduler green thread a chance to run. Also, you should call ``flush`` so the terminal doesn't buffer all of the output. This one loops for awhile: USING: kernel timers io io.servers

[Factor-talk] Timers & Deployed Apps

2015-07-26 Thread evandibona
What is the correct way to use a timer within a deployed program? I never get any errors, but the quotation of the timer is simply never called. --- USING: kernel timers io io.servers prettyprint calendar ; IN: loopfun : start-looping-timer ( -- timer ) "Before Loop" . [ "In

Re: [Factor-talk] Does the location of the image file matter ?

2015-07-26 Thread Georg Simon
Am Sun, 26 Jul 2015 13:15:51 +0200 schrieb Björn Lindqvist : Thank you. > Judging by the binary name "factor-lang" you have the factor package > installed from my ppa. But it appears that you have a fresher image > coming from github. You probably can't mix the two versions like that. Indeed I di

Re: [Factor-talk] Does the location of the image file matter ?

2015-07-26 Thread Björn Lindqvist
Judging by the binary name "factor-lang" you have the factor package installed from my ppa. But it appears that you have a fresher image coming from github. You probably can't mix the two versions like that. You can try and run: "resource:db" absolute-path in the listener. It should show you a di

[Factor-talk] Does the location of the image file matter ?

2015-07-26 Thread Georg Simon
Factor 0.98 x86.64 (1565, heads/master-0-g592764d, Wed Dec 24 04:52:05 2014) [GCC 4.8.2] on linux .factor-rc USE: vocabs.loader "/home/factor/" add-vocab-root --