News for hackers. Stuff that matters.
Re:C++ is a hack by exelius on Tuesday February 16, 2016 @12:18PM (#11111415)
Ok -- but I don't think anyone legitimately holds on to C++ as an example of a great, well-designed language. C++ has existed for a long time, and the corporate world has increasingly moved away from C++ because it doesn't offer enough object-oriented goodness while tying you down to a certain memory management style with a difficult to use typing/inheritance system.

Pick any modern OO language: Java, Ruby, Swift, hell, even Python. They are all far easier languages to write in than C++, have much better library support, and don't make you dive into memory management hell.

IMO C++ is syntactically very difficult, and the language too far out of touch with the architecture patterns and styles used by programmers today.

Re:C++ is a hack by autoreleasepool on Tuesday February 16, 2016 @12:28PM (#11111505)
Pick 2

- great idea

- great design

- great execution

I think C++ was great idea that was masterfully executed, but suffers from a chaotic overall design.

Re:C++ is a hack by LanguageGamer on Tuesday February 16, 2016 @12:23PM (#11111469)
C++ is a mess, but Java, Ruby, Swift and Python aren't viable options if your software is performance sensitive.
Re:C++ is a hack by austinsharp on Tuesday February 16, 2016 @12:49PM (#11111703)
Java is pretty viable if you are performance sensitive but not HFT or video game performance sensitive. It's certainly far ahead of Ruby and Python, at least.

It's not as fast as C++, but C++ isn't as fast as assembly, either. They're at different points on the tradeoff curve - HOW performance sensitive are you? It's not a binary choice.

Re:C++ is a hack by exelius on Tuesday February 16, 2016 @02:05PM (#11112284)
Java is totally viable for nearly anything; it just doesn't work well for games because they require low-level access to graphics hardware (which is definitely not something Java supports).

Also, the state of the JVM on the desktop is kind of sad - also from the graphics perspective. But Java is probably the most performant server-side language out there at this point (if you exempt the masochists who write network code in C/C++).

Re:C++ is a hack by albinofrenchy on Wednesday February 17, 2016 @11:34AM (#11119009)
Java isn't viable for anything that requires low latencies and predictable throughput. Really, no GC language is.
Re:C++ is a hack by pkolaczk on Tuesday February 16, 2016 @01:00PM (#11111783)
There are companies using Java for HFT now as well.
Re:C++ is a hack by rootlocus on Tuesday February 16, 2016 @01:13PM (#11111862)
I'm actually working for such a company. Peter Lawrey is a renowned advocate for efficient use of java in HFT.
Re:C++ is a hack by pkolaczk on Tuesday February 16, 2016 @12:58PM (#11111779)
For high performance server-side software, Java is definitely a viable option nowadays.
Re:C++ is a hack by en4bz on Tuesday February 16, 2016 @12:27PM (#11111496)
> IMO C++ is syntactically very difficult

Are you sure you don't mean semantically difficult. With the exception of a few dark corners (meta programming, function pointers) the syntax is basically the same as another language. Learning that && denotes an rvalue reference is easy. Trying to understand what that means though is a lot more difficult

Re:C++ is a hack by dfox on Tuesday February 16, 2016 @12:54PM (#11111745)
Actually, C++ syntax is so complex that you cannot use parser generators to parse it as it's grammar is not context-free. There are even some informal proofs that C++'s syntax is undecidable (as is Perl's and Common Lisp's, where it's obvious).

C++ semantics is completely another can of worms.

Re:C++ is a hack by rootlocus on Tuesday February 16, 2016 @01:50PM (#11112167)
Visual Studio has barely implemented a rename refactor into their flagship C++ IDE. Last time I checked, it was still in a sort of 'beta / try at your own risk' stage. Compared to this, IntelliJ IDEA is light years ahead.