Antonio Cuni

Results 220 comments of Antonio Cuni

> I've been looking into how to use the `script` tag but really have no idea how to implement it. It does exactly what we need: Yes, but keep in...

> True, but I meant using something like `class PyScript extends HTMLScriptElement {` here. Does `HTMLScriptElement` contains `script`? But anyways I think you might be right about 2? Not sure...

uh, I might have found "something". I'm undecided whether it's a brilliant solution or a horrible hack. So, the main point of #329 is that `` is too verbose and...

> What's the goal? avoid making a confusing mess that we will never be able to fix because it will be too late. The problem with the current approach is...

> We can add attributes to py-script (async,worker,scope), but we cannot do that to the script tag. why not? I think that you can always add custom attributes to standard...

**Proposal for a refactoring** The execution logic described above is a bit messy and it's not obvious to follow what's going on. Let's try to determine a high-level summary of...

**Examples of plugins** The following code shows more or less how to implement the current logic with the plugin system defined above: ```typescript class PyodidePlugin extends Plugin { configure(config) {...

**Open questions** - sync or async? The code above is mostly sync, apart when we wait for the runtime to fully load. Maybe it's a good idea to declare all...

Let me answer to various questions one by one. reply to @FabioRosado > Should we wait for runtime before we start iterating over the plugins? I'm asking because this will...

> My biggest concern with this approach, though, is the asynchronous nature of how things unfold... yes, I agree. That's why I asked "how do we sync between the various...