ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Re: TeX run : 8
@ 2005-03-11 11:07 Steffen Wolfrum
  0 siblings, 0 replies; 17+ messages in thread
From: Steffen Wolfrum @ 2005-03-11 11:07 UTC (permalink / raw)
  Cc: pmlists

Hi Peter,


Peter Münster <pmlists@free.fr> wrote:

>  On Tue, 8 Mar 2005, Patrick Gundlach wrote:
>
>  > > for those, who don't want to update:
>  > > export PERL_HASH_SEED=0
>  > > in $HOME/.profile works very nicely.
>  >
>  > is this reliable?
>
>  It seems to me. At least on Linux: since a long time I've been used to get
>  always 8 runs with my procuct-files, and now I get only 1 or 2 runs.
>
>  Cheers, Peter


I just saw that you also fought with the "unknown 
reference []" while using the ffr encoding (nine 
months ago).
I read and tried all the solutions that Hans and you found out up to now.

But as soon as I set

\enablemode[activecolon] \usemodule[tryout]

in my local cont-sys.tex I am back to 8 runs 
again (either with Patrick's patch or with your 
line in .profile).

Do you experience the same (or did I use the wrong .profile here on Mac)?

This would mean that, when using ffr, we either 
have to ignore all this unknown reference outputs 
or fall back to 8 runs :o(

Or does someone already has a solution covering both bugs?

Steffen

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-08 18:24               ` Patrick Gundlach
@ 2005-03-08 20:33                 ` Peter Münster
  0 siblings, 0 replies; 17+ messages in thread
From: Peter Münster @ 2005-03-08 20:33 UTC (permalink / raw)


On Tue, 8 Mar 2005, Patrick Gundlach wrote:

> > for those, who don't want to update:
> > export PERL_HASH_SEED=0
> > in $HOME/.profile works very nicely.
> 
> is this reliable?

It seems to me. At least on Linux: since a long time I've been used to get
always 8 runs with my procuct-files, and now I get only 1 or 2 runs.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-04 12:14           ` Taco Hoekwater
@ 2005-03-07 18:53             ` Peter Münster
  2005-03-08 18:24               ` Patrick Gundlach
  0 siblings, 1 reply; 17+ messages in thread
From: Peter Münster @ 2005-03-07 18:53 UTC (permalink / raw)


On Fri, 4 Mar 2005, Taco Hoekwater wrote:

> Giuseppe Bilotta wrote:
>  >>
> >>[if it's indeed the perl hash, (maybe i should make it an array), then it looks
> >>like perl uses a different hash strategy each run and on each os]
> 
> The most relevant bit of documentation is this:
> 
> http://search.cpan.org/dist/perl/pod/perl581delta.pod#Hash_Randomisation
> 
> So yes, it is perl, and it is on purpose.
> 
> There might be more locations in ConTeXt's perl scripts
> that need an additional 'sort'.

Hello,
for those, who don't want to update:
export PERL_HASH_SEED=0
in $HOME/.profile works very nicely.

Greetings, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-04 11:37         ` Re[2]: " Giuseppe Bilotta
@ 2005-03-04 12:14           ` Taco Hoekwater
  2005-03-07 18:53             ` Peter Münster
  0 siblings, 1 reply; 17+ messages in thread
From: Taco Hoekwater @ 2005-03-04 12:14 UTC (permalink / raw)


Giuseppe Bilotta wrote:
 >>
>>[if it's indeed the perl hash, (maybe i should make it an array), then it looks
>>like perl uses a different hash strategy each run and on each os]

The most relevant bit of documentation is this:

http://search.cpan.org/dist/perl/pod/perl581delta.pod#Hash_Randomisation

So yes, it is perl, and it is on purpose.

There might be more locations in ConTeXt's perl scripts
that need an additional 'sort'.

Greetings, Taco

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03 11:59       ` Hans Hagen
@ 2005-03-03 21:54         ` Angus Lees
  2005-03-04 11:37         ` Re[2]: " Giuseppe Bilotta
  1 sibling, 0 replies; 17+ messages in thread
From: Angus Lees @ 2005-03-03 21:54 UTC (permalink / raw)


At Thu, 03 Mar 2005 12:59:18 +0100, Hans Hagen wrote:
> [if it's indeed the perl hash, (maybe i should make it an array), then
> it looks like perl uses a different hash strategy each run and on each
> os]

Indeed, perl 5.8.1 introduced randomised hash functions to avoid the
"hash collision" attacks that were being published at the time.  You
can never assume hash traversal order will be constant across
different hashes.  See the discussion in the beginning of
`perldoc perl581delta' (and a followup in perl582delta).

-- 
 - Gus

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
@ 2005-03-03 13:40 Steffen Wolfrum
  0 siblings, 0 replies; 17+ messages in thread
From: Steffen Wolfrum @ 2005-03-03 13:40 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> wrote:

>  Patrick Gundlach wrote:
>
>  > do you still want me to try this?
>
>  not if we assume that indeed perl hashes are organized differently per run
>
>  so, for the moment let stick to the texutil sort patch
>
>  thanks for testing; i'll post a new beta later
>
>  Hans



2 runs not 8:
That would mean that all Mac-ConTeXters won 75% TeX-time by your 
investigation (how many hours/days/years this might be ... )

Thank you Patrick, thank you Hans!

Steffen

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03 12:33         ` Patrick Gundlach
@ 2005-03-03 13:08           ` Hans Hagen
  0 siblings, 0 replies; 17+ messages in thread
From: Hans Hagen @ 2005-03-03 13:08 UTC (permalink / raw)


Patrick Gundlach wrote:

> do you still want me to try this? 

not if we assume that indeed perl hashes are organized differently per run

so, for the moment let stick to the texutil sort patch

thanks for testing; i'll post a new beta later

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03 11:07     ` Patrick Gundlach
  2005-03-03 11:16       ` Taco Hoekwater
@ 2005-03-03 11:59       ` Hans Hagen
  2005-03-03 21:54         ` Angus Lees
  2005-03-04 11:37         ` Re[2]: " Giuseppe Bilotta
  1 sibling, 2 replies; 17+ messages in thread
From: Hans Hagen @ 2005-03-03 11:59 UTC (permalink / raw)


Patrick Gundlach wrote:
> Hi,
> 
> I don't know enough of perl, perhaps the hash %Files should be sorted before
> output (texutil.pl)?
> 
> sub FlushFiles
>   { print TUO "%\n" . "% $Program / Files\n" . "%\n" ;
>     foreach $File (keys %Files)
>       { print TUO "% $File ($Files{$File})\n" }

That could be a way out, but before that i want you to check the order in the 
tui files.

[if it's indeed the perl hash, (maybe i should make it an array), then it looks 
like perl uses a different hash strategy each run and on each os]

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03 10:34     ` Patrick Gundlach
@ 2005-03-03 11:52       ` Hans Hagen
  2005-03-03 12:33         ` Patrick Gundlach
  0 siblings, 1 reply; 17+ messages in thread
From: Hans Hagen @ 2005-03-03 11:52 UTC (permalink / raw)


Patrick Gundlach wrote:
> Hello Hans,
> 
> 
> [...]
> 
> 
>>can you patch texexec to provide some info about the file compare?
>>(filesizes or so)
> 
> 
> done, see attachment.

now this is weird!

% parts/one.tex (2)
% parts/two.tex (2)
% test (2)

% parts/two.tex (2)
% parts/one.tex (2)
% test (2)

% parts/two.tex (2)
% test (2)
% parts/one.tex (2)

it looks like some flushing problem of write nodes, can you do the same with the 
tui file?

the code in context that does this is:

   \def\registerfileinfo[#1#2]#3%
     {\writestatus\m!systems{#1#2 file #3 at line \the\inputlineno}%
      \immediatewriteutility{f #1 {#3}}}

does it run ok when you define this as:

   \def\registerfileinfo[#1]#2{}

if so, it may be a problem in the tex binary (immediate writes not flushed ok)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03 11:07     ` Patrick Gundlach
@ 2005-03-03 11:16       ` Taco Hoekwater
  2005-03-03 11:59       ` Hans Hagen
  1 sibling, 0 replies; 17+ messages in thread
From: Taco Hoekwater @ 2005-03-03 11:16 UTC (permalink / raw)



I think you've nailed it. Nice debugging!

Taco

Patrick Gundlach wrote:
> Hi,
> 
> I don't know enough of perl, perhaps the hash %Files should be sorted before
> output (texutil.pl)?
> 
> 
> sub FlushFiles
>   { print TUO "%\n" . "% $Program / Files\n" . "%\n" ;
>     foreach $File (keys %Files)
>       { print TUO "% $File ($Files{$File})\n" }
> 
> Patrick

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03 10:05 Patrick Gundlach
@ 2005-03-03 10:34 ` Adam Lindsay
  0 siblings, 0 replies; 17+ messages in thread
From: Adam Lindsay @ 2005-03-03 10:34 UTC (permalink / raw)


Patrick Gundlach said this at Thu, 3 Mar 2005 11:05:15 +0100:

>> [And boy, it sure is faster than the setup I had on my PowerBook!]
>
>Don't say that ;-). I just got a new PowerBook.

My _two-year-old_ 12" PowerBook. The Mac mini'd be just a shade slower
than the current (very attractive) generation of PBs.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03  7:38       ` Hans Hagen
@ 2005-03-03  9:49         ` Adam Lindsay
  0 siblings, 0 replies; 17+ messages in thread
From: Adam Lindsay @ 2005-03-03  9:49 UTC (permalink / raw)


Hans Hagen said this at Thu, 3 Mar 2005 08:38:11 +0100:

>> [And boy, it sure is faster than the setup I had on my PowerBook!]
>
>if it runs ok on your old box ... is it related to the version of perl?

Old box is in for repair--can't test it. :/
It was a slower processor, with heavier TeX trees, and a full (fragmented
disk)--no real surprise that a virgin setup on a new machine is nicer.

Anyway, on both machines, Perl is stock 5.8.1-RC3, nothing modified from
what Apple ships with the current OS.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-02 23:32     ` Adam Lindsay
@ 2005-03-03  7:38       ` Hans Hagen
  2005-03-03  9:49         ` Adam Lindsay
  0 siblings, 1 reply; 17+ messages in thread
From: Hans Hagen @ 2005-03-03  7:38 UTC (permalink / raw)


Adam Lindsay wrote:
> Patrick Gundlach said this at Wed, 2 Mar 2005 20:46:05 +0100:
> 
> 
>>>dunno, the mac is not updated yet and actually not sitting on my desk
>>>but in my library; best let patrick and/or adam test that since they
>>>normally have the latest (alpha/beta/current) versions
> 
> 
> I can't add much to this discussion, other than I get 1 < n < 9 runs with
> Steffen's minimal test case as well. I'm running Hans's minimal distro
> and the latest alpha. (On my new Mac mini. :)
> 
> [And boy, it sure is faster than the setup I had on my PowerBook!]

if it runs ok on your old box ... is it related to the version of perl?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-02 19:46   ` Patrick Gundlach
  2005-03-02 20:05     ` Patrick Gundlach
@ 2005-03-02 23:32     ` Adam Lindsay
  2005-03-03  7:38       ` Hans Hagen
  1 sibling, 1 reply; 17+ messages in thread
From: Adam Lindsay @ 2005-03-02 23:32 UTC (permalink / raw)


Patrick Gundlach said this at Wed, 2 Mar 2005 20:46:05 +0100:

>
>> dunno, the mac is not updated yet and actually not sitting on my desk
>> but in my library; best let patrick and/or adam test that since they
>> normally have the latest (alpha/beta/current) versions

I can't add much to this discussion, other than I get 1 < n < 9 runs with
Steffen's minimal test case as well. I'm running Hans's minimal distro
and the latest alpha. (On my new Mac mini. :)

[And boy, it sure is faster than the setup I had on my PowerBook!]
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-02 20:56 ` Patrick Gundlach
@ 2005-03-02 23:18   ` Hans Hagen
  2005-03-03 10:34     ` Patrick Gundlach
  2005-03-03 11:07     ` Patrick Gundlach
  0 siblings, 2 replies; 17+ messages in thread
From: Hans Hagen @ 2005-03-02 23:18 UTC (permalink / raw)


Patrick Gundlach wrote:

> ok, clean setup, all lowercase. 8 runs. Now texutil --purgeall. 2
> runs. purge again. 8 runs. purge again. 2 runs. No purge. 8 runs.
> Purge. 8 runs. 2 runs. purge. 4 runs (!!!). purge. 2 runs. purge. 8
> runs. 3 runs. purge. 5 runs. purge. 5 runs. purge. 8 runs.
> 
> 
> -> 8, 2, 8, 2, 8, 8, 2, 4, 2, 8, 3, 5, 5, 8

can you patch texexec to provide some info about the file compare? (filesizes or 
so)

what puzzles me is that the tui/tuo does not change

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
@ 2005-03-02 20:39 Steffen Wolfrum
  2005-03-02 20:56 ` Patrick Gundlach
  0 siblings, 1 reply; 17+ messages in thread
From: Steffen Wolfrum @ 2005-03-02 20:39 UTC (permalink / raw)
  Cc: patrick

Hi Patrick,



Patrick Gundlach <patrick@gundla.ch> wrote:

>  Hello again,
>
>  > I have tried your small file (the one you have sent me) an a vanilla
>  > tetex 3.0 and an older texlive (I had to dig out my iBook -- anybody
>  > wants to buy a used iBook?) and both were two runs.
>
>  Ah, not so fast, Patrick. I can reproduce your problem:
>
>  $ ls -lR
>  .:
>  total 4
>  drwxr-xr-x    4 pg       pg            136 Mar  2 20:27 PARTS
>  -rw-r--r--    1 pg       pg            117 Mar  2 20:28 TEST.tex
>
>  ./PARTS:
>  total 8
>  -rw-r--r--    1 pg       pg             40 Mar  2 20:27 ONE.tex
>  -rw-r--r--    1 pg       pg             40 Mar  2 20:27 TWO.tex
>
>  (so setup is TEST.tex in all capitals and ONE.tex and TWO.tex in
>  subdir, tetex 3.0). Now I run
>
>  texexec --pdf test.tex
>
>  (lowercase test.tex !)
>
>  and I get:
>
>  [...]
>
>   utility file analysis : another run needed
>                 TeX run : 8
>
>
>  [...]
>
>
>  Note that the standard OS X filesystem is case preserving, but not
>  case sensitive when accessing a file. So accessing test.tex would be
>  happy with a file called TEST.tex. It is possible to create a pure
>  case sensitive HFS+ filesystem, but it isn't necessary to reproduce
>  the problem. (It would probably avoid it, though).
>
>
>  Patrick



So I made a new setup:
new files/folders and every names lowercase (folders, files, references).

The first time I executed
texexec --pdf test.tex
it looked good: 2 runs!
Then I executed
texexec --pdf test.tex
once more and now it was 8 runs again!

Does this make sense?

Steffen

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Re: TeX run : 8
  2005-03-02 20:05     ` Patrick Gundlach
@ 2005-03-02 20:32       ` Hans Hagen
  0 siblings, 0 replies; 17+ messages in thread
From: Hans Hagen @ 2005-03-02 20:32 UTC (permalink / raw)


Patrick Gundlach wrote:

>>I have tried your small file (the one you have sent me) an a vanilla
>>tetex 3.0 and an older texlive (I had to dig out my iBook -- anybody
>>wants to buy a used iBook?) and both were two runs.
> 
> 
> Ah, not so fast, Patrick. I can reproduce your problem:
> 
> $ ls -lR
> .:
> total 4
> drwxr-xr-x    4 pg       pg            136 Mar  2 20:27 PARTS
> -rw-r--r--    1 pg       pg            117 Mar  2 20:28 TEST.tex
> 
> ./PARTS:
> total 8
> -rw-r--r--    1 pg       pg             40 Mar  2 20:27 ONE.tex
> -rw-r--r--    1 pg       pg             40 Mar  2 20:27 TWO.tex
> 
> (so setup is TEST.tex in all capitals and ONE.tex and TWO.tex in
> subdir, tetex 3.0). Now I run
> 
> texexec --pdf test.tex
> 
> (lowercase test.tex !)
> 
> and I get:
> 
> [...]
> 
>  utility file analysis : another run needed
>                TeX run : 8
> 
> 
> [...]
> 
> 
> Note that the standard OS X filesystem is case preserving, but not
> case sensitive when accessing a file. So accessing test.tex would be
> happy with a file called TEST.tex. It is possible to create a pure
> case sensitive HFS+ filesystem, but it isn't necessary to reproduce
> the problem. (It would probably avoid it, though).

ah, i explicitly tried both lower and uppercase variants of the sample files, 
but windows does not care, i.e. all access deep down in the system is (afaik) 
cap. So i saw no difference here.

so, what do you recomend, renaming the file to lowercase?

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-03-11 11:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-11 11:07 Re: TeX run : 8 Steffen Wolfrum
  -- strict thread matches above, loose matches on Subject: below --
2005-03-03 13:40 Steffen Wolfrum
2005-03-03 10:05 Patrick Gundlach
2005-03-03 10:34 ` Adam Lindsay
2005-03-02 20:39 Steffen Wolfrum
2005-03-02 20:56 ` Patrick Gundlach
2005-03-02 23:18   ` Hans Hagen
2005-03-03 10:34     ` Patrick Gundlach
2005-03-03 11:52       ` Hans Hagen
2005-03-03 12:33         ` Patrick Gundlach
2005-03-03 13:08           ` Hans Hagen
2005-03-03 11:07     ` Patrick Gundlach
2005-03-03 11:16       ` Taco Hoekwater
2005-03-03 11:59       ` Hans Hagen
2005-03-03 21:54         ` Angus Lees
2005-03-04 11:37         ` Re[2]: " Giuseppe Bilotta
2005-03-04 12:14           ` Taco Hoekwater
2005-03-07 18:53             ` Peter Münster
2005-03-08 18:24               ` Patrick Gundlach
2005-03-08 20:33                 ` Peter Münster
2005-03-02 11:59 Re: [OS X TeX] " Steffen Wolfrum
2005-03-02 12:31 ` Hans Hagen
2005-03-02 19:46   ` Patrick Gundlach
2005-03-02 20:05     ` Patrick Gundlach
2005-03-02 20:32       ` Hans Hagen
2005-03-02 23:32     ` Adam Lindsay
2005-03-03  7:38       ` Hans Hagen
2005-03-03  9:49         ` Adam Lindsay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).