# [Dev-luatex] next steps in development

Taco Hoekwater taco at elvenkind.com
Sun May 7 09:19:54 CEST 2006

```Hi,

Hans Hagen wrote:
>
>
> goal: starts an lua instance

Expect the primitive syntax to be more like the internals of \toksdef,
so the toplevel user command would be \newlua.

There is a catch though: I want to reserve one number for internal
use (callback functions that handle C functionality, like finding
files). Maybe 255, since Tex uses 255 for various things anyway.
WDYT?

> (3) \immediate\luacs
>
> goal: feeds back into the token scanner (no need for scantokens, faster
> due to less parameter passing)
> usage: \immediate\lua{tex.print("\$x\$")}

This could be the normal behaviour of tex.print(), and if you do
not want it, you could run \detokenize yourself. And we could have
a separate function tex.write() for detokenized use.

> further, taco and i discussed a lua extension using a variant of strings
> using 32 bit entries, partly for the unicode chars and partly for the
> \cs etc pointers so that we can do stringlike thinsg with token lists

> well, we discussed more, but i need to search my memory -)

Amongst other things, we also talked about a new way to load
and use fonts:  not letting TeX read .tfm and .vf files, but