4 ms·
actually, as per the docs the framework is converting python code to Javascript. So you would need to JS skills to debug. Most of the problems in web front hav
by RonnieOwnsLexus 4y ago
actually, as per the docs the framework is converting python code to Javascript. So you would need to JS skills to debug.
Most of the problems in web front have been solved in JS (think CSS styles, state management)
re-writting it in python would be pain, especially when everything compiles to js
- picklelo 4y agoOur goal is for the user to never have to see JS. We try to catch most errors in Python during compile time. We're also not trying to reinvent things like CSS styles, just make them accessible in Python.
- tasuki 4y ago> We try to catch most errors in Python during compile time. I feel Python is not the best language for catching most errors during compile time.
- picklelo 4y agoWe're using Pydantic and our compiler has custom type-checking on top of Python to catch these issues.
- grift_economy 4y ago[dead]
- moffkalast 4y agoThat's not gonna happen if they have to solve browser runtime errors. And with there being so much variance between browsers and random nonsense to hack around, how can you possibly get around that? Besides, python and js are so similar it's really funny to see people not wanting to use one but cling to the other.
- alanbernstein 4y agoThe available libraries are quite different between the two languages.
- moffkalast 4y agoDoes this thing also convert python libraries for use on the web? Can it compile say keras or pytorch to javascript? I guess that would indeed be super neat to have on the browser client side.
- alanbernstein 4y agoI don't know much about Pynecone, but that is indeed what pyodide does: > These include many general-purpose packages such as regex, pyyaml, lxml and scientific Python packages including numpy, pandas, scipy, matplotlib, and scikit-learn. Again, not super familiar, so I don't know the level of effort required to support these libraries. Maybe adding pytorch would be infeasible, maybe they just need enough people to express interest. https://pyodide.org/en/stable/ https://pyodide.org/en/stable/
- aatd86 4y agoState management hasn't really been solved. Hence the whole debate about signals vs no signals last week. :)
- shrimpx 4y agoI didn't catch that and can't find it, got a link?
- wartijn_ 4y agohttps://news.ycombinator.com/item?id=35095115 https://news.ycombinator.com/item?id=35095115
- orangepurple 4y agoXState is the bee's knees if you're writing any Javascript https://stately.ai/viz/2ac5915f-789a-493f-86d3-a8ec079773f4 https://stately.ai/viz/2ac5915f-789a-493f-86d3-a8ec079773f4