TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Python in the browser

43 点作者 r11t大约 15 年前

9 条评论

alttab大约 15 年前
Silverlight... with "performance" stuff in C#? What kind of client-side scripting is going on that we need to push it down to C#?<p>Javascript does a great job manipulating the DOM, especially with Prototype and the like.<p>Having a stronger scripting language in the browser like python (even ruby?) would be great if it didn't come at a significant cost and increased performance. If you'd ask anyone who spends a significant amount of time writing js code, they'd want it faster. Not Python that is built on top of a proprietary engine (plugin based!), that uses... JAVASCRIPT to embed it.<p>On top of that, the python code looks semantically identical to DOM manipulation in Prototype. So really the only thing you've gained is "writing client code in python" while dumping proprietary formats and a huge initial download on your users. I'll excuse myself as sensationalist when I say that it seems a little selfish on the developer's part.
pingswept大约 15 年前
This was quite interesting, until, "This is because Silverlight is the Python execution engine."
euccastro大约 15 年前
And now, Python in the browser without Silverlight (i.e., on pure JS):<p><a href="http://www.skulpt.org/" rel="nofollow">http://www.skulpt.org/</a>
评论 #1202192 未加载
asmosoinio大约 15 年前
"Python in the browser" ... with Silverlight.
daeken大约 15 年前
As much as I love .NET, I just can't get excited about Silverlight. When you require your users to install a new plugin, it raises the barrier to entry pretty significantly -- especially when you're talking about technical users.<p>Personally, I took a different route: I created a Python-&#62;Javascript compiler with a real macro system. Allows me to quickly hack damn near anything together and keeps me away from JS (which I can't stand, largely for aesthetic reasons), without imposing anything at all on my users.
评论 #1201772 未加载
mclin大约 15 年前
I find JavaScript and Python are more similar than they are different.<p>Coming from Python, learned JavaScript, felt right at home. (just have to remember the vars, {}s and ;s)
njharman大约 15 年前
This is interesting in a very narrow niche. But even being a Python fanboy I'm more likely to bring JS into the server than Python into the browser. It just makes huge piles of sense.
silversmith大约 15 年前
1.5 MB, even if one-time only (assuming no cache-cleaning on client side), is quite heavy. Too heavy for vast majority of web applications.
评论 #1201051 未加载
评论 #1201794 未加载
评论 #1201120 未加载
jdietrich大约 15 年前
What an ugly hack.