Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@halfflat 'cuz java is simple and easy af? Just like the example in the post here?
-
ok, you'd then use cython and compile your python to c/c++ for whatever platform and rule that fat java all day everyday
-
vane112805yWhen I use docker I do the same and don’t care about dependency hell.
- make image
- push to container registry or export
- pull image from registry or import on any machine with docker and run like you want
Use containers and leave servers alone. -
@vane i like your approach, except I need the util I am building to be easily shell-scriptable. Ergo: easy to call, easy to deploy. Docker seems somewhat overkill..
-
olback109815yYou still need Java installed. Use Rust, compile to machine code and never worry about runtime or dependencies ever again.
-
Uhm, you can pack your py deps into a wheel and deploy it without Internet. For the old eggs I don't know.
-
Ah yes the launguage that changes every singe fucking fuction and class every single version...
Just use microsoft java and leave oracle java to power minecraft for the end of time. -
@netikras
deliver one fat jar? you fat bastard.
Always deilver a zipped up version of your jar + another zip dependcy jars, packged with a script. So you don't have to redeploy a 1.6gb file every time!
this way you only have to deploy your 15kb crappy java jar.
ffs. stupid devs. every fuken time. -
Parzi88335y`pyinstaller --onefile` nice try oracle, i see right through your ruse
now stop hijacking dR accounts and admit you're bad at making languages
Python haters, gather 'round
oh come on... In java it's all simple as 123. You build an app, you have like 200 dependencies, you pack it all in a single fat jar and only deploy that single .jar. Don't need no internet, no installs, no pip, no nothing: just your .jar file and the JVM.
So java:
- build an app
- use 200+ deps
- build your whole project into a single fat jar
- deploy your jar in the env
- install [*khem khem* scp into the server] jre
- run
Now let's look at py, shall we?
- build an app
- use 1 dep
- deploy all the 20 .py files in the env
- make sure you have internet access
- install python
- install pip
- pip install <my dependency>
- run your app
rant
python vs java