This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Trundle, alex, asvetlov, barry, bfroehle, chris.jerdonek, daniel.urban, david.villa, dmalcolm, eric.smith, ezio.melotti, gregory.p.smith, jcea, jkloth, larry, mark.dickinson, pitrou, skrah, v+python
Date 2012-12-11.23:36:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20121211233632.GA28462@sleipnir.bytereef.org>
In-reply-to <1355082775.33.0.402883944693.issue16612@psf.upfronthosting.co.za>
Content
Larry Hastings <report@bugs.python.org> wrote:
> I disagree that the Clinic DSL is "verbose".  Certainly I find it
> more succinct than what we do now.

I was referring to the total size of the generated output, not to the DSL.

> On the other hand, the syntax you proposed in the python-dev message
> you cite is insufficient to the task.
[...]

Actually this was Stefan Behnel's suggestion. Thanks for the explanation.

> To answer 5), you're the only C contributor who comes to mind who
> seems unhappy.  Do I understand you correctly that your main pain
> point is that you generate scores of identical functions with the
> C preprocessor, and you see no way to do that with Clinic?  If we
> figured out a way to make that work with Clinic, would that reduce
> your concerns?

No, the main problem is the amount of vertical space that's consumed.
I've looked at os_access etc., and it seems that about 100 lines will
be produced per function. The size of _decimal.c would go up from 5700
to something like 15000 lines.

You can do similar math for posixmodule.c.

Even with tools like ctags, I find code with a huge proportion of boilerplate
harder to understand and to navigate.

Also, I think that specifications of a declarative nature logically belong into
header files, but currently I don't see a nice way to make that happen.
History
Date User Action Args
2012-12-11 23:36:31skrahsetrecipients: + skrah, barry, gregory.p.smith, jcea, mark.dickinson, pitrou, larry, eric.smith, jkloth, ezio.melotti, v+python, alex, Trundle, asvetlov, dmalcolm, daniel.urban, chris.jerdonek, bfroehle, david.villa
2012-12-11 23:36:31skrahlinkissue16612 messages
2012-12-11 23:36:30skrahcreate