3 ms·
Inventing a new programming language is hardly sufficient if your existing codebase is 10M lines of c++ :).
by krona 10y ago
Inventing a new programming language is hardly sufficient if your existing codebase is 10M lines of c++ :).
- deleted 10y ago[deleted]
- haberman 10y agoIf we're talking about Google, I think the number is at least one order of magnitude larger. A year ago Google estimated it at 2 billion lines, though that appears to include all languages (not just C++): https://www.wired.com/2015/09/google-2-billion-lines-codeand-one-place/ https://www.wired.com/2015/09/google-2-billion-lines-codeand...
- lmm 10y agoIf the new language has good interop with C++ then it can be.
- vvanders 10y agoLast I looked at Go is was missing pinning and few other things that are necessary for interacting with native code.
- usefulcat 10y agoIt doesn't help at all as soon as you need to do anything that requires compiling those 10M lines of legacy code (think bug fixes, for example).
- ori_b 10y agoGood interop with C++ means parsing and instantiating templates. This means you have a C++ compiler.
- user5994461 10y agoNo language has good interop with C++.
- OlaOst 10y agoThe D language, while not 100% C++ compatible, takes a pragmatic approach to C++ interop (https://dlang.org/spec/cpp_interface.html https://dlang.org/spec/cpp_interface.html)
- the_why_of_y 10y agoNot even C++ has good interop with C++, given how underspecified it is. Is that library built with MinGW or with Visual Studio?