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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why Python in the Browser Isn't Enough

4 点作者 meredydd将近 4 年前

1 comment

rektide将近 4 年前
I&#x27;ve been looking for a shell written in a vaguely browser-friendly programming language, knowing a huge amount of the really well discussed platform differences would immediately rear up &amp; be difficult (there are good efforts like Lightning FS[1] to begin to rebuild some fs platform on the web, &amp; the web is rapidly advancing it&#x27;s own implementations, _yay!_).<p>one of the first i ran into that i liked was Oil Shell. i recommend the Tour of the Oil Language[2] which recently made the rounds &amp; seemed like a great introduction to the language: it really makes me want to bring shell&#x27;s cool&#x2F;friendly way of doing things to programming in general! and Oil was Python... ish. which seemed semi a little maybe like it could some day go ~~somewhere~~ on the web.<p>the story alas trails off. Oil Language seems to pretty intensely hack up the CPython interpreter, via &quot;Dev Log #7: Hollowing Out the Python Interpreter&quot;[3]. it&#x27;s been a bit since i&#x27;ve toured the out of this world excellent blog on shell-scripting, posix, languages that is the Oil blog[4], but it has BY FAR the best discussion i&#x27;ve ever read on shells, doing enormous &amp; lovely work to set high level context, discuss shells in general, to detail implementation wins &amp; gains &amp; changes... it hits upon everything, and is fantastically well written. Off topic for the discussion at hand, but seeing the Tour of the Oil Language go by recently really rekindled my love for this python-derived shell, and makes me ever more eager &amp; hungry for getting a shell-like environment running in the web.<p>But again: read the Oil language&#x2F;shell blog[4]: it&#x27;ll totally rebuild how you think about shells, and it&#x27;s a hugely entertaining technical travelogue!! Wish, like this post, it was more likely to be web-compatible.<p>[1] <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;@isomorphic-git&#x2F;lightning-fs" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;@isomorphic-git&#x2F;lightning-fs</a><p>[2] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27876140" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27876140</a><p>[3] <a href="http:&#x2F;&#x2F;www.oilshell.org&#x2F;blog&#x2F;2018&#x2F;11&#x2F;15.html" rel="nofollow">http:&#x2F;&#x2F;www.oilshell.org&#x2F;blog&#x2F;2018&#x2F;11&#x2F;15.html</a><p>[4] <a href="http:&#x2F;&#x2F;www.oilshell.org&#x2F;blog&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.oilshell.org&#x2F;blog&#x2F;</a>