mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Solar Designer <solar@openwall.com>
To: musl@lists.openwall.com
Subject: Re: cluts weekly reports
Date: Wed, 3 Aug 2011 18:51:48 +0400	[thread overview]
Message-ID: <20110803145148.GA3618@openwall.com> (raw)
In-Reply-To: <20110803133155.GV132@brightrain.aerifal.cx>

Luka, Rich -

On Wed, Aug 03, 2011 at 03:15:15PM +0200, Luka Mar??eti?? wrote:
> 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.

The syntactic sugar could either be produced with cpp macros (see Rich's
libc-testsuite) or avoided at all (see the str.c sample I posted in
June, where the arg_next() approach avoids having to use nested loops
at C source level while achieving the same effect as nested loops would).
Or you could use a reasonable mix of these two.

On Wed, Aug 03, 2011 at 09:31:55AM -0400, Rich Felker wrote:
> Well the question is whether the intended usage, for someone adding
> tests, is to add them by hand or by going back to the json "source"
> file, adding them there, and rebuilding using the Python tool. In this
> case cluts doesn't depend on Python to *run* the tests, but it does
> depend on it to modify or update the tests. I'm still confused why
> this can't be done in plain C, with the test parameters in C
> structures that you loop over, much like some of the existing tests
> (e.g. numeric).

Right.

Anyway, now that Luka went with the Python approach already, I think it
makes sense for Rich to take a look a this stuff and discuss it with
Luka before deciding on what to do next.  I'll have to stay out of this,
focusing on other projects.

Thanks,

Alexander


  reply	other threads:[~2011-08-03 14:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 17:10 Luka M.
2011-07-25 23:04 ` Luka M.
2011-08-03  0:56   ` Solar Designer
2011-08-03  1:21     ` Rich Felker
2011-08-03 13:15       ` Luka Marčetić
2011-08-03 13:31         ` Rich Felker
2011-08-03 14:51           ` Solar Designer [this message]
2011-08-03 17:08           ` Luka Marčetić
2011-08-03 17:22             ` Rich Felker
2011-08-03 18:03               ` Luka Marčetić
2011-08-03 18:19                 ` Rich Felker
2011-08-03 18:38                   ` Luka Marčetić
2011-08-03 21:59                   ` Luka Marčetić
2011-08-03 22:45                     ` Solar Designer
2011-08-03 22:53                     ` Rich Felker
2011-08-04 11:43                       ` Luka Marčetić

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110803145148.GA3618@openwall.com \
    --to=solar@openwall.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).