T O P
BoringWozniak

The very suggestion of that sounds like a crime against humanity


AggravatedYak

This sounds like the weird opposite of a template. Could one do: python → framework → template → html → pyscript (→ js) →python? If yes, how often? [I guess it would be a way of cheating to use subprocess](https://javascript.plainenglish.io/how-to-run-python-script-using-node-js-6b351169e916?gi=1d0c2b9ac3cb)


kingscolor

Yes. From https://pyscript.net: > Python with JavaScript: Bi-directional communication between Python and Javascript objects and namespaces


subiacOSB

From what I’ve heard you can access JavaScript and Python name spaces. I’ve yet to play with this. Someone might have more info on this.


Dry_Back_1116

ah I see, same! looking more in to it today! lets see how it goes ;)


Lazy-Substance-5161

I asked the same question. Yes, we are going to hell


Traditional-Raisin31

i have seen all your comment 😂... don't worry about it... it will be a great framework ![img](emote|t5_2qh0y|603)


Dry_Back_1116

it is going to be a good framework haha


iyeetuoffacliff

yes, yes you can


ZestycloseVisual7250

I think the real question would be: But can it run crysis?


KevinAlexandr

But can it run ~~crysis~~ doom?


janek3d

What about Skyrim?


[deleted]

/r/YourJokeButWorse


sneakpeekbot

Here's a sneak peek of /r/YourJokeButWorse using the [top posts](https://np.reddit.com/r/YourJokeButWorse/top/?sort=top&t=all) of all time! \#1: [Bruh](https://i.redd.it/b9eky1xwyc541.jpg) | [87 comments](https://np.reddit.com/r/YourJokeButWorse/comments/eca932/bruh/) \#2: [Yes, that was the implied joke](https://i.redd.it/ecbw0t1ef9t31.jpg) | [46 comments](https://np.reddit.com/r/YourJokeButWorse/comments/djkigt/yes_that_was_the_implied_joke/) \#3: [Explaining the joke yields more upvotes and gold. Every. Single. Time.](https://i.imgur.com/YBvLNTP.jpg) | [145 comments](https://np.reddit.com/r/YourJokeButWorse/comments/e5ee5o/explaining_the_joke_yields_more_upvotes_and_gold/) ---- ^^I'm ^^a ^^bot, ^^beep ^^boop ^^| ^^Downvote ^^to ^^remove ^^| ^^[Contact](https://www.reddit.com/message/compose/?to=sneakpeekbot) ^^| ^^[Info](https://np.reddit.com/r/sneakpeekbot/) ^^| ^^[Opt-out](https://np.reddit.com/r/sneakpeekbot/comments/o8wk1r/blacklist_ix/) ^^| ^^[GitHub](https://github.com/ghnr/sneakpeekbot)


[deleted]

/r/YourJokeButWorse


menge101

Do we have an idea what browsers support it? Particularly in the mobile space.


ltdanimal

Its everything that supports WASM I believe. So https://caniuse.com/wasm


Conditional-Sausage

From what I read, it's only been tested properly on Chrome


LakeEffectSnow

I thought access to localStorage and sessionStorage was a browser thing that JS interacts with. If that's the case, you'd just need a python api to hit those browser data stores.


Marcostbo

Yes and it is beautiful


AggravatedYak

For what have you used it so far?


[deleted]

[удалено]


jppbkm

Huh, I tried running a number of the examples in my Chrome browser and only a couple of them worked.


Human-Helicopter-684

What is the usual use case for you?


Dry_Back_1116

ah nothing specific for now, just exploring and trying it out ;)


Trenix

You guys think this will replace javascript?


etrotta

No, not even close.


PotentiallyAPickle

No, definitely not. The download size for any other libraries you want to use drastically slows the loading of the page. It’s a cool tool that definitely has its uses but it seems like just a gimmick at this point


roamn

The same could be said for JavaScript. Modern websites load a buttload of js frameworks.


joe_ally

But modern javascript bundlers include tree shaking which reduce the effect of this is drastically. Only the necessary functions are included in the final bundle. Unless someone builds some kind of bundler with tree shaking for python the additional libraries will be a significant download burden. Much more so than for javascript.


PotentiallyAPickle

The same can not be said. Well it can, but they'd be wrong. JS frameworks do not come out to be anything close to the size of Python and whatever libraries one decides to use. Numpy is 11MB, Pandas 5MB, OpenCV is 90MB. I can't find any libraries that are the reason you'd want to use Python that are not MBs in size. EVEN PYTHONS STANDARD LIBRARY IS 30MB UNPACKED React is 110KB, Vue around 60KB, Angular 2 gets closer to 1MB but still doesn't go above that. So even a 'buttload' of JS Frameworks kneels in comparison to the size of a useful set of Python libraries. Beeg. Snek.