From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/221 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?THVrYSBNYXLEjWV0acSH?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: cluts weekly reports Date: Wed, 03 Aug 2011 15:15:15 +0200 Message-ID: <4E3949E3.4090008@gmail.com> References: <20110803005619.GA2378@openwall.com> <20110803012112.GT132@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1312377453 13467 80.91.229.12 (3 Aug 2011 13:17:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 13:17:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-305-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 03 15:17:29 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QobKC-0005TO-Ou for gllmg-musl@lo.gmane.org; Wed, 03 Aug 2011 15:17:28 +0200 Original-Received: (qmail 11480 invoked by uid 550); 3 Aug 2011 13:17:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11468 invoked from network); 3 Aug 2011 13:17:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=JfUKecO+3ta2RAHZE7I8miS8xt5w8ybr4zXqYXY2PEc=; b=nRDrLzCPqE+Ah+7sbltbKMJ13JiJMNVo/01fXTogHCrK9PeDfVhJl4OJPY6qv0taCn sg6VMFcIaJ2qfUxMfNvh+BQ59hciqDpFkKpncCcHLlNQHowc95tvAbVkXHAjD3CwAXMi dFjdwZgld7TLJrmUhCzV0jiVW9rxxeIS5Ueek= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 In-Reply-To: <20110803012112.GT132@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:221 Archived-At: On 08/03/2011 03:21 AM, Rich Felker wrote: > On Wed, Aug 03, 2011 at 04:56:19AM +0400, Solar Designer wrote: >> Luka - >> >> On Tue, Jul 26, 2011 at 01:04:07AM +0200, Luka M. wrote: >>> e) Started working on a code generator in python, first to be used o >>> generate (parts of) temp.c, and later hopefully string.c >> To me, the dependency of cluts development on Python is a drawback. >> Wouldn't cpp macros be sufficient? You can see some use of cpp macros >> in Rich's libc-testsuite. I like this approach better than using an >> external preprocessor not native to C. > I tend to agree with this. > > Rich Well it's a bit too late to stop now, but I don't think fear is warranted: Cluts doesn't depend on python because a code generator is written in it. The generated code is regular C code, which could be written by hand if one wanted to. A code generator is not a preprocessor, it is just a handy tool to automate the process of writing code by hand. My generator takes in a .json file, and out generates most of the syntactic sugar, loops etc needed for the test collection to compile and run. That is to say, the generator is used to write the tests, not to run them. Luka