From owner-freebsd-chat@FreeBSD.ORG Tue Apr 27 08:28:19 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6A8E16A4CE for ; Tue, 27 Apr 2004 08:28:19 -0700 (PDT) Received: from turkey.mail.pas.earthlink.net (turkey.mail.pas.earthlink.net [207.217.120.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B08943D62 for ; Tue, 27 Apr 2004 08:28:17 -0700 (PDT) (envelope-from rsidd@online.fr) Received: from user-0cdfelv.cable.mindspring.com ([24.215.186.191] helo=bluerondo) by turkey.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1BIUVM-0007A9-00 for chat@freebsd.org; Tue, 27 Apr 2004 08:28:16 -0700 Received: (qmail 4072 invoked by uid 1002); 27 Apr 2004 15:28:19 -0000 Date: Tue, 27 Apr 2004 11:28:19 -0400 From: Rahul Siddharthan To: Sergey Zaharchenko Message-ID: <20040427152819.GA4047@online.fr> References: <20040425215837.3f4708fe.cpressey@catseye.mine.nu> <20040426094335.GA7578@online.fr> <20040426115842.GA4144@Shark.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040426115842.GA4144@Shark.localdomain> X-Operating-System: DragonFly 1.0-CURRENT i386 User-Agent: Mutt/1.5.6i cc: Chris Pressey cc: chat@freebsd.org Subject: Re: Beginning C++ in FreeBSD X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 15:28:20 -0000 Sergey Zaharchenko said on Apr 26, 2004 at 15:58:42: > > > A single Greek word for which there isn't an equivalent English word, > > > phrase, sentence, paragraph, essay, book, or library would be enough > > > though. > > > > Which has very little relevance to programming languages. Anything > > that can be done in one Turing-complete language can be done in > > another Turing-complete language. The trade-off is in development > > time ("expressiveness") and running time. > > > > // Turing strikes again:) > // Ok. Write this (to be compiled as a shared object) in portable C: By "anything" above I meant "taking certain input data and performing certain operations to yield a certain output". As DES points out, your program doesn't actually do anything :) Some early C++ compilers translated to C before compiling, I believe. As did f2c, a fortran-to-C translator widely used before g77. And I know of at least one lisp-like system that translates to C (lush) -- though it's not common lisp and is missing many essential lisp features like macros. But many common Lisp systems (and compilers for many other languages) are written in C, so you can argue that the combined system of compiler+non-C program is a C program that does the same thing (somewhat like Chris's allowing a library in English to represent a single word in Greek). Rahul