[Python-ideas] Why shouldn't Python be better at implementing Domain Specific Languages?

Michael Selik mike at selik.org
Fri Aug 31 02:24:21 EDT 2018


On Thu, Aug 30, 2018, 9:23 PM David Mertz <mertz at gnosis.cx> wrote:

> On Fri, Aug 31, 2018, 12:08 AM Guido van Rossum <guido at python.org> wrote:
>
>> Hm. YAML is indeed a great, readable alternative to JSON or XML. But the
>> term DSL implies (to me) more than just nested key-value pairs. (Though who
>> knows maybe that's all Keras needs, and then it's a poor argument for
>> having a DSL.)
>>
>
> Keras is deliberately very declarative in defining models. So indeed
> sequences and mappings and scalars is everything it needs. Maybe I'll
> actually implement the idea I sketch out in a small independent library.
>

Defining Keras models reminds me of the ugly ASP code I'd sometimes write
to create HTML in an object-oriented fashion. Writing plain HTML was
usually more pleasant and readable.

I suggested XML with that memory in mind. It's cumbersome for many tasks,
but Keras models in particular might be a good fit. Or YAML.

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180830/72514d9d/attachment.html>


More information about the Python-ideas mailing list