« first day (3653 days earlier)      last day (1299 days later) » 
05:00 - 20:0021:00 - 23:00

9:36 PM
You know what would be cool
<ul repeat="for item in list">
    <li key="i" onclick="view(i)">
        {item.name}
    </li>
<ul>


class Component:
    def __init__(self, **props):
        self.list = self.props.list

    def view(self, item):
        alert(item)
 
You already have that functionality from Jinja
 
Sorry I was editing
Anyways I see that webassembly has been really coming full circle
It would be cool if we could get Python running natively in the browser and have a fully scalable frontend framework in Python
 
I don't follow that code. We have web frameworks but that is a mishmash
 
Much in the same way C# works with Blazor but with the Python syntax we know and love
 
Why does the front-end have to be scalable?
 
9:41 PM
We love C#? What is your point here because I'm losing patience?
 
Maybe not what I meant more so meant "not experimental"
huh????
 
@roganjosh that's not what they said :P
 
Anyway point is it might be cool to have a Python frontend framework
 
True, I'll shut up for a bit, sorry
 
That runs natively in the browser
 
9:42 PM
I saw a talk about python in the browser years ago. I think there are multiple projects trying to make that happen.
 
@roganjosh Mishmash is fine because of transpilers (much like React uses for JSX)
Anyway its syntatic sugar no matter the framework
Even in JavaScript
 
it already exists. I can't remember the name of the framework. Give me a min
 
Ya I saw Brython but from what I can tell it's really just a JS polyfill
 
python is syntactic sugar
 
Ya ofc lol
 
9:44 PM
Heh, you beat me to it. It seems misguided but <shrug/>
 
If we can get it to compile to C faster on the browser and run with wasm it would be cool
 
Isn't it an XY problem that Brython solves?
Stuff doesn't need to compile to C from the browser if the backend leverages C, no?
@MalikBrahimi I'm still going full-circle and suggesting that jinja2 solves this
 
10:44 PM
Firstly a templating engine means nothing on it's own
You still need a web framework to inject a context into that template via its middleware
Secondly, as of now these are server rendered templates
I'm talking about having a native Python client side framework
 
05:00 - 20:0021:00 - 23:00

« first day (3653 days earlier)      last day (1299 days later) »