Using D

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 25 07:54:23 PDT 2014


On Mon, 25 Aug 2014 14:41:46 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> D does seem to lack type variables? So it is quite static in 
> comparison.
the problem with "overly dynamic" languages like Smalltalk (and
especially Self) is that it's insanely hard to write an efficient
compiler which generates fast machine code. JIT compilation,
polymorphic inline caching and alot of other techniques allows this
languages to work with "acceptable speed", but primitive C compiler with
peephole optimizer can beat 'em easily.

D is aimed to generate efficient machine code, so it must be "static".
we can emulate dynamic calls with AA and opDispatch, but this will
be... not fast. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140825/80e98930/attachment.sig>


More information about the Digitalmars-d mailing list