From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92034 Path: news.gmane.org!not-for-mail From: DesdeChaves Newsgroups: gmane.comp.tex.context Subject: Re: can't run external lua library Date: Thu, 23 Jul 2015 12:55:37 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0450706097==" X-Trace: ger.gmane.org 1437652594 18279 80.91.229.3 (23 Jul 2015 11:56:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2015 11:56:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 23 13:56:23 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZIF6q-000611-T9 for gctc-ntg-context-518@m.gmane.org; Thu, 23 Jul 2015 13:56:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF0E31021F for ; Thu, 23 Jul 2015 13:56:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dLlG7PtgOYYX for ; Thu, 23 Jul 2015 13:56:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7999C10231 for ; Thu, 23 Jul 2015 13:55:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8F5ED101F6 for ; Thu, 23 Jul 2015 13:55:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2Xr13VlX2kJ4 for ; Thu, 23 Jul 2015 13:55:40 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 78AF5101E6 for ; Thu, 23 Jul 2015 13:55:40 +0200 (CEST) Original-Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) by filter3-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t6NBtcfY004269 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 23 Jul 2015 13:55:39 +0200 Original-Received: by obnw1 with SMTP id w1so151989536obn.3 for ; Thu, 23 Jul 2015 04:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=i8+IPRLCncKhtVdG+3aroZrOjl5Z2n9/BIR23OF8210=; b=XJf2MMwbn74ZjaW8bL4IfZ2cgG1nslAhcdTTTe1iGkr4iUogb7Hf8Mpk2723V+WION RvP4qWgIR/L+qMJgDjqT0Yb35IEB4iS41HHG/ckGrn4n2nlCVuKO0pkyejAiQMfDAwSG yrDOS3sCEVE7o24lSy5aGlitkO/o8Nb+DOYLsQLF0wUz2ED902Ke9LaTHQWhKbTgaK0f 8qVbou2vCYW28saONIkOUKjtjiNdwjvO5yrAgkmGSGY1TQUbfNGig6hhCcl4UKidAFp4 ADB9PkyrAFK0ydKtGFcqzuqsaWDfDhkHl2T+13jCIu5if+W8ysq2E+e1hFYtWMkeA5Zg utqg== X-Received: by 10.60.141.135 with SMTP id ro7mr7494763oeb.13.1437652537602; Thu, 23 Jul 2015 04:55:37 -0700 (PDT) Original-Received: by 10.60.33.98 with HTTP; Thu, 23 Jul 2015 04:55:37 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c01::229; country=US; region=Oklahoma; city=Tulsa; latitude=36.1467; longitude=-95.9045; http://maps.google.com/maps?q=36.1467,-95.9045&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06OTLTCS4 - 689f8951993f - 20150723 (trained as not-spam) Received-SPF: pass (filter3-til.mf.surf.net: domain of desdechaves@gmail.com designates 2607:f8b0:4003:c01::229 as permitted sender) receiver=filter3-til.mf.surf.net; client-ip=2607:f8b0:4003:c01::229; envelope-from=; helo=mail-ob0-x229.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92034 Archived-At: --===============0450706097== Content-Type: multipart/alternative; boundary=047d7b41c5b4d077f3051b89901a --047d7b41c5b4d077f3051b89901a Content-Type: text/plain; charset=UTF-8 Luigi, you saved my day. Thanks a lot. Now all works fine. 2015-07-23 8:30 GMT+01:00 luigi scarso : > > > On Thu, Jul 23, 2015 at 1:37 AM, DesdeChaves > wrote: > >> I'm trying to reuse a old library to generate poisson numbers. In old >> context versions the library works fine, but in the current beta (ConTeXt >> ver: 2015.07.16 13:30 MKIV beta fmt: 2015.7.23 int: english/english) the >> execution fails. >> >> This code works perfectly in lua 5.3 but not in luatex. why? >> >> \startluacode >> >> >> require "meurandist" >> ARRAY_SIZE=3 >> arr=meurandist.new_int(ARRAY_SIZE) >> meurandist.rpoisson(arr,ARRAY_SIZE,4) >> for i=0,ARRAY_SIZE-1 do >> print(meurandist.int_getitem(arr,i)) >> end >> >> >> \stopluacode >> >> >> Thanks a lot >> >> > > luatex 0.80.1 (the latest luatex) still uses lua 5.2.4 > > -- > luigi > > > ___________________________________________________________________________________ > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > -- Atentamente DesdeChaves --047d7b41c5b4d077f3051b89901a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Luigi, you saved my day. Thanks a lot.=C2=A0 Now all works= fine.=C2=A0

2015-07-23 8:30 GMT+01:00 luigi scarso <luigi.scarso@gmail.com&g= t;:


On Thu, J= ul 23, 2015 at 1:37 AM, DesdeChaves <desdechaves@gmail.com> wrote:
I'm tryin= g to reuse a old library to generate poisson numbers. In old =C2=A0context = versions the library works fine, but in the current =C2=A0beta (ConTeXt =C2= =A0ver: 2015.07.16 13:30 MKIV beta =C2=A0fmt: 2015.7.23 =C2=A0int: english/= english) the execution fails.=C2=A0

This code works perfectly in lua 5.3 but not in luatex.= why?

\startluacode


<= /div>
require "meurandist"
ARRAY_SIZE=3D3
arr=3Dmeurandist.new_int(ARRAY_SIZE)
meurandist.rpoisson(ar= r,ARRAY_SIZE,4)
for i=3D0,ARRAY_SIZE-1 do
print(meurand= ist.int_getitem(arr,i))
end


\stopluacode


Thanks a lot
<= div>


luatex 0.80.1 (the latest luatex) still uses lua 5.2.4=C2=A0

--
luigi

_______________________________________________________________________= ____________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________



--
=
Atentamente

DesdeChaves
--047d7b41c5b4d077f3051b89901a-- --===============0450706097== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0450706097==--