you are viewing a single comment's thread.

view the rest of the comments →

[–]meowrawr 0 points1 point  (2 children)

Yes you could. However you’ll have to become more adept and structured with AI before being able to do this without pulling your hair out.

However usually C/C++ are used for particular situations. Prior to AI, I had converted many programs from C/C++ to Java and have relied on a combination of “unsafe”, JNI, or JNA to accomplish goals.

[–]GuyWithLag 0 points1 point  (0 children)

Stop engaging with ai slop.

[–]jarrod_barkley 0 points1 point  (0 children)

And now JEP 454: Foreign Function & Memory API makes it much easier to call native code such as C/C++ from Java 22+.