3 ms·
I've said a couple of times that new language designers should thank their lucky stars that C++ has set the bar for "fast compilation" so low. Coming out of the
by jerf 10y ago
I've said a couple of times that new language designers should thank their lucky stars that C++ has set the bar for "fast compilation" so low. Coming out of the gate with a compiler that's "faster than C++!" is pretty doable even for a relatively compile-time heavy language. If you had to come out of the gate with something as fast as Delphi to be taken seriously, we wouldn't get very many new languages.
(I mention this in the context of my observation that the minimum bar to be taken seriously for a language is going steadily up. You certainly need a standard library that is powerful out of the gate, whether or not it is necessarily "part" of the language, and we're getting perilously close to the language being required to ship some heavy-duty HTTP stuff, possibly a server implemented in the language, before it stands a chance. Rust may have snuck in under the wire on that, though of course that stack is developing apace even so.)
- neikos 10y agopython has a http server coming with the standard installation
- stevedonovan 10y agoGo (despite its faults) definitely raised that minimum bar; a language needs to arrive with a package manager and doc tools, as well as enough standard library to get non-trivial things going. Rust made the right decision on HTTP - let the ecosystem provide. Of course, the result of that is summarized in the quote by Grace Hopper: “The wonderful thing about standards is that there are so many of them to choose from.”
- marcosdumay 10y agoThere's always the Python way: Let the ecosystem provide, then, once there's a few clean winners, pick one as the official (while keeping the others there, obviously).
- paulddraper 10y agoC++/Boost does that
- marcosdumay 10y agoYes (what is quite inline with the C tradition). What is interesting is that I can't think of a lot languages that do it. It should be the default, as it's easy, safe, and gets good results. Somehow, it isn't. And then there's the Haskell's way of: let the community informally choose the one best option, and when somebody uses any of the other ones, just get somebody near him telling "nobody goes there anymore, come to this other place". It works very well, but is a bit confusing for newbies.
- pjmlp 10y agoGo's minimum bar is well below Active Oberon, Delphi, Eiffel, Java and .NET ones.
- jerf 10y agoRemember I'm not discussing what they have now, though; the question is what they came out of the gate with in their 1.0. I'm fairly confident Go 1.0 was much more useful than Java 1.0. Java 1.0 certainly didn't ship with a built-in web server and routing stack, or even anything close to that high-level functionality, even if it did ship with more data structures that Go has even now. .Net was a closer call, but, then, .Net came later, the bar had raised. Can't speak to the other ones but I would imagine their first releases were also less useful than Go.
- pjmlp 10y ago> Java 1.0 certainly didn't ship with a built-in web server and routing stack Kind of, it supported distributed computing via CORBA and RMI. A built in web server was released as part of Java 6, 2006. > Can't speak to the other ones but I would imagine their first releases were also less useful than Go. The fact is that Go, released in 2009, was a pretty bare bones compared to the state of those programming languages in 2009. Also while Go might had an HTTP package on version 1.0, it surely still doesn't have a GUI framework on 1.8, which those languages had on 1.0. EDIT: Rephrased a bit the answer.
- jerf 10y ago"A built in web server was released as part of Java 6, 2006." Go isn't even that old yet. You're welcome to discuss what you like but I'm talking about what thing came with at first release. "Also while Go might had an HTTP package on version 1.0, it surely still doesn't have a GUI framework on 1.8, which those languages had on 1.0." Point. And even by 1.0 Java's was at least modestly capable by the standards of the time, as I recall. It didn't have everything, certainly couldn't compete with all the custom widgets you could buy for Windows, but usable.
- deleted 10y ago[deleted]
- pjmlp 10y agoI believe if Sun and MS had provided optimized AOT native compilers as part of Java and .NET, instead of waiting 20 years to do so or relying on third parties, C++ use cases would be even less than they are nowadays. Just in cases someone mentions NGEN, it is just intended to enable fast startups.