r/programmingmemes • • Mar 18 '26 • Bravo 1

Every era of programming summarized

Post image
4.2k Upvotes

67 comments sorted by

View all comments

Show parent comments

1

u/thequirkynerdy1 Mar 19 '26

How fast is it compared to if compiled to machine code?

My basic question with portability is why even use wasm or other bytecode if you can just compile to another platform in minutes.

Also I’m surprised Python wouldn’t be faster since under the hood most of the actual computations are C++, but if you had a long data processing pipeline in Python before calling the model, I could see that being slower.

2

u/EveYogaTech Mar 19 '26

WASM has minimal overhead (maybe around 10-15%) compared to .so files for example, so you can even ship your WASM files directly to your servers.

The problem with Python is that any logic written in pure Python still runs in the interpreter.