r/AskProgramming • u/ur_nighmare • May 23 '26
Python or Java
im in my last year and figuring out which programming lang is for me but confused betn java and python i love both cause im comfortable with both but want to focus on one which one of them is best suited in future too.
things i know: python is readable and easy than java
python is used in ai because of its simplicity
java is suitable for secure appln(banking sys)
5
Upvotes
View all comments
Show parent comment
1
u/Psy_Fer_ May 23 '26
Yea you would get similar with python wrapping C code too. Many python Libraries are actually just C or they ship the hot stuff out to C. You will see that pattern all over the place in software. Like R packages are pretty much any language but R and R is just the glue. Pretty much all of machine learning in python is C++.
A lot of Rust libs are FFI bindings of C/C++ code. When I see that for a crate I want to use in my field, I've started rewriting them in pure rust and I've seen some pretty nice speed ups as well as taking the time to make them more feature complete.