<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Programming: Lua versus TeX</title>
	<atom:link href="http://www.texdev.net/2009/02/04/programming-lua-versus-tex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/</link>
	<description>Coding in the TeX world</description>
	<lastBuildDate>Tue, 17 Aug 2010 20:17:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-92</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Thu, 05 Feb 2009 08:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-92</guid>
		<description>amsrefs is very clever, but I think that there are a few issues (at least for me).  First, there are already a LOT of BibTeX styles about.  From designing a couple, the major pain is not BibTeX but the way publishers make subtle changes between different types of reference. So implementing styles a second time is not attractive.  Second, I don&#039;t see that amsrefs lets you use a BibTeX database directly as the source of your refs.  This is a problem as many LaTeX users have lots of references in that format.  Finally, like Simon I use biblatex.  It does lots of clever stuff which I&#039;m not sure amsrefs can do.</description>
		<content:encoded><![CDATA[<p>amsrefs is very clever, but I think that there are a few issues (at least for me).  First, there are already a LOT of BibTeX styles about.  From designing a couple, the major pain is not BibTeX but the way publishers make subtle changes between different types of reference. So implementing styles a second time is not attractive.  Second, I don&#8217;t see that amsrefs lets you use a BibTeX database directly as the source of your refs.  This is a problem as many LaTeX users have lots of references in that format.  Finally, like Simon I use biblatex.  It does lots of clever stuff which I&#8217;m not sure amsrefs can do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Spiegel</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-91</link>
		<dc:creator>Simon Spiegel</dc:creator>
		<pubDate>Thu, 05 Feb 2009 05:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-91</guid>
		<description>I don&#039;t have problem with BibTeX, I use biblatex. ;)</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have problem with BibTeX, I use biblatex. <img src='http://www.texdev.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcin</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-89</link>
		<dc:creator>Marcin</dc:creator>
		<pubDate>Wed, 04 Feb 2009 22:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-89</guid>
		<description>Hi,
I know that this is really off topic, but every time someone says &quot;well, I have a problem with bibtex&quot;, I feel obliged to point out that the amsrefs package made bibtex almost entirely obsolete, with much clearer syntax and styling done in pure (La)TeX.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I know that this is really off topic, but every time someone says &#8220;well, I have a problem with bibtex&#8221;, I feel obliged to point out that the amsrefs package made bibtex almost entirely obsolete, with much clearer syntax and styling done in pure (La)TeX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-88</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Wed, 04 Feb 2009 20:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-88</guid>
		<description>Yes of course the principal is a good idea, and should also be (relatively) easy.  I was only pointing out that there are some &quot;hard problems&quot; with BibTeX which need good ideas, independent of LuaTeX per se.</description>
		<content:encoded><![CDATA[<p>Yes of course the principal is a good idea, and should also be (relatively) easy.  I was only pointing out that there are some &#8220;hard problems&#8221; with BibTeX which need good ideas, independent of LuaTeX per se.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Spiegel</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-87</link>
		<dc:creator>Simon Spiegel</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-87</guid>
		<description>Re: BibTeX. What I said wasn&#039;t really about BibTeX per se. BibTeX just served me as a widely used example for an external program which could be implemented in LuaTeX and would reduce complexity for the user. That BibTeX (the program and the format) needs improvement should be obvious to anyone who has actually used it (and with biblatex, many of the problems have already been overcome); but even if only the current BibTeX was re-implemented with LuaTeX and you could just compile a bibliography in one run, this would already make LaTeX more user-friendly IMO.</description>
		<content:encoded><![CDATA[<p>Re: BibTeX. What I said wasn&#8217;t really about BibTeX per se. BibTeX just served me as a widely used example for an external program which could be implemented in LuaTeX and would reduce complexity for the user. That BibTeX (the program and the format) needs improvement should be obvious to anyone who has actually used it (and with biblatex, many of the problems have already been overcome); but even if only the current BibTeX was re-implemented with LuaTeX and you could just compile a bibliography in one run, this would already make LaTeX more user-friendly IMO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-86</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-86</guid>
		<description>Thanks for the comments Aditya and Simon.  The low-level stuff in ConTeXt Mark IV is very clever, and I&#039;d say falls into the &quot;not possible in TeX&quot; category.  The same really applies to BibTeX or MakeIndex implemented in LuaTeX.  I&#039;m wondering about things that can be done in TeX, but also in Lua.

On the BibTeX issue, my understanding (from various biblatex-related discussions) is that the biggest issue with BibTeX is not the program but the data format.  The .bib format has some fundamental problems that need a good solution.</description>
		<content:encoded><![CDATA[<p>Thanks for the comments Aditya and Simon.  The low-level stuff in ConTeXt Mark IV is very clever, and I&#8217;d say falls into the &#8220;not possible in TeX&#8221; category.  The same really applies to BibTeX or MakeIndex implemented in LuaTeX.  I&#8217;m wondering about things that can be done in TeX, but also in Lua.</p>
<p>On the BibTeX issue, my understanding (from various biblatex-related discussions) is that the biggest issue with BibTeX is not the program but the data format.  The .bib format has some fundamental problems that need a good solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Spiegel</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-85</link>
		<dc:creator>Simon Spiegel</dc:creator>
		<pubDate>Wed, 04 Feb 2009 17:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-85</guid>
		<description>Related to what Aditya has written: Although this probably wont happen immediately, I see the possibility to get rid of external programs like bibtex or makeindex as a potential advantage of LuaTeX. No need for external programs, no need for multiple runs, just include everything in one package which takes care of everything.

IME explaining why you need an external program like bibtex is always difficult with people new to LaTeX. Of course, it&#039;s not a huge hurdle, but it would reduce complexity.</description>
		<content:encoded><![CDATA[<p>Related to what Aditya has written: Although this probably wont happen immediately, I see the possibility to get rid of external programs like bibtex or makeindex as a potential advantage of LuaTeX. No need for external programs, no need for multiple runs, just include everything in one package which takes care of everything.</p>
<p>IME explaining why you need an external program like bibtex is always difficult with people new to LaTeX. Of course, it&#8217;s not a huge hurdle, but it would reduce complexity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya Mahajan</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-84</link>
		<dc:creator>Aditya Mahajan</dc:creator>
		<pubDate>Wed, 04 Feb 2009 16:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-84</guid>
		<description>In MKIV, a lot of bookkeeping has moved to Lua. Things like crossreferences, bookmarks, are other things that were traditionally done using a two pass mechanism are now done in Lua. Soon it will be possible to get rid of the auxilary files altogether for ConTeXt. 

Also, a lot of font related stuff is now handled by Lua. You can create a virtual font on the fly, combine multiple fonts, borrow a character from another font, all sorts of things for whic .vf and .enc files were used, are now handled by lua. 

Another advatange is that lua in luatex comes with the lpeg parsing library, so you can write parsers. ConTeXt XML processings is now done by lua. There is also a proof of concept calcmath module which converts &quot;T1-calc math syntax&quot; into &quot;TeX markup&quot; on the fly. So you could write &quot;\calcmath{f(x) = sin (x) + sqrt(2*x)&quot; and it will be converted to &quot;$f(x) = \sin x + \sqrt {2x}&quot; behind the scenes. 

Also, part of the mplib parser is written in lua, which makes including mp graphics in MKIV really fast (Most of the speedup is due to the availability of MP as a library, but still lua parsing is much easier than parsing done in TeX).

So, what has happened in ConTeXt is that a lot of backend has moved to lua. The user interface is still almost the same, so normal users do not notice any difference.</description>
		<content:encoded><![CDATA[<p>In MKIV, a lot of bookkeeping has moved to Lua. Things like crossreferences, bookmarks, are other things that were traditionally done using a two pass mechanism are now done in Lua. Soon it will be possible to get rid of the auxilary files altogether for ConTeXt. </p>
<p>Also, a lot of font related stuff is now handled by Lua. You can create a virtual font on the fly, combine multiple fonts, borrow a character from another font, all sorts of things for whic .vf and .enc files were used, are now handled by lua. </p>
<p>Another advatange is that lua in luatex comes with the lpeg parsing library, so you can write parsers. ConTeXt XML processings is now done by lua. There is also a proof of concept calcmath module which converts &#8220;T1-calc math syntax&#8221; into &#8220;TeX markup&#8221; on the fly. So you could write &#8220;\calcmath{f(x) = sin (x) + sqrt(2*x)&#8221; and it will be converted to &#8220;$f(x) = \sin x + \sqrt {2x}&#8221; behind the scenes. </p>
<p>Also, part of the mplib parser is written in lua, which makes including mp graphics in MKIV really fast (Most of the speedup is due to the availability of MP as a library, but still lua parsing is much easier than parsing done in TeX).</p>
<p>So, what has happened in ConTeXt is that a lot of backend has moved to lua. The user interface is still almost the same, so normal users do not notice any difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-82</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Wed, 04 Feb 2009 11:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-82</guid>
		<description>I&#039;d agree about the number cruching.  I&#039;d imagine my first steps with LuaTeX will be writing an add-on for siunitx to &quot;farm out&quot; the rounding and so on to Lua.

As to the TeX versus Lua side, I suspect that things will depend on what you want to do.  I&#039;d see abstract programming as more Lua, but more typeset-related things in TeX.</description>
		<content:encoded><![CDATA[<p>I&#8217;d agree about the number cruching.  I&#8217;d imagine my first steps with LuaTeX will be writing an add-on for siunitx to &#8220;farm out&#8221; the rounding and so on to Lua.</p>
<p>As to the TeX versus Lua side, I suspect that things will depend on what you want to do.  I&#8217;d see abstract programming as more Lua, but more typeset-related things in TeX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kjell Magne Fauske</title>
		<link>http://www.texdev.net/2009/02/04/programming-lua-versus-tex/comment-page-1/#comment-81</link>
		<dc:creator>Kjell Magne Fauske</dc:creator>
		<pubDate>Wed, 04 Feb 2009 11:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=153#comment-81</guid>
		<description>I have never been comfortable with low level TeX programming (mostly because I don&#039;t fully understand the internals yet). If I have a choice between doing something in TeX or using a high level scripting language, I will choose the latter.

One of the things I look forward to when LuaTeX becomes mainstream, is faster and easier number crunching. Till Tantau has mentioned a couple of times on the pgf-users mailing list that reimplementing PGF&#039;s mathematical engine in Lua will speed up things by several orders of magnitude. It will also allow drawing more complex drawings like for instance 3D-graphics.</description>
		<content:encoded><![CDATA[<p>I have never been comfortable with low level TeX programming (mostly because I don&#8217;t fully understand the internals yet). If I have a choice between doing something in TeX or using a high level scripting language, I will choose the latter.</p>
<p>One of the things I look forward to when LuaTeX becomes mainstream, is faster and easier number crunching. Till Tantau has mentioned a couple of times on the pgf-users mailing list that reimplementing PGF&#8217;s mathematical engine in Lua will speed up things by several orders of magnitude. It will also allow drawing more complex drawings like for instance 3D-graphics.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
