News for hackers. Stuff that matters.
Re:Pex: A tool for generating .pex (Python EXecutable) files... by SoothingSorbet on Saturday November 16, 2024 @02:05AM (#42154970)
> Java solved it with a JAR file

JARs still require a JRE to run, and the runtime needs to be invoked. The equivalent would probably be a Python zipapp (which are just Python files zipped into a .pyz the interpreter can run).

Static binaries are one advantage that languages like Go and Rust have though, yeah.

Re:Pex: A tool for generating .pex (Python EXecutable) files... by fire_lake on Saturday November 16, 2024 @03:51AM (#42155341)
You can bundle a JRE with a JAR to get a self contained executable.

Also don’t forget that many compiled languages depend on a particular libc so you’re not totally in the clear there.

Re:Pex: A tool for generating .pex (Python EXecutable) files... by 0points on Saturday November 16, 2024 @08:41AM (#42156349)
A JRE + binary deployment weights in over 100 MB.

An ordinary compiled binary would be a fraction of that size, saving you time in provisioning and deployment.

Re:Pex: A tool for generating .pex (Python EXecutable) files... by fire_lake on Saturday November 16, 2024 @12:52PM (#42157760)
Small price to pay if you have a JVM team already.

Most programmers (HN is a bubble) hate learning new languages.