News for hackers. Stuff that matters.
Re:All evidence points to OOP being bullshit (2013) by anon4 on Thursday August 27, 2015 @07:44AM (#10128819)
To me, as a C++ programmer, none of this really matters. I'm working on a very compute-intensive program with a lot of modules, used in professional settings. It has to go fast. If using C++ means we can go faster than someone using whatever else, at the expense of needing five times the people and six times the development effort, we'll pick C++. We're interested in the maximum performance achievable with the language, not the average use-case.

Someone would ask "why not assembly/plain C/Fortran/etc.". The answer is that C++ gives you a lot of good ways to structure your code semantically, while still letting you produce tight machine code. That's the real kicker here - I need to reason about my program as an engineering construct running on real hardware, not as an expression of Computer Science algorithms.

In a nutshell, for a new programming language to be a viable way to build our core product, it has to

1. Go Fast and let us Go Faster Than Everyone Else, preferably letting me write platform-specific assembly when I need to

2. Interoperate with C++

I've seen a few recent languages attempt to cover 1., e.g. Go, Rust, Julia, for some use cases. However, I have never seen a language attempt to tackle 2. Not even for the case when you have vanilla classes with virtual functions and a few sane templates.

Re:All evidence points to OOP being bullshit (2013) by tadlan on Thursday August 27, 2015 @08:46AM (#10129041)
Check out Julia ' s Cxx.jl. it's probably the best c++ FFI in any language. You can even evaluation and call cpp code on the fly from the repl
Re:All evidence points to OOP being bullshit (2013) by steveklabnik on Thursday August 27, 2015 @10:28AM (#10129605)
D does some attempt at 2.
Re:All evidence points to OOP being bullshit (2013) by godDLL on Thursday August 27, 2015 @08:45PM (#10133054)
Wait, is there a common ABI for C++? I genuinely don't know.