TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

163 pointsby watchdogtimerabout 3 years ago

9 comments

BiteCode_devabout 3 years ago
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 未加载
jlundbergabout 3 years ago
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 未加载
dublinabout 3 years ago
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 未加载
facorreiaabout 3 years ago
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 未加载
Joyfieldabout 3 years ago
Small &quot;k&quot; for kilo and big &quot;b&quot; for byte.
评论 #31440203 未加载
mc4ndr3about 3 years ago
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.
DeathArrowabout 3 years ago
Cool. So you can use Python on ZX Spectrum
klyrsabout 3 years ago
Since I can never keep it straight...<p>Pika: cute fluffy bunnymouse<p>Pica: the desire to eat inedible stuff
fizxabout 3 years ago
I wonder if this works in webassembly?