ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* gettimeofday under XP
@ 2007-12-06 12:43 Peter Rolf
  2007-12-06 12:46 ` Arthur Reutenauer
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Rolf @ 2007-12-06 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I run into the following error with the new version:
'luatools --generate' results in

Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
attempt to call field 'gettimeofday' (a nil value)


There seems to be no 'os.gettimeofday' under Windows XP.
This patch of luatools.lua works here (better check twice) :D

if os.gettimeofday then
    os.clock = os.gettimeofday
    local startuptime = os.gettimeofday()
    function os.runtime()
        return os.gettimeofday() - startuptime
    end
end

-- if os.gettimeofday then
--     os.clock = os.gettimeofday
-- end

-- do
--     local startuptime = os.gettimeofday()
--     function os.runtime()
--         return os.gettimeofday() - startuptime
--     end
-- end


Best wishes, Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 12:43 gettimeofday under XP Peter Rolf
@ 2007-12-06 12:46 ` Arthur Reutenauer
  2007-12-06 13:04   ` Peter Rolf
  0 siblings, 1 reply; 14+ messages in thread
From: Arthur Reutenauer @ 2007-12-06 12:46 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
> attempt to call field 'gettimeofday' (a nil value)

  Your LuaTeX is "too old".  Take yesterday's beta (0.20).

	Arthur
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 12:46 ` Arthur Reutenauer
@ 2007-12-06 13:04   ` Peter Rolf
  2007-12-06 13:08     ` Mojca Miklavec
  2007-12-06 13:09     ` Taco Hoekwater
  0 siblings, 2 replies; 14+ messages in thread
From: Peter Rolf @ 2007-12-06 13:04 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

Arthur Reutenauer schrieb:
>> Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
>> attempt to call field 'gettimeofday' (a nil value)
> 
>   Your LuaTeX is "too old".  Take yesterday's beta (0.20).

mhh, I already use this version in my minimal installation. There is no
doubt about it.

> 
> 	Arthur
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:04   ` Peter Rolf
@ 2007-12-06 13:08     ` Mojca Miklavec
  2007-12-06 13:09     ` Taco Hoekwater
  1 sibling, 0 replies; 14+ messages in thread
From: Mojca Miklavec @ 2007-12-06 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12/6/07, Peter Rolf <indiego@gmx.net> wrote:
> Arthur Reutenauer schrieb:
> >> Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
> >> attempt to call field 'gettimeofday' (a nil value)
> >
> >   Your LuaTeX is "too old".  Take yesterday's beta (0.20).
>
> mhh, I already use this version in my minimal installation. There is no
> doubt about it.

Then perhaps luatools --selfupdate? (only guessing)

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:04   ` Peter Rolf
  2007-12-06 13:08     ` Mojca Miklavec
@ 2007-12-06 13:09     ` Taco Hoekwater
  2007-12-06 13:14       ` Arthur Reutenauer
  2007-12-06 13:20       ` Peter Rolf
  1 sibling, 2 replies; 14+ messages in thread
From: Taco Hoekwater @ 2007-12-06 13:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Peter Rolf wrote:
> Arthur Reutenauer schrieb:
>>> Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
>>> attempt to call field 'gettimeofday' (a nil value)
>>   Your LuaTeX is "too old".  Take yesterday's beta (0.20).
> 
> mhh, I already use this version in my minimal installation. There is no
> doubt about it.

Did you forget to copy the new executable to texlua.exe perhaps?
os.gettimeofday() is available everywhere except on Solaris.

Best wishes,
Taco

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:09     ` Taco Hoekwater
@ 2007-12-06 13:14       ` Arthur Reutenauer
  2007-12-06 13:27         ` Taco Hoekwater
  2007-12-06 13:20       ` Peter Rolf
  1 sibling, 1 reply; 14+ messages in thread
From: Arthur Reutenauer @ 2007-12-06 13:14 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> os.gettimeofday() is available everywhere except on Solaris.

  It seems to work, though (at least on my machine :-)  And it's in the
Solaris 9 libc.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:09     ` Taco Hoekwater
  2007-12-06 13:14       ` Arthur Reutenauer
@ 2007-12-06 13:20       ` Peter Rolf
  2007-12-06 13:29         ` Taco Hoekwater
                           ` (2 more replies)
  1 sibling, 3 replies; 14+ messages in thread
From: Peter Rolf @ 2007-12-06 13:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco Hoekwater schrieb:
> 
> Peter Rolf wrote:
>> Arthur Reutenauer schrieb:
>>>> Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
>>>> attempt to call field 'gettimeofday' (a nil value)
>>>   Your LuaTeX is "too old".  Take yesterday's beta (0.20).
>> mhh, I already use this version in my minimal installation. There is no
>> doubt about it.
> 
> Did you forget to copy the new executable to texlua.exe perhaps?

Bingo!

This reminds me, that there are still three identical huge files in my
bin directory. Aside from the waste of space such stupid errors can
occur. Is this problem solved in the meantime?

Thanks anyway,

Peter

> os.gettimeofday() is available everywhere except on Solaris.
> 
> Best wishes,
> Taco
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:14       ` Arthur Reutenauer
@ 2007-12-06 13:27         ` Taco Hoekwater
  0 siblings, 0 replies; 14+ messages in thread
From: Taco Hoekwater @ 2007-12-06 13:27 UTC (permalink / raw)
  To: Mailing list for ConTeXt users



Arthur Reutenauer wrote:
>> os.gettimeofday() is available everywhere except on Solaris.
> 
>   It seems to work, though (at least on my machine :-)  And it's in the
> Solaris 9 libc.

Can you (or someone else) figure out what the C preprocessor defines
are for "post-SunOs Solaris"? If that is clear, I can use that.

Either that or a volunteer that wants to work on an autofoo patch for
me would make this work on almost all modern machines.

Best wishes,
Taco




___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:20       ` Peter Rolf
@ 2007-12-06 13:29         ` Taco Hoekwater
  2007-12-06 13:49           ` Peter Rolf
  2007-12-06 13:33         ` Arthur Reutenauer
  2007-12-06 13:53         ` Hans Hagen
  2 siblings, 1 reply; 14+ messages in thread
From: Taco Hoekwater @ 2007-12-06 13:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Peter Rolf wrote:
> Taco Hoekwater schrieb:
>> Peter Rolf wrote:
>>> Arthur Reutenauer schrieb:
>>>>> Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
>>>>> attempt to call field 'gettimeofday' (a nil value)
>>>>   Your LuaTeX is "too old".  Take yesterday's beta (0.20).
>>> mhh, I already use this version in my minimal installation. There is no
>>> doubt about it.
>> Did you forget to copy the new executable to texlua.exe perhaps?
> 
> Bingo!
> 
> This reminds me, that there are still three identical huge files in my
> bin directory. Aside from the waste of space such stupid errors can
> occur. Is this problem solved in the meantime?

texlua.bat:

   @echo off
   luatex --luaonly %1

Should work.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:20       ` Peter Rolf
  2007-12-06 13:29         ` Taco Hoekwater
@ 2007-12-06 13:33         ` Arthur Reutenauer
  2007-12-06 13:53         ` Hans Hagen
  2 siblings, 0 replies; 14+ messages in thread
From: Arthur Reutenauer @ 2007-12-06 13:33 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> This reminds me, that there are still three identical huge files in my
> bin directory. Aside from the waste of space such stupid errors can
> occur. Is this problem solved in the meantime?

  Akira Kakuto distributes "luatex.dll" in his W32TeX distribution, and
links all three binaries to them.  But it should also be possible to
write a simple batch file like texlua.bat calling "luatex --luaonly";
and that way you don't have to remember to copy all three binaries each
time (which is equivalent to linking on Unix, and replacing only the
LuaTeX binary).  I wonder if anyone has already done that?

	Arthur
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:29         ` Taco Hoekwater
@ 2007-12-06 13:49           ` Peter Rolf
  2007-12-06 13:53             ` Taco Hoekwater
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Rolf @ 2007-12-06 13:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco Hoekwater schrieb:
> 
> Peter Rolf wrote:
>> Taco Hoekwater schrieb:
>>> Peter Rolf wrote:
>>>> Arthur Reutenauer schrieb:
>>>>>> Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402:
>>>>>> attempt to call field 'gettimeofday' (a nil value)
>>>>>   Your LuaTeX is "too old".  Take yesterday's beta (0.20).
>>>> mhh, I already use this version in my minimal installation. There is no
>>>> doubt about it.
>>> Did you forget to copy the new executable to texlua.exe perhaps?
>> Bingo!
>>
>> This reminds me, that there are still three identical huge files in my
>> bin directory. Aside from the waste of space such stupid errors can
>> occur. Is this problem solved in the meantime?
> 
> texlua.bat:
> 
>    @echo off
>    luatex --luaonly %1
> 
> Should work.

Yes, I already had a batch sript for this, but the latest mswin binaries
contains a texlua.exe. I didn't check, so it's my own fault. Still there
is no such solution for texluac.exe. I run ConTeXt in a RAM disk, so I
don't like the idea of wasting any space.

Time to learn some more luatex. :)

Thanks to all of you for the help!

Peter


> 
> Best wishes,
> Taco
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:49           ` Peter Rolf
@ 2007-12-06 13:53             ` Taco Hoekwater
  2007-12-06 13:58               ` Arthur Reutenauer
  0 siblings, 1 reply; 14+ messages in thread
From: Taco Hoekwater @ 2007-12-06 13:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Peter Rolf wrote:
> 
> Still there
> is no such solution for texluac.exe. I run ConTeXt in a RAM disk, so I
> don't like the idea of wasting any space.

Actually,

texluac.bat:

     @echo off
     luatex --luaconly %1

but it is not mentioned in the --help output, so I am not surprised
you didn't know that.

Best wishes,

Taco


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:20       ` Peter Rolf
  2007-12-06 13:29         ` Taco Hoekwater
  2007-12-06 13:33         ` Arthur Reutenauer
@ 2007-12-06 13:53         ` Hans Hagen
  2 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2007-12-06 13:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Rolf wrote:

> This reminds me, that there are still three identical huge files in my
> bin directory. Aside from the waste of space such stupid errors can
> occur. Is this problem solved in the meantime?

their size is nothing compared to font files -)

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gettimeofday under XP
  2007-12-06 13:53             ` Taco Hoekwater
@ 2007-12-06 13:58               ` Arthur Reutenauer
  0 siblings, 0 replies; 14+ messages in thread
From: Arthur Reutenauer @ 2007-12-06 13:58 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> but it is not mentioned in the --help output, so I am not surprised
> you didn't know that.

  Who needs that?  It's line 388 of luainit.c ;-)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-12-06 13:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-06 12:43 gettimeofday under XP Peter Rolf
2007-12-06 12:46 ` Arthur Reutenauer
2007-12-06 13:04   ` Peter Rolf
2007-12-06 13:08     ` Mojca Miklavec
2007-12-06 13:09     ` Taco Hoekwater
2007-12-06 13:14       ` Arthur Reutenauer
2007-12-06 13:27         ` Taco Hoekwater
2007-12-06 13:20       ` Peter Rolf
2007-12-06 13:29         ` Taco Hoekwater
2007-12-06 13:49           ` Peter Rolf
2007-12-06 13:53             ` Taco Hoekwater
2007-12-06 13:58               ` Arthur Reutenauer
2007-12-06 13:33         ` Arthur Reutenauer
2007-12-06 13:53         ` Hans Hagen

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).