[Python-ideas] Why shouldn't Python be better at implementing Domain Specific Languages?
James Lu
jamtlu at gmail.com
Thu Aug 30 20:30:23 EDT 2018
Why shouldn't Python be better at implementing Domain Specific Languages?
>From Johnathan Fine:
> I really do wish we could have language that had all of Ruby's
> strengths, and also all of Python's. That would be really nice. Quite
> something indeed.
> Languages do influence each other. Ruby is good at internal Domain
> Specific Languages (DSLs). And there's Perrotta's influential book on
> Ruby Metaprogramming. That's something I think Python could learn
> from.
> But I don't see any need (or even benefit) in adding new language
> features to Python, so it can do better at DSLs.
It would be nice if there was a DSL for describing neural networks (Keras).
The current syntax looks like this:
model.add(Dense(units=64, activation='relu', input_dim=100))
model.add(Dense(units=10, activation='softmax'))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180830/a8711850/attachment.html>
More information about the Python-ideas
mailing list