ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LuaTeX 1.0.3 announcement
@ 2017-02-17 19:57 luigi scarso
  2017-02-18  8:11 ` Henri Menke
  0 siblings, 1 reply; 9+ messages in thread
From: luigi scarso @ 2017-02-17 19:57 UTC (permalink / raw)
  To: General discussion of LuaTeX.,
	luatex development list, mailing list for ConTeXt users,
	Dev Context

==============================================================
LuaTeX Release 1.0.3  was released 2017021514
==============================================================

This is a minor upgrade and probably this version will go on texlive.
There are a couple
of fixes and additions.
- We added a few a few more helpers in the pdf namespace (like
set|get]gentounicode,
  [set|get]omitcidset and set|get]decimaldigits. Some helpers were
moved from the tex
  to the pdf namespace.

- We added a build_page_insert callback for inserts so that one can
for instance adapt
  spacing on demand.

- On the agenda has been some more control over word start and end in
hyphenation and
  this is now possible via hyphenationbounds. We also updated the
manual with some more
  details.

- An old tracker item with respect to control over spacing around math
was revived and
  has resulted in mathsurroundmode (one can wonder how useful this is).

- We improved the resolution detection in included jpeg images.


- An ffi library has been added to luatex so that it is more in sync
with luajittex. This
  permits easy and flexible loading of libraries. Our policy is to
make luatex as lean
  as possible with no dependencies and this is a step towards that.
Eventually we hope
  to support all relevant platforms.

- The glue and skip register accessors have been improved as a step in
freeing the user
  from glue spec management.

- We added a few more getters and setters for nodes in order to get a
more consistent
  set.

- Irrelevant fields have been removed from the status table and an
engine identifier
  has been added.

- Of course there are numerous fixes and improvements but none of
these have consequences
  for the interfaces.

- The manual has been updated but will be improved over time.




Have fun,
Hans, Luigi, Taco
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

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

* Re: LuaTeX 1.0.3 announcement
  2017-02-17 19:57 LuaTeX 1.0.3 announcement luigi scarso
@ 2017-02-18  8:11 ` Henri Menke
  2017-02-18  8:42   ` luigi scarso
  0 siblings, 1 reply; 9+ messages in thread
From: Henri Menke @ 2017-02-18  8:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/17/2017 08:57 PM, luigi scarso wrote:
> ==============================================================
> LuaTeX Release 1.0.3  was released 2017021514
> ==============================================================
> 
> This is a minor upgrade and probably this version will go on texlive.
> There are a couple
> of fixes and additions.
> - We added a few a few more helpers in the pdf namespace (like
> set|get]gentounicode,
>   [set|get]omitcidset and set|get]decimaldigits. Some helpers were
> moved from the tex
>   to the pdf namespace.
> 
> - We added a build_page_insert callback for inserts so that one can
> for instance adapt
>   spacing on demand.
> 
> - On the agenda has been some more control over word start and end in
> hyphenation and
>   this is now possible via hyphenationbounds. We also updated the
> manual with some more
>   details.
> 
> - An old tracker item with respect to control over spacing around math
> was revived and
>   has resulted in mathsurroundmode (one can wonder how useful this is).
> 
> - We improved the resolution detection in included jpeg images.
> 
> 
> - An ffi library has been added to luatex so that it is more in sync
> with luajittex. This
>   permits easy and flexible loading of libraries. Our policy is to
> make luatex as lean
>   as possible with no dependencies and this is a step towards that.
> Eventually we hope
>   to support all relevant platforms.

How can I use the FFI?  There is nothing in the latest docs.  Thanks for all the efforts!

> - The glue and skip register accessors have been improved as a step in
> freeing the user
>   from glue spec management.
> 
> - We added a few more getters and setters for nodes in order to get a
> more consistent
>   set.
> 
> - Irrelevant fields have been removed from the status table and an
> engine identifier
>   has been added.
> 
> - Of course there are numerous fixes and improvements but none of
> these have consequences
>   for the interfaces.
> 
> - The manual has been updated but will be improved over time.
> 
> 
> 
> 
> Have fun,
> Hans, Luigi, 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LuaTeX 1.0.3 announcement
  2017-02-18  8:11 ` Henri Menke
@ 2017-02-18  8:42   ` luigi scarso
  2017-02-18 13:27     ` Henri Menke
  0 siblings, 1 reply; 9+ messages in thread
From: luigi scarso @ 2017-02-18  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Feb 18, 2017 at 9:11 AM, Henri Menke <henrimenke@gmail.com> wrote:
> On 02/17/2017 08:57 PM, luigi scarso wrote:
> How can I use the FFI?  There is nothing in the latest docs.  Thanks for all the efforts!
luatex ffi is beyond the "experimental state", and aims to  be
compatible with luatexjit ffi.
For luajit ffi see
http://luajit.org/ext_ffi.html

The main difference with standard luajit is that by default jit.off()
in luajittex.

-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LuaTeX 1.0.3 announcement
  2017-02-18  8:42   ` luigi scarso
@ 2017-02-18 13:27     ` Henri Menke
  2017-02-18 13:52       ` Hans Hagen
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Henri Menke @ 2017-02-18 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/18/2017 09:42 AM, luigi scarso wrote:
> On Sat, Feb 18, 2017 at 9:11 AM, Henri Menke <henrimenke@gmail.com> wrote:
>> On 02/17/2017 08:57 PM, luigi scarso wrote:
>> How can I use the FFI?  There is nothing in the latest docs.  Thanks for all the efforts!
> luatex ffi is beyond the "experimental state", and aims to  be
> compatible with luatexjit ffi.

So it has the same interface?  There seems to be no documentation about it in the most recent manual from luatex.org

> For luajit ffi see
> http://luajit.org/ext_ffi.html
> 
> The main difference with standard luajit is that by default jit.off()
> in luajittex.
> 

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LuaTeX 1.0.3 announcement
  2017-02-18 13:27     ` Henri Menke
@ 2017-02-18 13:52       ` Hans Hagen
  2017-02-18 13:59       ` luigi scarso
  2017-02-18 14:08       ` Hans Hagen
  2 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2017-02-18 13:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/18/2017 2:27 PM, Henri Menke wrote:
> On 02/18/2017 09:42 AM, luigi scarso wrote:
>> On Sat, Feb 18, 2017 at 9:11 AM, Henri Menke <henrimenke@gmail.com> wrote:
>>> On 02/17/2017 08:57 PM, luigi scarso wrote:
>>> How can I use the FFI?  There is nothing in the latest docs.  Thanks for all the efforts!
>> luatex ffi is beyond the "experimental state", and aims to  be
>> compatible with luatexjit ffi.
>
> So it has the same interface?  There seems to be no documentation about it in the most recent manual from luatex.org

indeed as there is enough on the web ... duplicating that makes no sense

>> For luajit ffi see
>> http://luajit.org/ext_ffi.html
>>
>> The main difference with standard luajit is that by default jit.off()
>> in luajittex.
>>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LuaTeX 1.0.3 announcement
  2017-02-18 13:27     ` Henri Menke
  2017-02-18 13:52       ` Hans Hagen
@ 2017-02-18 13:59       ` luigi scarso
  2017-02-18 16:03         ` Alan Braslau
  2017-02-18 14:08       ` Hans Hagen
  2 siblings, 1 reply; 9+ messages in thread
From: luigi scarso @ 2017-02-18 13:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Feb 18, 2017 at 2:27 PM, Henri Menke <henrimenke@gmail.com> wrote:
> On 02/18/2017 09:42 AM, luigi scarso wrote:
>> On Sat, Feb 18, 2017 at 9:11 AM, Henri Menke <henrimenke@gmail.com> wrote:
>>> On 02/17/2017 08:57 PM, luigi scarso wrote:
>>> How can I use the FFI?  There is nothing in the latest docs.  Thanks for all the efforts!
>> luatex ffi is beyond the "experimental state", and aims to  be
>> compatible with luatexjit ffi.
>
> So it has the same interface?  There seems to be no documentation about it in the most recent manual from luatex.org
yes, "aims to be compatible" means same interface and functionality,
but there is still lot of work to do,
apart the dynamic  loading of the library and the C parser.
But it's usable for testing.

-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LuaTeX 1.0.3 announcement
  2017-02-18 13:27     ` Henri Menke
  2017-02-18 13:52       ` Hans Hagen
  2017-02-18 13:59       ` luigi scarso
@ 2017-02-18 14:08       ` Hans Hagen
  2 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2017-02-18 14:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/18/2017 2:27 PM, Henri Menke wrote:
> On 02/18/2017 09:42 AM, luigi scarso wrote:
>> On Sat, Feb 18, 2017 at 9:11 AM, Henri Menke <henrimenke@gmail.com> wrote:
>>> On 02/17/2017 08:57 PM, luigi scarso wrote:
>>> How can I use the FFI?  There is nothing in the latest docs.  Thanks for all the efforts!
>> luatex ffi is beyond the "experimental state", and aims to  be
>> compatible with luatexjit ffi.
>
> So it has the same interface?  There seems to be no documentation about it in the most recent manual from luatex.org

btw, context will never depend on libraries for functioning but it has 
support for ffi built in and there might be some additional helpers for 
glueing to libraries but libraries themselves will always be considered 
a liability i.e. if someone uses them in a workflow (which is fine) 
support for specific libraries will not be provided (unless context 
ships with some module that uses them which probably will happen but 
even then those libraries are considered black boxes so failures are 
outside the dev team responsibilities)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LuaTeX 1.0.3 announcement
  2017-02-18 13:59       ` luigi scarso
@ 2017-02-18 16:03         ` Alan Braslau
  0 siblings, 0 replies; 9+ messages in thread
From: Alan Braslau @ 2017-02-18 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 18 Feb 2017 14:59:14 +0100
luigi scarso <luigi.scarso@gmail.com> wrote:

> On Sat, Feb 18, 2017 at 2:27 PM, Henri Menke <henrimenke@gmail.com>
> wrote:
> > On 02/18/2017 09:42 AM, luigi scarso wrote:  
> >> On Sat, Feb 18, 2017 at 9:11 AM, Henri Menke
> >> <henrimenke@gmail.com> wrote:  
> >>> On 02/17/2017 08:57 PM, luigi scarso wrote:
> >>> How can I use the FFI?  There is nothing in the latest docs.
> >>> Thanks for all the efforts!  
> >> luatex ffi is beyond the "experimental state", and aims to  be
> >> compatible with luatexjit ffi.  
> >
> > So it has the same interface?  There seems to be no documentation
> > about it in the most recent manual from luatex.org  
> yes, "aims to be compatible" means same interface and functionality,
> but there is still lot of work to do,
> apart the dynamic  loading of the library and the C parser.
> But it's usable for testing.
> 

Luigi has shown me a simple and useful application of ffi:

\startluacode

ffi=require("ffi")
ffi.cdef[[
double j0(double x);
double j1(double x);
double jn(double x);
-- ...
]]

\stopluacode

These libm functions can then be used in lua as:

ffi.C.j0(x)

for example.

In my case, I pass them to MetaPost as:

\startMPdefinitions

vardef jzero primary x =
  scantokens(lua("mp.quoted(ffi.C.j0(" & decimal x & "))"))
enddef ;

\stopMPdefinitions

This experimental code appears to work quite well.

Thank you Luigi and Hans!

Alan
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* LuaTeX 1.0.3 announcement
@ 2017-02-18 23:34 Akira Kakuto
  0 siblings, 0 replies; 9+ messages in thread
From: Akira Kakuto @ 2017-02-18 23:34 UTC (permalink / raw)
  To: ntg-context

> Luigi has shown me a simple and useful application of ffi:

In the case of lua(jit)tex in W32TeX, which are used in
context, standard C libraries are linked statically.
Thus it is necessary to load a necessary DLL for standard
C functions, like the following meaningless example:

\starttext
$$
j0(1.765)=
\startluacode
ffi=require("ffi")
ffi.cdef[[
double _j0(double x);
]]
-- In the case of lua(jit)tex in W32TeX, C libraries are linked
-- statically. Thus it is necessary to load a necessary DLL.
local msvcrt=ffi.load("msvcrt")
tex.print(msvcrt._j0(1.765))
\stopluacode
$$
\stoptext

It is expected that Windows APIs in the following libs
can be used without loading DLL:

WSOCK32.dll
USER32.dll
ADVAPI32.dll
SHELL32.dll
GDI32.dll
KERNEL32.dll
WS2_32.dll

Best,
Akira

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-02-18 23:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-17 19:57 LuaTeX 1.0.3 announcement luigi scarso
2017-02-18  8:11 ` Henri Menke
2017-02-18  8:42   ` luigi scarso
2017-02-18 13:27     ` Henri Menke
2017-02-18 13:52       ` Hans Hagen
2017-02-18 13:59       ` luigi scarso
2017-02-18 16:03         ` Alan Braslau
2017-02-18 14:08       ` Hans Hagen
2017-02-18 23:34 Akira Kakuto

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