News for hackers. Stuff that matters.
Re:Re: Moving from PHP to Go and Back Again by pjmlp on Tuesday December 12, 2017 @04:26AM (#15904143)
Which other languages?

Turbo Pascal compilation speed, in MS-DOS, using 90’s hardware was already faster than Go.

There are lots of languages with modules support, with static linking and native compilation to choose from.

Re:Re: Moving from PHP to Go and Back Again by gribbly on Tuesday December 12, 2017 @06:37AM (#15904779)
>Turbo Pascal compilation speed, in MS-DOS, using 90’s hardware was already faster than Go.

What relevance does this have on the compiler landscape today ?

If you have to use a compiler from ~30 years ago to find a comparison supporting your claim, it sounds very much like Go is indeed much faster than what it competes against today.

Re:Re: Moving from PHP to Go and Back Again by pjmlp on Tuesday December 12, 2017 @06:53AM (#15904869)
The relevance is that a compiler running in 90's hardware is able to beat Go's compilation speeds of 2017. That same compiler has evolved through the years.

If you want the 2017 version of it, it is called Delphi. Beats Go in language features and compilation speed.

Go's compilation speed only surprises those developers that never used anything else beyond C and C++.

Re:Re: Moving from PHP to Go and Back Again by gribbly on Tuesday December 12, 2017 @07:09AM (#15904978)
>The relevance is that a compiler running in 90's hardware is able to beat Go's compilation speeds of 2017

And beat 99% of other compilers today, meaning that overall compiler complexity has grown.

>If you want the 2017 version of it, it is called Delphi.

Ok, this is something actually relevant.

>Go's compilation speed only surprises those developers that never used anything else beyond C and C++.

For me (tm), Go compilation speed has compared equal or favorably against C, C++, Java, C#, Rust at least.

Re:Re: Moving from PHP to Go and Back Again by pjmlp on Tuesday December 12, 2017 @09:13AM (#15905649)
> And beat 99% of other compilers today, meaning that overall compiler complexity has grown.

Which ones?

> For me (tm), Go compilation speed has compared equal or favorably against C, C++, Java, C#, Rust at least.

Since when does Go compile faster than Java and C#?

When I hit Ctrl+S my binary is already on the disk, thanks to incremental compiler integration on the IDE.

I have a full blown WPF application with multiple plugins, including data visualization, talking to Oracle and Postgres, total compilation time after check out 12s.

Eiffel, D, Nim, Jai are other fast compilation examples.

Re:Re: Moving from PHP to Go and Back Again by royge on Tuesday December 12, 2017 @06:07AM (#15904631)
:D You're comparing turbo pascal with Go today? You're gonna write microservices and web applications with Turbo Pascal?
Re:Re: Moving from PHP to Go and Back Again by pjmlp on Tuesday December 12, 2017 @06:30AM (#15904744)
Ever heard of FreePascal and Delphi?

In any case it doesn't change the fact that Go's compilation speed is nothing to brag about, it has been done before in many other languages, Turbo Pascal was just one example.

If you wish I can provide other examples of languages that compile as fast, on such old hardware while matching Go's compilation speed, with richer language features.

Re:Re: Moving from PHP to Go and Back Again by royge on Tuesday December 12, 2017 @07:23AM (#15905070)
Yes, I heard about these FreePascal and Delphi but I have no prior experience with them.
Re:Re: Moving from PHP to Go and Back Again by seba_dos1 on Tuesday December 12, 2017 @07:38AM (#15905150)
Well, personally I wouldn't, but generally, why not?