From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27392 Path: news.gmane.org!not-for-mail From: andrea valle Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt +Tioga Date: Sat, 22 Apr 2006 17:56:10 +0200 Message-ID: References: <4448FF23.6000801@nibua-r.org> <444905A3.2060005@nibua-r.org> <44490C2E.6030407@wxs.nl> <44492499.5020006@virgilio.it> <44492E10.6080605@wxs.nl> <444939F0.5070207@virgilio.it> <4449DF99.4060102@wxs.nl> <4449FBAA.2030305@elvenkind.com> <444A1DA2.7040302@virgilio.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1145721564 13559 80.91.229.2 (22 Apr 2006 15:59:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Apr 2006 15:59:24 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 22 17:59:21 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FXKW0-0005Ax-Mt for gctc-ntg-context-518@m.gmane.org; Sat, 22 Apr 2006 17:59:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E13A1278A; Sat, 22 Apr 2006 17:59:20 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13677-02-3; Sat, 22 Apr 2006 17:59:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 194DA1278D; Sat, 22 Apr 2006 17:59:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 76E811278D for ; Sat, 22 Apr 2006 17:59:11 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13677-02-2 for ; Sat, 22 Apr 2006 17:59:09 +0200 (CEST) Original-Received: from pianeta.di.unito.it (pianeta.di.unito.it [130.192.239.1]) by ronja.ntg.nl (Postfix) with SMTP id CD90E1278A for ; Sat, 22 Apr 2006 17:59:09 +0200 (CEST) Original-Received: from [83.184.26.143] (d83-184-26-143.cust.tele2.it [83.184.26.143]) by pianeta.di.unito.it (INFO-DIP) with ESMTP id k3MFwiAT015560 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO userCertificateDN= AuthenticatedUser=valle ) for ; Sat, 22 Apr 2006 17:58:46 +0200 (MEST) In-Reply-To: <444A1DA2.7040302@virgilio.it> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.623) X-dipinfo-MailScanner-Information: Please contact Department of Computer Science technical staff for more information X-AntiVirus: Scanned for viruses by VirusFinder @2001-tecnici@di.unito.it - Email Clean X-SpamCheck: not spam, SpamAssassin (score=-102.599, required 4.5, autolearn=not spam, AUTHENTICATEDUSER -100.00, BAYES_00 -2.60) X-MailScanner-From: valle@di.unito.it X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27392 Archived-At: As far as we are discussing about graphics, actually my favorite and = quick (and powreful) solution to produce pdf graphics not TeX-related = is to use the graphic facilities of R, generating automatically scripts = with code (http://www.r-project.org/). Best -a- On 22 Apr 2006, at 14:12, Jilani Khaldi wrote: > >> It is just my 2c, but I really dislike the Tioga approach. It feels >> like typesetting a book in TeX by writing a single-shot pascal >> program. ;-) >> >> Specifically, I find code like this (Tioga): >> >> move_to_point(x0, y0) >> append_curve_to_path(x1, y1, x2, y2, x3, y3) >> >> far uglier than this (Asymptote/MetaPost): >> >> z0.. controls z1 and z2 .. z3 >> >> >> > Very true, but you forgot that in Tioga everything is done inside Ruby > interpreter. Tioga is a Ruby extension so you could use the power of > Ruby, its standard library and all the other extensions made for it > inside Tioga. > However, I don't like Asymptote, just seeing things like this: > ---------------------- > struct parent { > real x=3D1; > public void virtual(int) {write (0);} > void f() {virtual(1);} > } > parent operator init() {return new parent;} > void write(parent p) {write(p.x);} > struct child { > parent parent; > real y=3D2; > void virtual(int x) {write (x);} > parent.virtual=3Dvirtual; > void f()=3Dparent.f; > } > parent operator cast(child child) {return child.parent;} > child operator init() {return new child;} > parent p; > child c; > write(c); // Outputs 1; > p.f(); // Outputs 0; > c.f(); // Outputs 1; > write(c.parent.x); // Outputs 1; > write(c.y); > --------------- > But, do we really need a baroque language like this to just draw some > primitive graphics? > > jk > > -- > Jilani KHALDI > http://jkhaldi.oltrelinux.com > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > Andrea Valle DAMS - Facolt=E0 di Scienze della Formazione Universit=E0 degli Studi di Torino http://www.semiotiche.it/andrea andrea.valle@unito.it