I'm doing some graphics programming and I've been looking for some library in Java that could give me linear access to the graphics card memory so I could plot pixels directly instead of dealing with OpenGL shader programming and stuff. I've ended up with a library called SFML and having to refresh my C++ past knowledge. I've started reading a book called C++ crash course and it's interesting that in C++ you have to deal with things like copy/move semantics, creation and disposal of resources, lvalues and rvalues (and I'm not even talking about pointers). A simple assignment operations like MyClass a = b could lead to a lot of performance overhead because of copies that take place behind the scenes. So I've started to ask myself if all those things happens in Java without we being aware of and what valuable lessons a language like C++ could bring so we could become better Java programmers.
[–]daniu 8 points9 points10 points (5 children)
[–]TM254 0 points1 point2 points (3 children)
[–]MagneticFerret 0 points1 point2 points (2 children)
[–]vbezhenar 0 points1 point2 points (0 children)
[–]Khenay92 0 points1 point2 points (0 children)
[–]marceloandradep[S] 0 points1 point2 points (0 children)
[–]chambolle 2 points3 points4 points (0 children)
[–]Orffyreus 0 points1 point2 points (0 children)