From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27386 Path: news.gmane.org!not-for-mail From: Jilani Khaldi Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt +Tioga Date: Sat, 22 Apr 2006 14:12:18 +0200 Message-ID: <444A1DA2.7040302@virgilio.it> 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> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145707808 10402 80.91.229.2 (22 Apr 2006 12:10:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Apr 2006 12:10:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 22 14:10:06 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 1FXGwA-0008FR-6W for gctc-ntg-context-518@m.gmane.org; Sat, 22 Apr 2006 14:10:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 915D012793; Sat, 22 Apr 2006 14:10:05 +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 09034-03; Sat, 22 Apr 2006 14:10:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 93BC81278A; Sat, 22 Apr 2006 14:10:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4469F1278A for ; Sat, 22 Apr 2006 14:09:59 +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 09033-03 for ; Sat, 22 Apr 2006 14:09:58 +0200 (CEST) Original-Received: from vsmtp21.tin.it (vsmtp21.tin.it [212.216.176.109]) by ronja.ntg.nl (Postfix) with SMTP id 506DB1277B for ; Sat, 22 Apr 2006 14:09:58 +0200 (CEST) Original-Received: from [192.168.1.251] (82.51.113.50) by vsmtp21.tin.it (7.2.072.1) (authenticated as jilani.khaldi1@virgilio.it) id 44467BAD0029A4A8; Sat, 22 Apr 2006 14:09:57 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users , paxton@kitp.ucsb.edu In-Reply-To: <4449FBAA.2030305@elvenkind.com> 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:27386 Archived-At: >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=1; 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=2; void virtual(int x) {write (x);} parent.virtual=virtual; void f()=parent.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