From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40288 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: mplib Date: Tue, 15 Apr 2008 21:22:50 +0200 Message-ID: <48051CAA.3040.28D9E6C@wwl.musensturm.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208287190 2939 80.91.229.12 (15 Apr 2008 19:19:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2008 19:19:50 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 15 21:20:17 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JlqdD-0008RS-Th for gctc-ntg-context-518@m.gmane.org; Tue, 15 Apr 2008 21:15:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E3F61FD3B; Tue, 15 Apr 2008 21:15:11 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22857-01-3; Tue, 15 Apr 2008 21:14:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F0C01FCFF; Tue, 15 Apr 2008 21:14:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B6A661FCF3 for ; Tue, 15 Apr 2008 21:14:28 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21937-02-8 for ; Tue, 15 Apr 2008 21:13:54 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by ronja.ntg.nl (Postfix) with ESMTP id 1087A1FD06 for ; Tue, 15 Apr 2008 21:13:53 +0200 (CEST) Original-Received: from [192.168.178.20] (frnk-590d0057.pool.einsundeins.de [89.13.0.87]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1JlqbJ1pv5-0001Kv; Tue, 15 Apr 2008 21:13:53 +0200 Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (4.41, DE v4.41 R1) Content-description: Mail message body X-Provags-ID: V01U2FsdGVkX18QTsGiTSRAuyVTh7msuly8ps3RVBjvdOxIwCx kS9WOsNXlYkCktUsaq7aZzDuId7dwITYd8CrXJEGgJRPiNyX8L JLs7k7UnI0jJ24Tf+iHsrFpmHVejC0a X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:40288 Archived-At: On 15 Apr 2008 at 13:31, ntg-context-request@ntg.nl wrote: Hallo Taco, > > (I have temporary appended 'dump;' to plain.mp) > > After the above, you should have plain.mem in the local directory. No. There is neither a 'plain.fmt' nor a 'plain.mem'! I have searched in the local directory, where it should be. It is not in 'D:\context\tex\texmf-mswin\web2c' where format-files usally exist. It is not in the cache. I run this: ------------------------------------------------------- \enableregime[utf-8] \starttext % start low-level \startlua local function finder(name, mode, ftype) if mode=="w" then return name else return kpse.find_file(name,ftype) end end mp = mplib.new ( { hash_size = 100000, main_memory = 2000000, param_size = 100000, find_file = finder, ini_version = true } ) if mp then res = mp:execute("plain") print(table.serialize(res)) res = mp:finish() print(table.serialize(res)) end \stoplua % stop low-level \stoptext ------------------------------------------------------- with the following output: ------------------------------------------------------- t={ ["log"]="This is MetaPost, Version 1.003 (INIMP) 15 APR 2008 21:00 (plain.mpPreloading the plain mem file, version 0.99", ["status"]=0, ["term"]="This is MetaPost, Version 1.003 (Cweb version 0.40) (INIMP)\ (plain.mpPreloading the plain mem file, version 0.99", } t={ ["log"]=" )\ Beginning to dump on file plain.mem\ (mem=plain 8.4.15)\ at most 735 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ ", ["status"]=0, ["term"]=" )\ Beginning to dump on file plain.mem\ (mem=plain 8.4.15)\ at most 735 strings of total length 3629\ 3326 memory locations dumped; current usage is 1021&2227\ 501 symbolic tokens\ Transcript written on plain.log.\ ", } ------------------------------------------------------- Can you see, what I am missing? Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________