Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My question is: if you can code in C++, why should you write C++ on top of GraalVM instead of going native (and faster)?


Because to code in C++ with the safety of Java, specially in distributed computing scenarios, I have to make people go through this.

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

https://docs.microsoft.com/en-us/cpp/code-quality/?view=vs-2...

And most of the time is a lost battle to force people to change, so it is easier to bring in people that have other culture towards security when plugging software into the network.

As for GraalVM support for LLVM, that is mostly for language interoperability purposes.


Because is my case Java is the only language with libraries that implement all the rare needs I have. And because I need to create an application with the smallest memory footprint possible. And in my best attempt at it, I use a Rust Webserver that use a static GraalVM compiled Java library containing all the business code thus eliminating the fat Java http/web libs, so I have a lower exe footprint that translate is smaller memory footprint because executable are loaded in memory at one point.


Because Java is much cheaper in terms of development time and HR


well I disagree with this. You can waste a lot of time, especially in the debug phase, due to runtime errors not caught at compile time


Debugging Java is easier than C++ though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: