3 ms·
It seems that people on hn just fell in love with go. So many new articles lately. It's like the node.js fever all over again.
by islon 13y ago
It seems that people on hn just fell in love with go. So many new articles lately. It's like the node.js fever all over again.
- pjmlp 13y agoOr Ruby on Rails, Arc, or whatever is the flavour of the year. Additionally it is funny to see the usual comparisons of young developers discovering execution and compilation speeds already possible in 16 bit systems.
- vidarh 13y agoI was surprised at how amazed people on one of the recent Go threads was with Go compilation speeds, given that gcc delivers similar compilation speeds for C code per line of code for me on my old, slow home server. As for 16 bit systems, I'd love to see a comparison with the Turbo Pascal compiler, for example, on modern hardware. Maybe my memory is deceiving me and the program sizes just weren't comparable, but it sure did seem like it was just flying on a 4.77MHz 8086 based PC. It'd be an interesting comparison. Especially given I remember how frustrated I was with a lot of other contemporary compilers (whether for C, Pascal, dBase or others). The only other compiler I remember fondly for being fast was the AmigaE compiler (by Wouter van Oortsmerssen, the strlen.com / Cube engine guy, who I see is now working at Google on Android gaming - nothing but good can possibly come of that)
- pjmlp 13y agoThat was also my experience with Turbo Pascal, having used all MS-DOS versions and the 1.5 Windows version. Other languages with module systems also compile quite fast. It would be interesting to see a table of compilation speed comparisons of compilers for languages with module systems for applications of an considerable size.
- robfig 13y agoIs this true? I'm not sure about C, but it's definitely the case that Go compiles magnitudes faster than C++, for any reasonable sized project. For example, the ~200k lines of Go standard library compiles in about 14 seconds on my workstation, while random C++ libraries frequently take much longer (just my anecdotal impression from waiting on "brew install").
- deleted 13y ago[deleted]
- pjmlp 13y agoC++ compiles pretty slow due to templates being in the header files, and the need to re-parse them in every compilation unit. Also the language is quite complex and requires multiple analyses at parse time to decide what the developer is really trying to do. C code can be compiled fast if not many optimizations are being made. For example the Tiny C compiler was compiling the Linux kernel around 15s in 2004, not sure about which modules were configured though. Any proper compiler for a language with modules should anyway be able to beat C and C++ compilers hands down.
- ternaryoperator 13y agoThe slowness of C++ compilation is more complicated than you imply. Walter Bright details the causes here: http://www.drdobbs.com/228701711 http://www.drdobbs.com/228701711
- pjmlp 13y agoI know, but that is why Walter's information is an article and not a plain simple post. There is too much compiler related information to discuss.
- coldtea 13y agoHey, you forgot to mention Oberon! :-)
- pjmlp 13y agoYou get an upvote :)
- zimpenfish 13y agoI remember E on the Amiga (http://strlen.com/amiga-e http://strlen.com/amiga-e) from Wouter van Oortmerssen being blistering fast at compiling even on a 68020.
- ChikkaChiChi 13y agoI thought the flavor this week was Julia. or Elixir. We are so fickle.