3 ms·
I really hope a modern language can take over many features of C++ without its added complexity. Potential candidates: Rust, Julia, Swift. All three are moder
by kensai 7y ago
I really hope a modern language can take over many features of C++ without its added complexity.
Potential candidates: Rust, Julia, Swift.
All three are modern languages with modern concepts. I have high hopes especially for Julia.
- nevi-me 7y agoPlease excuse my lack of knowledge, but is Julia gen-purp enough to replace C++? Can I write a hypothetical kernel with it, or a game?
- cshenton 7y agoGame? Sure, if you’re willing to spend a non trivial amount of time integrating with a graphics API, but that’s true of most non C++ languages. Kernel? Probably not, AFAIK there’s no subset of Julia that can run without an OS (like for rust and C++).
- psychoslave 7y agoTo me it seems obvious that you can write any application using any Turin-complete language. So the question seems more like "how convenient would it be to write a kernel or a game using Julia and with which performance impact?" For games, it will highly depends what kind of game, of course. Assuming cutting-edge 3d-graphic intensive video-game, it will be probably not be your language of choice, especially regarding available out of the box libraries. For implementing Tetris, I guess you make it in any language for sufficient performance. :)
- pjmlp 7y agoSwift is only a candidate in the context of Apple OSes, and yes Apple does position it as such on the Swift documentation. Outside Apple platforms, maybe Rust, but it still found lacking in tooling and libraries versus what C++ offers, specially in graphics programming, GPGPU, embedded platforms, and IDEs. Maybe now that Microsoft is looking into it, we might get Visual Rust of some sort. Julia is more a replacement for Python than anything else. Then if having a GC around is not a problem for the task being solved, there are plenty of alternatives out there, Java, C#, F#, OCaml, Haskell, Lisp, Scheme, ....