Before we implement SDL package format for DUB

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 26 10:39:00 PDT 2014


On Tue, 2014-08-26 at 17:25 +0000, Jonathan Marler via Digitalmars-d
wrote:
> > Clearly I am biased, but I like internal DSLs on dynamic 
> > languages for
> > build specification.
> 
> What are DSLs?  Link?

Technically it is a Domain Specific Language, but the whole thing is
really complicated since anyone who writes any functions or classes is
creating a DSL – it is really just the notion of creating abstraction:
tokens forming a language of discourse.

Internal vs external DSL: internal means a language constructed using
the symbols of the base language and not requiring a compiler, cf.
Boost.Spirit, anything written in a dynamic language. External DSL are
those requiring some form of compilation, cf. Make. Basically internal
DSL scripts are executed whereas external DSL scripts must be parsed.

In the context, Python can support an internal DSL for build, cf. SCons,
Waf. Groovy can support an internal DSL for build, cf. Gant, Gradle.

http://en.wikipedia.org/wiki/Domain-specific_language is not entirely
wrong ;-)

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140826/f0178cfb/attachment.sig>


More information about the Digitalmars-d mailing list