First,
In factor's listener terminal (not in the gui window, though),
Jon Harper suggested to hit Control-C and t to terminate
a long running code.
I hit Control-C in below case (1), it brings out a low level debugger (what
a pleasant surprise).
Let me ask a question first before I write more abou
to provide feedback there rather than
> the mailing list:
>
> https://github.com/slavapestov/factor/issues/1483
>
>
>
>
> On Thu, Oct 1, 2015 at 8:38 AM, HP wei wrote:
>
>> Well, I just checked the running factor session that failed the
>> task overnight
usted the memory on the machine.
I guess there might be some memory (leak) issue somewhere ???
--HP
-- Forwarded message ----------
From: HP wei
Date: Thu, Oct 1, 2015 at 9:36 AM
Subject: how to error trapping 'link-info'
To: factor-talk@lists.sourceforge.net
As sug
The objective:
we have several linux machines that I need to check on certain
status (--- disks, update-jobs etc).
My plan is, if feasible, to run a remote factor-listener on each of
those
machines and run a 'master' factor on a machine that collects all info
and presents issue
:
total_size += get_fize(file_info)
except:
pass
continue
HP
-- Forwarded message --
From: HP wei
Date: Thu, Oct 1, 2015 at 9:36 AM
Subject: how to error trapping 'link-info'
To: factor-talk@lists.sourceforge.net
As su
As suggested by John, I test out the following action to
get the total file sizes of a disk volume.
0 "a_path_to_big_folder" [ link-info dup symbolic-link? [ drop ] [ size>> +
] if ] each-file
Our big-folder is on a netapp server shared by tens of people. Many small
files get updated
every minu
this
> is not a performance issue. But, like anything with software, if you have a
> different use case we can adapt the code to it.
>
>
> On Sep 30, 2015, at 1:59 PM, HP wei <mailto:hpwe...@gmail.com>> wrote:
>
>> I see. That is how factor distinguishes stat a
Coleman
wrote:
> You can do link-info instead.
>
> On Wed, Sep 30, 2015, 13:42 HP wei wrote:
>
>> While trying out the word each-file, I bumped into presumably
>> a bug in
>>
>> file-info ( path -- info )
>>
>> Under linux,
>> if the pa
t the link.
---
As a result of this 'bug', the following (as suggested by John the other
day)
could not do what is intended (to get the size of a folder).
0 a_path_to_folder t [ file-info dup symbolic-link? [ drop ] [ size>> + ]
ot;path-to-file" ascii [ V{ } [ quot ] each-line ]
with-file-reader
The collected info is on the stack after the above finishes.
To go through a huge directory (folder),
do you know if the current factor can set up something s
.factor#L62-L67>
>
> Granted, all of those are building a single process, not a pipeline. But the
> same principles apply:
>
> : cmd1 ( -- ) ... ;
> : cmd2 ( -- ) ... ;
>
> [ cmd1 , cmd2 , ] { } make run-pipeline
>
> On Mon, Sep 21, 2015 at 9:21 PM, HP Wei <mailto:hp
} run-pipeline
Adding cmd2, I could write
${ my_b >>b get-cmd1 my_c >>c get-cmd2 } run-pipeline
But this looks ugly.
Is there a simpler way ?
Thanks
HP Wei
--
I am just starting to learn factor.
In ocaml or python, when I open a file stream, I usually set up an object
with an accumulator class variable where I collect the selected info while
walking through the stream (file).
I am trying to look at various places to find an equivalent way of doing thi
13 matches
Mail list logo