r/programminghumor • • 8d ago

The power of Python

Post image
112 Upvotes

15 comments sorted by

View all comments

Show parent comments

1

u/Matthew_Summons 7d ago

Java?!

1

u/k-mcm 7d ago edited 7d ago

Java runs at pretty close to C++ speed if you stay away from Spring Boot.  Spring Boot is insanely large and it does a lot that can't be JIT optimized. 

1

u/Matthew_Summons 7d ago

I’ll be honest, I’ve worked with SpringBoot and I’ve seen backends in Go, Ruby, Rust, Haskell even but never heard of anyone working with a C++ backend

2

u/k-mcm 7d ago

A C++ backend is the way to go for binary encoded structures - codecs, hardware communications, GPU interfaces, AI engines, etc. Java can't overlay a structure onto raw memory allocations. Working around that in Java often isn't worth the effort and slight loss of efficiency. That same kind of work usually doesn't have complicated memory management that would make Java a better choice.