ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: DesdeChaves <desdechaves@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: can't run external lua library
Date: Thu, 23 Jul 2015 00:37:10 +0100	[thread overview]
Message-ID: <CAPBmU9GaZSe9tZvaesH=G1d07+moHtFmBafcSDn3W6_eLUxVuQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 527 bytes --]

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

Jorge

[-- Attachment #1.2: Type: text/html, Size: 910 bytes --]

[-- Attachment #2: test_—_bash_—_164×35.png --]
[-- Type: image/png, Size: 64823 bytes --]

[-- Attachment #3: test_—_lua_—_164×35.png --]
[-- Type: image/png, Size: 28909 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2015-07-22 23:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 23:37 DesdeChaves [this message]
2015-07-23  7:30 ` luigi scarso
2015-07-23 11:55   ` DesdeChaves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPBmU9GaZSe9tZvaesH=G1d07+moHtFmBafcSDn3W6_eLUxVuQ@mail.gmail.com' \
    --to=desdechaves@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).