News for hackers. Stuff that matters.
Re:Comparing Rust and Java by levemi on Monday February 29, 2016 @03:24AM (#11194247)
I'm writing OpenGL code. I know lots of languages claim support for OpenGL, but in my opinion dealing with gpu stuff is something best written in C or C++. All the guides, all the answers to questions, all the popular books, everything out there assumes you're using C or C++ when you're working with GPU code. It's fine. I like using C++ for this. OpenGL in any other language and you're a second class citizen at best.
Re:Comparing Rust and Java by hauleth on Monday February 29, 2016 @06:41AM (#11194880)
Re:Comparing Rust and Java by giancarlostoro on Monday February 29, 2016 @06:37AM (#11194870)
D much like C++ interfaces to C see:

https://dlang.org/spec/interfaceToC.html

D was at one point a C++ compiler but Walter Bright decided to break backward compatibility with C syntactically to allow the language to evolve in ways that C restricts, while still allowing it to interface with C. Sorry if I worded this poorly, but you may want to reconsider D and see for yourself if it feels like a second class citizen or what? There are sample projects interfacing to C projects (LuaD comes to mind).

Re:Comparing Rust and Java by douche on Monday February 29, 2016 @07:14AM (#11194985)
I first heard about D from Gamedev.net, so you can certainly do OpenGL with it. I believe there have even been commercial games written in D.
Re:Comparing Rust and Java by david-given on Monday February 29, 2016 @09:09AM (#11195490)
Kenta Cho's shooter _Torus Trooper_ is written in D and might make a good example. (It's a damn good game, too.)

https://www.youtube.com/watch?v=PJMTQmqxBqg

http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html

Also, ported to Linux: http://www.emhsoft.com/ttrooper/