152 points · by sidcool · 11y ago · 209 comments
Golang competes more with gc languages/runtimes like Python/Ruby/Nodejs. To a lesser extent it may compete with Java JVM. (However at this point in time, the JVM GC technology is still far ahead of Go's GC.) If one is writing a networkish service such as REST API endpoint, Golang's combination of language featurs & quality libraries (http) is positioned very well for that. Go isn't suited for system drivers or tight loops that depend on controlling exact memory layouts. I've heard several times to think of Golang as a "DSL for networking apps" and I think it's the best succinct soundbite for that language.
That leaves D-minus-the-gc and Rust which Andrei Alexandrescu provided very reasonable analysis. I don't think either will replace C. In 1995, many predicted that Java would supplant C++ and that never happened. For the performance domains that C++ was good at (e.g. AAA games, commercial software like AutoCAD and MS Office), it became even more entrenched. In terms of being forced to make bets, I'd say Rust has a better chance than D because Rust has the momentum behind it that D never had.
I still cannot even grasp this trope. Seems like some try to apply "fake it till you make it" approach.
To me, coming from Python and Node (and a bit Ruby) development it seems as a completely opposite direction -- similar to going back to C++ or Java (where I started myself).
If not for the quirky syntax and lack of generics I would personally pose it as a replacement for the C++ itself.
Rust on the other hand seems to me to be the most promising out of these three as a systems language.
It's not a fake trope. There are tons of blog posts from programmers describing experiences of switching from Ruby+Rails to Go, or Python+Django to Go, or Javscript+NodeJs to Go. Some defections were high profile such as Nodejs uber-contributor TJ Holowaychuk switching to Go.
Compare that to virtually zero notable stories of C++ projects switching to Go. If people are using C/C++, they very likely depend on it for the performance characteristics and therefore switching to Go to suffer a speed penalty makes no sense. On the other hand, people leaving Python/Ruby report performance gains. That's why the reality on the ground looks the way it does.
Compare that to virtually zero notable stories of
C++ projects switching to Go.
A lot of projects at Google have switched from C++ to Go, and the people I know who work on them are pretty excited about working in Go. Here's a blog post by a coworker who leads the Chrome Data Compression Proxy project:http://matt-welsh.blogspot.co.uk/2013/08/rewriting-large-pro...
In a tight loop, you can't afford to have a gc or green-threads or a runtime for that matter. You want excellent cache performance, minimal context switching, and very predictable memory access patterns.
Manual memory management is here to stay.
Don't get me wrong, I love Go (for the right uses) but it's just never going to be a replacement for C/C++/Fortran for high performance code.
Also I don't know about Ruby but Python is moving really fast with PyPy.
We also have Cython. This is where I'd go when the extreme performance is needed. This way you can avoid compromising on other important factors (libraries, accumulated know-how, even syntax and development tools).
In case of NodeJS it's even more baffling.
Where I am puzzled is people viewing Go as something comparable to C/C++ - it seems on a completely different level to me.
If nothing else, you can write C in D, in a roughly similar way to how you can write C in C++ - the features are there, and so are the libraries.
Microsoft for their work supporting the standards work, C++ conferences, push to improve language's safety. Also the change to back to native since the Longhorn failure that has switched focus to C++ and driven .NET to improve its AOT story, starting with Windows Phone 8.
Oracle by dropping the ball on Java support (JIT and AOT) for the mobile OSes, making C++ the only option to write portable code across all mobile OSes.
As for Go suitability for real systems programming, as a language geek and former Oberon fan, I think the day someone shows a Go bare metal runtime on top of something like Raspberry PI, the opinions will change. Thesis idea. :)
Objective-C is also an option. Last I checked there were at least two options for ObjC on Windows and Android. More on Android, IIRC.
Since many years I only work with platform languages.
So Google doesn't offer it on the NDK, it isn't an option on Android, even if third party do make it available.
Microsoft still isn't fully done with their clang integration, so still not an option as of today.
If you're building Windows desktop "productivity" software, your options are basically which version of the Microsoft C+ API you want to work with. Microsoft are trying to migrate people to C#, and there are a few Java desktop apps (mostly java IDEs like Netbeans and Eclipse).
Similarly for (Windows) games: C++ is the only realistic option, although smart developers will embed a scripting language for the game logic (eg Lua for WoW). If you don't embed a language, the configuration system ends up being a badly specified Turing complete mess anyway.
Hell, PayPal wrote their web app in C and still maintains it.
I would say that besides the niche that C/++ is in now, Java (and GC languages in general) did win.
And Java has carved itself a really nice piece of the pie, but it's unlikely that it will expand any more, because it's already dominating in its target niches and doesn't have much to offer where it is not dominating.
Yes, C++ is old, but it has really stayed with the times in an impressive way. The so-called "Modern C++" that started with C++11 is a significantly different way of writing C++. All the things that made C++ infamously challenging and allowed inexperienced developers to leak memory and cause crashes, are, for the most part, no longer in the normal C++ workflow.
And all the rage about functional programming, passing around functions as values, writing closures that capture and encapsulate their surrounding values, using map, filter, reduce algorithms, relying on type inference, forgetting about pointer deletion and manual memory management and avoiding the access out of bounds memory on iterations -- that is all normal C++ now.
If anything has or will successfully replace C++, it is going to be C++ itself. The standards committee and community are doing an extraordinary job of keeping the language current while maintaining its great reputation for speed.
C++11 can't remove what is already there and so one just keeps piling on more stuff increasing the complexity.
I am actually sad C++11 happened because it keeps alive a language that should have died years ago.
I've worked years on projects where so many of the fundamental problems can be traced back to the usage of C++. Huge amount of legacy code which can't safely be refactored because C++ is just too complex a language for a refactoring tool to be able to deal with properly. Insane compile times. Odd hard to track down problems from static initialization and deinitialization. Templates are impossible to use in a sane way because they mix so poorly with regular OOP in C++ and increase compile times too much to be practical.
Move a project like that gradually away from C++ is a huge undertaking and nobody is going to support it as long as C++ keeps updating self to not be completely behind the times.
C++11/14 didn't just "happen." A lot of smart and highly paid people invested their time and expertise to make it happen. Were there a better alternative to C++, they would invest in that alternative rather than putting their time and effort into C++.
It's also great to see new ideas being borrowed from other languages and applied to C++. It shows that C++ is not a niche language some people like to view it.
It seems like all the langauges I've used, from objective-c to swift and Clojure require you to keep certain aspects of the language in mind for certain situations that don't on the surface seem obvious. Purity in any language is quite rare.
In the case of C++, it is possible to ignore much of that old baggage most or maybe even all of the time if you write new code using new features. I agree that those maintaining much older codebases are going to have a rough time, but is not an uncommon problem in many languages.
Also, even in a so-called "better" language you can run into massive refactoring projects with older code once you choose to adopt new libraries and tools. As Bjarne says, C++11 is much better, C++14 will be even better, and C++17 is further going to be better... frankly, this is a good path for any language to be on.
There was a time I tried to embrace modern C++. Problem is C++ is so big that there will always be lots of people who don't understand the code you are writing. I used to have tech talks to explain concepts like C++ concepts, models and how it relates to STL containers, iterators etc. But ultimately all these efforts is just putting bandaid on a shitty language.
The whole point of programming languages is so people can exchange code and understand each others code. C++ is epic fail in this area.
While Objective-C is also a kind of old and crufty language, it is infinitely simpler than C++.
Maintaining old codebases in anything other than C++ is much simpler for many reasons. Refactoring tools in languages like Java and C# actually works. Refactoring in Ruby or Python is simpler because they more naturally decouple due to their dynamic typing.
Refactoring C++ code is hell on earth because the refactoring tool has to be able to understand macros, C++ templates etc. Any changes to a class interface even private methods or variables requires recompile of all files using that class. Which means doing lots of changes means recompile of lots of files. Which sucks in a large project when C++ is terribly slow at compilation to begin with.
Compare with a language like Go. The syntax is so much more sane that you can actually write simple refactoring tools yourself easily. No way in hell you can do that with C++.
No matter what Bjarne does with C++, they will still be stuck with macros, a fiendishly complicated template system, static initialization and deinitialization mess. As long as you need to remain backwards compatible you are stuck with a lot of awful stuff.
Add to that that you also have to deal with the Makefile/Cmake garbage. Another solved by rust (rust is shipped with cargo which release you of the makefile hell).
For me, it is a good enough for when I step outside JVM/.NET work as I am an old C++ dog.
The problem is those that the only tool is the compiler and nothing else. On Herb's talk at CppCon only 1% of the audience confirmed that they use static analyzers.
Or those that have to deal with strict code guidelines or codebases that extend before C++98 as even a standard and don't even know what CppCon, HN or Reddit mean.
For those cases, I think only way forward are language that throw the unsafe cruft out and provide safe practices from the get go, without external tools that are optional to use.
But overall, I agree with you. C++11 seems different from when we used it in high school.
But the problem is when your own code interacts with the framework that uses its own internal way of managing memory (ironically it's a copy of Obj-C reference counting)
Right now I've decided just to go with the frameworks way of doing things and inherit from their base object. The problem comes when I want to use this code outside in a different project :-/
I disagree with Alexanders (regular) narrative that Rust puts a lot of estate into safe memory handling. Rusts memory management features may seem daunting at first, but they make advanced things (like type-system assisted data sharing) a breeze. So, while the whole "let's talk about data"-aspect of the language _does_ take a lot of estate, it goes far beyond "let's talk about memory".
I agree though that this is a property that comes rather late in learning the language and we still struggle to communicate that easily.
Long live C!
I am quite fond of C as well, but you know there are quite a lot of other nice languages out there as well. Since I started writing Swift, e.g. I haven't felt much need for C for anything anymore.
A problem for me jumping to C#, Java etc is that those are managed languages with very different set of tools and thinking. As a long time C/C++ developer, Swift feels much more natural as the tools, compile process and thinking is much more similar.
And Go has a very similar feel to C. When you read Go code it has much of the same simplicity and straightforwardness about it as C code. Even if I don't write much Go code I often read Go code to understand how things work, e.g. HTTP code, encryption stuff etc. Much easier to read the Go code than the C code or anything else really.
But I do agree with you, I am a web developer today and use Python, C doesn't fit too well in this space.
The right tool for the job right? C is the right choice in many cases. It is just that C/C++ has been used for a lot more jobs than they are the right choice for.
Until then I put my bet on Mono-D and DDT.
In any case, this month is the D month for me. Enough is enough with C++ and I am thankful to them because they made an amazing replacement.
I just re-attach to D for doing some stuff, and I found that DUB and VisualD just works very fine. And I'm a guy that in 75% of my time running on a GNU/Linux...
With C and even Objective-C, I have to plan everything out, and finely craft the code. It's meant to be closely examined and optimized and perfected. That's what makes it rock-solid in my experience.
I don't have type-related or buffer or memory related issues since its part of developing in the language. Things like Heartbleed are interesting, because obviously the guy was overworked and didn't spend enough time with the code before checking it in.
I view those types of issues as 'check-in irresponsibility' and it can occur with any language, not just C. My answer would be 'None of the above'.
But I'm sure, Real Soon Now(TM), if teams just adopt (best practices / better libraries / better code reviews / better static analysis tools / better testing) all those problems will be solved and C will be a great language to keep using.
After all, saving a few extra CPU cycles is totally worth breaking all SSL encryption and leaking private keys, quite literally putting the security of EVERY SINGLE FUCKING HUMAN WHO HAS EVER TOUCHED THE INTERNET in jeopardy.
So sure, let's just keep using C. It's fine, why change anything amirite?
(Sarcasm aside: In the general case it is not possible for humans to write security-critical code in C. So far the history of the internet has proven me 100% correct.)
http://bsd.slashdot.org/story/13/02/16/2329259/netbsd-to-sup...
www.lua.org/wshop13/Cormack.pdf
Eventually Swift, Systems C# (if it ever comes out MSR), D, or any other language.
I'm afraid that these few CPU cycles do make a difference.
Throughput is the number one concern for thousands of network operators and service providers. They spend millions so you can get your content and not "509 Bandwidth Limit Exceeded".
You can't just go and replace all efficiency critical software by something that runs maybe just 10% slower.
Now, is this common? I have no idea. A great deal of 'C' code never sees the larger Internet anyway.
Edit: To clarify my point, "A fool with a tool is still a fool"
They - uhh I mean - we won't if it's impossible.
As in a Rust compiler will generate equivalent assembly as C in equivalent cases. With practically for now some places where Rust will win and some where C will win performance wise. But there are no practical reasons for Rust to be slower than C or C++.
What has gotten C compilers to generate the code quality that have nowadays is 40 years of work in compiler optimizations targeted to improve C compilers code generation.
If you think C++ is the answer to C's problems I think you suffer Stockholm syndrome. You've gotten so used to all the issues in C++ and started thinking about them as normal, so you stop seeing what a mess this language is.
The title of the post talks about C, not C++.
It's 43 years old (times have changed), and while I'm sure C still has its places, I think it's time to come to terms with the fact that people suck at handling memory manually and making sure type conversions are safe & a host of other security risks.
Other, safer languages can accomplish many of the same things C does these days.
Again, I'm not calling for the end of C, but in a lot of situations, it's just asking for it now.
The fact they are also C libraries is because that was the only real option of the time when they were written; rather like saying most car accidents were caused by black ones when the only option was a model T.
Before C escaped UNIX there were other systems programming languages available.
I despair that "people suck at handling memory manually" :) It's not that hard, folks...
I just don't think C will be 'replaced' across the board though, but I suppose that's obvious.
Of the languages mentioned, I've only got experience with Go (which I use for APIs). Rust looks interesting though, I need to have a proper look at it.
Having automatic cars is convenient and has its uses. But the argument that not using a manual cars will cause less road accidents is misinformed. It looks like that because common sense dictates that as it's easier to drive, more people will drive it easier. But usually the result is that now you have people on road who could not drive a stick!
Some things are meant to be written in lowest level possible. Programming languages are tools and it helps us to have tools for entire spectrum of abstractions. Electronic screwdrivers haven't replaced manual ones in 2 decades. That's not how tools work.
As far as direct comparisons go, these isn't any indication that raising the level of abstraction actually helps with more secure, bug-free code. Compare Java code written (in FOSS setting) with C code written in last 15 years. I bet you'd find C code more secure, more fast, more faster to refactor than a lot of Java code. So if Java was a systems language, would the world be better off if it replaced C? Probably no. Which shows that it's our infatuation with new shiny toys (languages like Go) that's driving our opinion rather than evidence.
Yes, its true but it is also likely to cost your eyes.
Java FOSS code is often faster, more secure, and a lot easier to reason about than equivalent C code. This is not really a language thing but a standard library thing.
The use of char array with a null termination for human readable strings is a terrible 'C' ism. And glibc standard String struct would have saved us all a lot of (security) issues.
The second is a community thing. Java uses defined behaviour to drive optimisation. C tends to use undefined behaviour to drinve optimisatio. The C case really trips programmers up.
Most of these things are not actual technical but more social issues. Computers don't care, it is us humans who do.
Also I have real world experience with working with the same type of code in two different languages and seeing a clear difference. I've rewritten a lot of Objective-C code to Swift e.g. Objective-C as a language is much like C with similar problems as C. Just doing a straight conversion the Swift compiler picked up a lot of problems from my Objective-C code I had never discovered otherwise.
Lots of other people write about similar experience of getting significant bug reduction from moving to a much more type safe language like Swift.
To take the car analogy further, whether your car is manual or automatic, seat belts and airbags are valuable. Neither of them compromises a driver's full control of their car.
Just use the right tool for the job given the circumstances.
well, for one the h/w model for one has far progressed beyond what the state of the art was during C's genesis. for example with the advent of multicore machines trying to use C's facilities to exploit available h/w resources becomes quickly unwieldy. witness the rise of event based approaches f.e. libevent and friends, or the rise of lockfree mechanisms etc. etc.
But the biggest question is not replacement but interoperability. Can I call Rust code from Go? Can I call Go from Rust?
> Can I call Rust code from Go?
Yep. Rust code can easily expose a C ABI, so any language that can call into C (which is every language) can potentially call into Rust. > Can I call Go from Rust?
Go is working on exposing the ability to compile standalone libraries that can be called from other languages. Support was spotty last I looked, but it should be interesting to watch going forward.I mean most simple things are easy to read. But once in a while you stumble around code that nobody will understand if not every single character is well documented.
Still somehow I love it.
D is what C++ should have been. It had some traction in mid-2000s but the Tango vs. Phobos debacle killed it.
Go is the most serious of the three languages mentioned. It has the momentum, solid community, solid tooling, and corporate backing. It's well suited for networked services, but it is not replacement for C.
I'm not so sure about Rust. Unlike D and Go, Rust can replace C (in theory), but I don't think that will happen. Rust has a feel of a hobbyist language in perpetual alpha.
You should know now that D2 have single standard lib, the official compiler front end is wrote on D, and open source. Plus there is LDC and GDC implementations.
In early 2000s, Microsoft basically told Win32 API developers to either migrate to .NET or to go fuck themselves. There was a lot of FUD flying around. At one point, people were wondering will the new Visual Studio ship with C/C++ compiler.
In it's quest to promote .NET, Microsoft even got Borland to kill itself by jumping on the .NET train. The days of native Windows development were over and the best alternative to MS stack, Borland with its Delphi, decided to commit suicide.
That was the chance for D to shine. I was among the developers looking for non-MS solution for native Windows development and D was my favorite, but the Tango vs. Phobos thing killed it for me.
Like many developers at that time, I left Windows for the Web development. If D was then what is now, I would stay with Windows a bit longer than I did.
> Rust has a feel of a hobbyist language in perpetual alpha.
Would you mind elaborating on this? We released a stable version in May, so I'm wondering why it still feels that way.First, I want to tell you that my comments are not malicious (at least, not on purpose), just telling you what impression I get when looking at it.
Rust got a lot of love from the beginning, a lot of people tried to use it before it was anywhere near stable. They've got burned when their two weeks old code wouldn't compile. I know, they were warned about it, but it still kinda sucks.
If you look at the Rust FAQ[1], it promises yet more incompleteness and breakage to come:
>4 Is any part of this thing production-ready?
>No. Feel free to play around, but don't expect completeness or stability yet. Expect incompleteness and breakage.
Another question people have is: "Are we web yet?" and the answer is: "No, we are not." [2]
No stability, immature ecosystem,... Either the docs are outdated or you're "selling" it wrong. The message I get is "Rust is awesome, but not here yet".
[1]https://doc.rust-lang.org/complement-project-faq.html#is-any...?
> my comments are not malicious
No worries! I don't mind negative feedback, as long as its informed negative feedback. There's tons of bad stuff about Rust. Just like anything :)Ah! That FAQ is straight-up incorrect, check the 'beta' link: https://doc.rust-lang.org/beta/complement-project-faq.html#i...
We released 1.0 stable in May. We don't make those kinds of changes anymore. The only reason that FAQ entry survived so long is that the FAQ is currently being entirely re-written, so people hadn't read it in a while...
"Are we web yet" is massively outdated. There's been PRs open for a year, with no response from the author https://github.com/teepee/arewewebyet/pulls
Go and Rust in particular have been designed with very specific clients in mind (replacing Google's use of Python for server-side work and safety-paranoid multi-threading for Mozilla's Servo, respectively).
Rust is the only new language mentioned that resembles C in its capabilities but then again: C++ resembles C in (theoretical) capabilities but never de-throned C (mostly because when you use C++ like C, you might as well use C).
That could not have been more graphically enlightening.
http://hookrace.net/blog/what-is-special-about-nim/
Uses Cases:
https://github.com/nim-lang/Nim/wiki/Nim-use-cases
Note that meanwhile there is also NimScript, an interpreter for a subset of Nim, which can be used for shell scripts.
Nim for scientific computing:
http://rnduja.github.io/2015/10/21/scientific-nim/
> The language known also as n_i_m and NiM?
http://blog.codinghorror.com/the-case-for-case-insensitivity...
I have no problem with that because this way everyone can use his favorite notation. The only thing that strongly reject are strong spaces. That was a silly idea and should be removed instantly.
However C is often used for writing libraries that can be used for many languages. Think about OpenSSL e.g. I doubt C was chosen due to its credentials as a secure language. Rather this is a liability for C/C++ in many areas.
I think Rust will replace this. Actually I think Swift will be fighting with Rust over some of the the same territory. They both got the same advantage of not requiring a garbage collector and thus can be used to write libraries to be used by any language through a C-API.
While Rust might have an edge language wise, Swift might be just good enough. That matters because we are using C/C++ not so much due to the quality of those languages but due to a combination of their feature set and existing momentum.
Swift is more or less guaranteed to get big as it is replacing Objective-C for iOS development rapidly. That will create a large user base for it quickly. This will only accelerate when Swift goes open source and can be used on more platforms.
Both D and Rust have a bit of a chicken and egg problem. People aren't going to use those languages if people don't believe they have a future. They wont have a future if people don't believe they have a future. Rust is novel and cool enough in a geek perspective that I think it will gain enough momentum to get some presence. D has been around for a long time without that happening so there is no reason to believe it will happen now.
Swift has the chicken and egg problem solved. For writing something like OpenSSL it would take away many potential problems. No accidentally not executed code due to not using curly braces for if statements. No exploitable buffer or integer overflows. No accidentally uninitialized variables. No accidental switch-case fall through. No unintentional type conversions. A whole host of memory bugs gone.
The question is about new development, and to what extent C and C++ are evolutionary dead ends. Nobody would design a language like C today, would they? They'd be laughed at.
You're making the mistake of assuming that because you know something really well, that makes it good.
Too bad not two projects can agree which subset.
C++11 is as terse as ML.
C++'s apparent excess of features is mostly due to the fact that its memory model and type system have hundreds of edge cases that need handling. Compared to D, Rust and other newer languages, C++ never actually feels full featured (despite being horribly complex in some areas).
Before J2EE was a thing, there were something called CORBA and COM and mainly used from C++.
It's not going away just for historical reasons. There is too much code written in it which needs to be maintained in the next decades. I don't envy them who are forced to do that :-)
By using source-to-source compilers, C is a good target language.
From this standpoint, we can treat C as a "cross-architecture assembly platform".
Simplicity is beautiful!
I do offer my own pet wish for C though: Official support for __attribute__((cleanup)). GCC and CLANG support it.
1) What is the ecosystem now? If it is not good, does it look like it will improve in next X time or so?
1.1) What are the production ready libraries right now?
1.2) Who are the maintainers? Who is backing them?
1.3) How approachable is the community?
1.4) Are the current pain points are being worked at and at appropriate speed?
1.5) How is the tooling scene?
2) What is the overhead for large codebases? e.g factors = [simplicity, deployability, testability, code-review, refactorability, learnability]3) How hard/easy it is to wrap C/C++ code/libs if we ever need? Will there be any performance impact?
4) Does it look like more CPU bound code will be added looking at the product roadmap?
We are a python shop. As long as it was network IO centric we were ok. However due addition of features, the CPU bound code has increased and we clearly see the limitations of Python. This has led to find the replacement language. Since we are reviewing now the 'X time' in #1 is '1 year'. For others the tolerance may vary.
As for #2: Code review has an additional overhead due to Python's dynamic nature. Also we need to write additional unit testcases. A language which "prevents" basic issues (not going into 'how') has less overhead on the team.
#3: From what I know, go does not do well here in terms of performance. We deal with lot of 3rd party APIs e.g using VMware APIs which are in C and are called in the main loop. Also evaluation of this point helps us to see if any shortcoming in the current libraries can be augmented by wrapping existing C/C++ libs. Rust & D are better I suppose.
refactorability: GC'ed languages inherently has an advantage (for large codebases). Counter examples welcome.
learnability: Rust suffers here most. This is a point which makes it hard for Rust to get introduced and even though I may have patience to stick with it others may not and drives down the adoption. On most occasions, other teams also need to be convinced for any meaningful transition.
Testability (i.e. unit tests): Python is really good at this. This is not a point for the testing tools but more for language features. I find dependency injection in Rust really hardest right now (or may be I might have missed something)
#4 is true in our case.
#1 (libraries/tools): Go is ahead I think in terms of production ready libs.
#1 (community aspect): Go & Rust are better here than D (right now) even though the founder of D is prolific. Note that when championing a language inside a company is concerned perceptions matter a lot. Here I think D suffers a bit in my case.
Right now I am in wait-and-watch mode but leaning towards Rust.
(edited: formatting issues)
Go kinda is already, but is too sucky on too many levels to really break through.
Rust is still alpha and seems to be going backwards at times, but looks like a strong contender.
Assuming Go fixes its many problems, and Rust is eventually delivered, I think they will both have a strong role to play, Go in the networking/systems space, Rust in the large scale app development space (like making a browser).
But C will still be around.
Django/Rails Sinatra and so on.
These frameworks do injustice to their languages :
Rails hurts Ruby, Django hurts Python, Sinatra hurts Javascript.
JavaScript has a lot to offer but in the distant future. An even then it relies on slaves building pyramids.
Go is fantastic at what it does well, which is lightweight concurrency (with a synchronous api), something that no other compiled, imperative language offers.
But I haven't spoken to a single Go developer (and I've spoken to a few) who don't hesitate to tell me how sucky it is in many, many other ways. I've heard the phrase "I'm really starting to hate Go" more than once or twice.
Is there some JS framework called Sinatra? Either you made a mistake or I'm out of the loop when it comes to the JS world.
The only Sinatra I know of is http://www.sinatrarb.com/