August 20, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Thursday, 20 August 2020 at 22:20:19 UTC, Andrei Alexandrescu wrote:
> On 8/20/20 4:50 PM, Per Nordlöw wrote:
>> After having evaluated the compilation speed of D compared to other languages at
>>
>> https://github.com/nordlow/compiler-benchmark
>>
>> I wonder; is there any language that compiles to native code anywhere nearly as fast or faster than D, except C?
>>
>> If so it most likely needs to use a backend other than LLVM.
>>
>> I believe Jai is supposed to do that but it hasn't been released yet.
>
> I tried Python a while ago, the build-run cycle for a simple program was about the same. For Perl it was faster.
Neither perl nor python compile their code by default.
|
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On 2020-08-21 00:31, Guillaume Piolat via Digitalmars-d wrote:
> On Thursday, 20 August 2020 at 20:50:25 UTC, Per Nordlöw wrote:
>> After having evaluated the compilation speed of D compared to other languages at
>>
>> https://github.com/nordlow/compiler-benchmark
>>
>> I wonder; is there any language that compiles to native code anywhere nearly as fast or faster than D, except C?
>
> Object Pascal / Delphi has been very fast in the past, perhaps the existing Pascal compilers still are.
>
>
Same goes for good old ada. It has blazing fast compilation times in conjunction with gcc-gnat, but can't tell whether they made any kind of significant progress on the llvm-gnat front in recent months.
|
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On Thursday, 20 August 2020 at 20:50:25 UTC, Per Nordlöw wrote:
> After having evaluated the compilation speed of D compared to other languages at
>
> https://github.com/nordlow/compiler-benchmark
>
> I wonder; is there any language that compiles to native code anywhere nearly as fast or faster than D, except C?
Yes. D1. :)
|
August 20, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On 8/20/20 6:35 PM, Per Nordlöw wrote:
> On Thursday, 20 August 2020 at 22:20:19 UTC, Andrei Alexandrescu wrote:
>> I tried Python a while ago, the build-run cycle for a simple program was about the same. For Perl it was faster.
>
> That same as what? D? That entirely depends on the complexity of the Python program. What kind of app/program where you testing?
It was a simple wc program with rdmd versus python.
|
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On 2020-08-20 22:50, Per Nordlöw wrote: > After having evaluated the compilation speed of D compared to other languages at > > https://github.com/nordlow/compiler-benchmark > > I wonder; is there any language that compiles to native code anywhere nearly as fast or faster than D, except C? I'm surprised that you only have gccgo and not the reference/official (or whatever it's called) implementation. That one uses a fully custom tool chain, i.e. custom compiler, custom assembler, custom object format and custom linker. I'm sure it's faster than gccgo and it might be faster than D as well. There's some work on a new Rust backend [1] as well. Not sure if that usable yet. What about Nim and Vala, don't they count since they're generating C code? [1] https://jason-williams.co.uk/a-possible-new-backend-for-rust (first hit on Google) -- /Jacob Carlborg |
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinke | On Thursday, 20 August 2020 at 21:21:39 UTC, kinke wrote:
> Pardon me, but that code seems everything but remotely representative to me - no structs, no classes, no control flow, just a few integer additions and calls.
I warmly welcome suggestions on how to improve the relevance of these tests. ;)
|
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Friday, 21 August 2020 at 06:20:18 UTC, Jacob Carlborg wrote:
> I'm surprised that you only have gccgo and not the reference/official (or whatever it's called) implementation. That one uses a fully custom tool chain, i.e. custom compiler, custom assembler, custom object format and custom linker. I'm sure it's faster than gccgo and it might be faster than D as well.
Well it's only a matter of having the time to add it.
What's the easiest way to install the reference/official toolchain on Ubuntu?
|
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Friday, 21 August 2020 at 06:20:18 UTC, Jacob Carlborg wrote:
> What about Nim and Vala, don't they count since they're generating C code?
I haven't included backends that generate C because I don't think they are relevant to this metric as dmd is faster than both GCC and Clang at compiling C-style D code.
|
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On Thursday, 20 August 2020 at 20:50:25 UTC, Per Nordlöw wrote:
> After having evaluated the compilation speed of D compared to other languages at
>
> https://github.com/nordlow/compiler-benchmark
>
> I wonder; is there any language that compiles to native code anywhere nearly as fast or faster than D, except C?
>
> If so it most likely needs to use a backend other than LLVM.
>
> I believe Jai is supposed to do that but it hasn't been released yet.
Turbo Pascal ;-)
It compiled so fast at a demonstration to customers they thought it was broke...
-=mike=-
|
August 21, 2020 Re: Is there any language that native-compiles faster than D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike James | On Friday, 21 August 2020 at 11:42:51 UTC, Mike James wrote: > Turbo Pascal ;-) > > It compiled so fast at a demonstration to customers they thought it was broke... Ahh, yes I remember! It was my first language (in high school). :) Techniques outlined here: https://prog21.dadgum.com/47.html See also: https://www.reddit.com/r/programming/comments/1fpu6u/how_could_turbo_pascal_be_so_fast/ |
Copyright © 1999-2021 by the D Language Foundation