From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA31403; Mon, 29 Jul 2002 12:23:23 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA31181 for ; Mon, 29 Jul 2002 12:23:21 +0200 (MET DST) Received: from venus.is.s.u-tokyo.ac.jp (venus.is.s.u-tokyo.ac.jp [133.11.12.9]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6TANFH15752 for ; Mon, 29 Jul 2002 12:23:16 +0200 (MET DST) Received: from localhost (tuba.is.s.u-tokyo.ac.jp [133.11.12.102]) by venus.is.s.u-tokyo.ac.jp (8.11.6/3.7W) with ESMTP id g6TANEV15783; Mon, 29 Jul 2002 19:23:14 +0900 (JST) To: caml-list@inria.fr cc: sumii@yl.is.s.u-tokyo.ac.jp From: eijiro_sumii@anet.ne.jp Subject: Re: Games (Re: [Caml-list] Caml productivity.) In-Reply-To: <00c701c236b1$22110fd0$a56fc7c8@behemoth> References: <20020722205624.B652@boson.den.co.bbnow.net> <20020723200326Q.sumii@tuba.is.s.u-tokyo.ac.jp> <00c701c236b1$22110fd0$a56fc7c8@behemoth> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020729192313A.sumii@tuba.is.s.u-tokyo.ac.jp> Date: Mon, 29 Jul 2002 19:23:13 +0900 X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > Another is that some 3D graphics people in Hollywood are actually > > using LISP because (the major part of) 3D graphics is in fact symbolic > > computation, at which "functional" languages are good. > > Could you (or someone else) please elaborate more on that ? So far on my > research on computer graphics I could not see it as being mostly symbolic > computation. Some specific algorithms and applications yes, but not most of > it (nor even close). I'm not a CG expert and don't have at hand specific pointers to industrial uses (I wrote the previous sentence from my memory), so this is just personal impressions that I've had in writing several CG programs (e.g. in ICFP programming contest 2000, where our OCaml program won over all C/C++ entries - see www.ocaml.org) and chatting with friends of mine (some of them are CG experts), but anyway: The numeric part is of course important and consumes most time, but as _programming_ (rather than mathematics), the symbolic part seems much tricker, in particular for compound applications like games and movies. By "symbolic part", I mean all parts involving more complex data structures than float arrays, like managing objects of various shapes, manipulating trees for grouping those objects, or even interpreting domain specific languages for describing placement and movement of such objects. OCaml is very good at such a kind of programming, you know! > And I've seen some reports on LISP being used for CG, > mostly in procedural techniques. Could you please point out where have you > seen other uses of functional languages on computer graphics ? Thanks. This is why I quoted the word "functional".:-) I never claimed that functional programming in the sense of "no side effects" is good for ray tracing. There may well be other factors such as inductive data types, pattern matching, higher-order functions, garbage collection, module systems, etc. I just think that _so-called_ functional languages like LISP and ML are good at symbolic computation thanks to _all_ of the features above. -- Eijiro Sumii (http://www.yl.is.s.u-tokyo.ac.jp/~sumii/) Research Associate, Department of Computer Science, University of Tokyo ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners