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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Pikascript: An ultra-lightweight Python engine that can run in 4Kb of RAM

163 点作者 watchdogtimer大约 3 年前

9 条评论

BiteCode_dev大约 3 年前
Interesing project, but I wish it would show me more about what doesn&#x27;t work.<p>The bottom of the readme indicates the list of control flow instructions it supports, but it would be convenient to have in the table the ones it doesn&#x27;t as well: yield, yield from, with, try&#x2F;excep, match, lambda...<p>Does it support &quot;else&quot; in loops? Does it support unpacking?<p>Hard to know how much Python does this Python does.<p>Good luck to the project though.
评论 #31439971 未加载
jlundberg大约 3 年前
For those who find this interesting, be sure to check out MicroPython:<p><a href="http:&#x2F;&#x2F;micropython.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;micropython.org&#x2F;</a><p>It’s super fun to use the built in interpreter over serial connection with say a Raspberry Pi Pico.
评论 #31438615 未加载
dublin大约 3 年前
But is it really Python if it doesn&#x27;t have dictionaries? I&#x27;d argue No - they&#x27;re the fundamental data structure of the language (like tables in Lua, arrays in FORTRAN, etc.).<p>Pikascript could be useful, but it seems to me it&#x27;s either a castrated Python, or more positively, a minimalist embedded scripting environment with Python-like syntax. But it&#x27;s not Python.
评论 #31440323 未加载
评论 #31436809 未加载
facorreia大约 3 年前
This got me wondering what other scripting languages folks use in embedded, low memory setups. I found this about Lua: [1]<p>[1] <a href="https:&#x2F;&#x2F;nicksypark.medium.com&#x2F;the-feasibility-of-the-embedded-software-development-with-lua-programming-e37c409c3c19" rel="nofollow">https:&#x2F;&#x2F;nicksypark.medium.com&#x2F;the-feasibility-of-the-embedde...</a>
评论 #31441604 未加载
评论 #31441998 未加载
Joyfield大约 3 年前
Small &quot;k&quot; for kilo and big &quot;b&quot; for byte.
评论 #31440203 未加载
mc4ndr3大约 3 年前
Upvote. Stupid and really cool at the same time haha.<p>A nice migration path for existing Python apps to eventually be rewritten in leaner languages.
DeathArrow大约 3 年前
Cool. So you can use Python on ZX Spectrum
klyrs大约 3 年前
Since I can never keep it straight...<p>Pika: cute fluffy bunnymouse<p>Pica: the desire to eat inedible stuff
fizx大约 3 年前
I wonder if this works in webassembly?