From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64612 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: why lua? Date: Sat, 18 Dec 2010 00:56:52 -0500 (EST) Message-ID: References: <20101217232724.GA17742@aides> <4D0BF64D.1090406@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1690150097-1292651832=:12324" X-Trace: dough.gmane.org 1292651870 16341 80.91.229.12 (18 Dec 2010 05:57:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Dec 2010 05:57:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 18 06:57:45 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTpnb-0006R7-GE for gctc-ntg-context-518@m.gmane.org; Sat, 18 Dec 2010 06:57:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21410CA91B; Sat, 18 Dec 2010 06:57:42 +0100 (CET) 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 aa1wUWStP1IC; Sat, 18 Dec 2010 06:57:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8C63CA916; Sat, 18 Dec 2010 06:57:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7905CCA90D for ; Sat, 18 Dec 2010 06:57:36 +0100 (CET) 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 SyFDN8WI2lUj for ; Sat, 18 Dec 2010 06:57:24 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 195DACA916 for ; Sat, 18 Dec 2010 06:57:24 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBI5vL3U030678 for ; Sat, 18 Dec 2010 06:57:23 +0100 Original-Received: FROM [10.0.2.15] (Unknown [117.197.150.18]) By tombraider.mr.itd.umich.edu ID 4D0C4D3E.5D474.29419 ; Authuser adityam; 18 Dec 2010 00:57:19 EST In-Reply-To: User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DItVlCB - 4e02eb121ba6 - 20101218 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:64612 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1690150097-1292651832=:12324 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sat, 18 Dec 2010, Philipp A. wrote: > my dream for luatex/context would be a built-in lua interpreter (because = lua > is so fucking small) and optional modules for other, heavier, scripting > languages (perl, ruby), which you don=E2=80=99t have to install. i don=E2= =80=99t care if > python is embedded or extended, i just want to write \directpython{for nu= m > in [9,2,4,8]: ctx.print(num**3)} (or sth. like that) luatex is more than lua (or any prog/scripting language) embedded in tex;= =20 it is a programming language with acess to tex's internals. For example,=20 you can find the dimension of each node in a vlist and use a different=20 line-breaking algorithm or tweak the node list after line breaking is done= =20 (something like this is done in arabic line-breaking). If you do not=20 want easy access to tex's internals, embedding/extending tex is relatively= =20 easy: see for example perltex. Whether the binary of the prog language is= =20 embedded in the tex binary, or in the wrapper script for calling tex is=20 immaterial. On the other hand, if you want acess to tex's internals, you=20 can either code it for a specific language (like luatex does), or provide= =20 an API interface to the internals. My understanding is that given the=20 complexity of the tex codebase, the latter was more too much effort for=20 too little gain. After all, python vs lua is a minor difference, compared= =20 to the programing abilities of TeX. Aditya --8323328-1690150097-1292651832=:12324 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-1690150097-1292651832=:12324--