Andrei's Google Talk

Leandro Lucarella luca at llucax.com.ar
Tue Aug 3 16:16:18 PDT 2010


Walter Bright, el  3 de agosto a las 15:08 me escribiste:
> bearophile wrote:
> >At 14.42: You compare the performance of a D compiler with the performance of
> >a C++ compiler. But Delphi compiler was/is very fast (and probably the
> >FreePascal compile too), I have never "waited" for my Delphi (ObjectPascal)
> >code to compile. I think on average it takes only two thousand clock ticks to
> >compile one line of ObjectPascal code. It sounds a lot, but it means that
> >with a modern single-core CPU you can produce your binary file from a one
> >million ObjectPascal lines long program in less than two seconds.
> >ObjectPascal type system looks a bit simpler than D one (despite it has OOP,
> >generics, modules, inline asm, dynamic strings, records, all basic D types,
> >etc), so this isn't a fully apple-to-apple comparison.
> 
> 
> Some context is in order. The talk was given at Google and aimed at
> what would be interesting to Googlers. Google uses C++ extensively,
> and Rob Pike (of Go) listed as a motivator for Go the compile speed
> problems with C++. Rob made a point of how fast Go compiled code,
> and Go's compile speed has been praised a lot on Reddit as well.
> 
> Andrei put together a benchmark that shows that D compiles 4 times faster than Go.

I was surprised by that, can you publish what the benchmark was, and
what compilers were used? I tried Go when it came out and it felt faster
than D to compile (which is reasonable because is a much simpler
language).

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
EXTRAÑA RELACION ENTRE UN JUBILADO Y UN JABALI
	-- Crónica TV


More information about the Digitalmars-d mailing list