News for hackers. Stuff that matters.
Re:C++ and the Culture of Complexity by comex on Friday August 23, 2013 @07:07PM (#6266738)
I'd like to see a language with the power of C++ without some of its complexity. As noted elsewhere in the thread [1], there are a lot of features that just aren't necessary for the combination of performance and expressiveness C++ offers; on the other hand, while C is simple and can usually offer equal or better performance, its lack of templates hurts its expressiveness badly.

But Java or JavaScript? If your performance needs are satisfied by those languages, great, but you're not the target audience - not today, anyway, now that those languages exist and are reasonably fast. But if not, good luck trying to beat the JVM into doing what you want. [2]

[1] https://news.ycombinator.com/item?id=6266633

[2] http://marc.info/?l=git&m=124111702609723

Re:C++ and the Culture of Complexity by javert on Friday August 23, 2013 @07:30PM (#6266810)
If C++ was originally "C with classes," has anyone invented a "C with templates"? Might not be a bad idea.
Re:C++ and the Culture of Complexity by vilya on Friday August 23, 2013 @07:45PM (#6266866)
I got the impression that's what the Clay language [1] was aiming for, but progress on it seems to have stopped around a year ago.

[1] http://claylabs.com/clay/

Re:C++ and the Culture of Complexity by seanmcdirmid on Friday August 23, 2013 @09:00PM (#6267109)
There are plenty of use cases where Java is too complex and performance is even less of an issue, so Python and Ruby become viable. There are plenty of points up and down the perf/productivity gradient.

I didn't think anyone uses Javascript unless they had to because the code needed to run in the browser.

Re:C++ and the Culture of Complexity by comex on Friday August 23, 2013 @10:18PM (#6267298)
You must not have heard of node.js :)
Re:C++ and the Culture of Complexity by seanmcdirmid on Friday August 23, 2013 @10:36PM (#6267340)
I've heard of it, but the only reason you would bother with server-side javascript is if you were writing for the browser and had of browser-side javascript code to work with also. Does anyone choose javascript just because it is the best language from a productivity standpoint...for an application completely unrelated to the browser?
Re:C++ and the Culture of Complexity by mpyne on Friday August 23, 2013 @10:54PM (#6267389)
I've not used Node.js, but given that it runs on the other side of the HTTP network barrier (where you could have run Python or Go just as easily) it seems that the answer is yes, people really do use Node.js for non-browser applications.
Re:C++ and the Culture of Complexity by seanmcdirmid on Friday August 23, 2013 @11:58PM (#6267552)
I would love to see some examples.