Lurker News

Comments (111) 36 threads

Show all comments

Showing thread 36 of 36

ezekiel111 reply#
why is this written in Go , are there specific features that shine over Python3? I've been looking to learn Go, it seems lot of network intensive software use Go.
rekwah1 reply#
If a selling point is run from "one file", that's quite difficult to do in python. There are things like pyinstaller but you end up shipping the entire interpreter in the bundle.
mypalmike2 replies#
The pex tool lets you build single file python executables which are well suited for server deployments.
ezekiel112 replies#
oh wow thanks i didn't know about this. in that case it would be super simple for me to wrap up a FastAPI server with SQLite or even some in-memory database that runs elsewhere, deliver as a single file!
killingtime74#
You could also just use Docker to wrap anything
mypalmike#
Yeah this kind of thing was common when I worked at Twitter (where AFAIK pex/pants was developed) on an infrastructure team. It's a cool tool that few outside of Twitter seem to be aware of.
mhio1 reply#
How big is a python3 runtime when pex has packaged it up? And do you happen to know what the output binary is linked to?

Continue this thread — 1 reply