|
|
Subscribe / Log in / New account

Introducing PyScript

Introducing PyScript

Posted Jun 23, 2022 9:11 UTC (Thu) by Wol (subscriber, #4433)
In reply to: Introducing PyScript by jokeyrhyme
Parent article: Introducing PyScript

Isn't that a worry, downloading an executable or something like that?

Or maybe they should just implement "core forth" :-) istr that once you had the minimal version running, most of your typical forth system was written in forth. Similar to lisp. So anything that implemented the bare-bones version could download and run whatever runtime the app developer wanted :-)

The more things change, the more they stay the same ...

Cheers,
Wol


to post comments

Introducing PyScript

Posted Jun 23, 2022 11:05 UTC (Thu) by khim (subscriber, #9252) [Link] (2 responses)

> The more things change, the more they stay the same ...

Not really. Things are becoming worse. If you want to do GUI in browser you have to use JavaScript (or something compileable to JavaScript), or else things wouldn't work reliably.

PyScript doesn't do that which, basically, means it would interact poorly with browser extensions, etc.

Means we would have even more flaky and unreliable GUI.

Pity, really: as computers become more powerful and robust the end-user things become ever more finiky and fragile.

Introducing PyScript

Posted Jun 23, 2022 14:13 UTC (Thu) by mathstuf (subscriber, #69389) [Link] (1 responses)

> If you want to do GUI in browser you have to use JavaScript

Is this because the DOM is only accessible through JS APIs? Or is it something else?

Introducing PyScript

Posted Jun 24, 2022 16:29 UTC (Fri) by khim (subscriber, #9252) [Link]

Yes. DOM can only be synchronously accessed by JS.

And if you recall that extensions can (and do) modify DOM while you app is running…

It's possible to write GUI in JS or JS+Something… but at this point battle is already lost: JS is just simpler.

If you want to have some reliable web app then you have to have JS-based “agent” which does actual interaction with DOM and if you have resigned yourself to the fact that you would have part of the code in JS (or something JS-targetable like Dart or TS)… the desire to do GUI in anything else just vanes.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds