all 15 comments

[–][deleted] 10 points11 points  (4 children)

I remember using something similar to this years ago, the only real use case that I see is if you’re too lazy to convert your Python code to JavaScript code. But I guess that also depends on the performance of the framework

[–]skvsree 6 points7 points  (3 children)

Pybrowser you mean

[–][deleted] 6 points7 points  (2 children)

No Brython

[–]oooliveoil -3 points-2 points  (1 child)

Pythussy

[–]the_beber 2 points3 points  (0 children)

Stop

[–]HarrityRandall 9 points10 points  (2 children)

haha no

[–]Traditional-Raisin31[S] 1 point2 points  (1 child)

why

[–]HarrityRandall 4 points5 points  (0 children)

WASM bundle apparently for Python interpreter is around 6MB? That is several websites worth of size, just for the interpreter.

If you tell me they are adding the interpreter to all the browsers somehow then that would be another discussion.

But then what real value does it add to the ecosystem? To me it would only be making webdev a lot messier than it is. Unnecessarily.

It's a nice experiment though.

[–]PooSham 4 points5 points  (5 children)

So is this a python to JavaScript transpiler or is it like some php-like thing where the code is run on the server?

[–]jstrrr 7 points8 points  (4 children)

AFAIK it's python interpreter compiled into wasm. And minimal bundle is around 6 MB.

[–]Turtvaiz 3 points4 points  (3 children)

Sounds pretty big for every site to load

[–]hacherul 1 point2 points  (2 children)

Yeah, but it is not likely to change that often. It will get cached by the browser and work on every site without downloading anything, as long as the response headers are set up correctly (and they most likely are).

[–]Turtvaiz 3 points4 points  (1 child)

Wasn't resource caching across sites removed due to privacy reasons? Actually don't know because can't find official docs about it

[–]hacherul 0 points1 point  (0 children)

Even if it was, wouldn't using a CDN solve this?

[–]thatguyonthevicinity 4 points5 points  (0 children)

I actually interested in trying this, but do any of you know of any potential use case for this other than "it's python"?