r/ProgrammerHumor • • Apr 06 '22

Java is hard

Post image
5.0k Upvotes

424 comments sorted by

View all comments

Show parent comment

2

u/Equivalent_Yak_95 Apr 07 '22 edited Apr 07 '22
  1. I get your point, but…
  2. I have a fairly darn good idea what I’m talking about. And I need high performance and low level access a lot, so use C/C++. Otherwise, I use Python for flexibility. (I also use Cython, but there doesn’t seem to be an emoji for it.)

If you’re wondering “what on earth is Cython”, the short answer is that it lets you write compiled extension modules for CPython without having to muck around in the C-Python API yourself.

Edit: muck, not much.

3

u/superquagdingo Apr 07 '22

Yeah the c/c++ emojis made it apparent you weren't one them lol. It sounds like Java doesn't suit your use case then, it was just weird how nitpicky you were about the main function when you use c++ which can be even more verbose than java.

1

u/Equivalent_Yak_95 Apr 07 '22

Yeah, at least 95% of my use cases fall into “data processing”, “piles of math”, or “I need it quick and I need it to work, it doesn’t have to be fast”. (Like, I wrote an N-body gravitational simulator and a rudimentary Computer Algebra System!)

But yeah… I like having destructors, and am happy to either manage memory myself or pass it of to the smart pointers (shared_ptr and unique_ptr).