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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Mruby/C and picoruby: high level langs in low-level devices?

70 点作者 rahil6272 个月前

9 条评论

throwaway81523大约 2 个月前
No idea about mruby&#x2F;C or picoruby but MicroPython is very popular, enough that I&#x27;d just settle on it for devices can handle it. It runs nicely in 256k of flash and 32k of ram, on the small adafruit trinket devices. It was shoehorned into the v1 BBC microbit which had 256k of flash and just 16k of ram, but that was apparently painful.<p>Smaller include Lua and maybe Hedgehog Lisp. Below that there is ulisp but that is sort of a toy. Also there is Javacard and J2ME depending on device size.<p>Below that you&#x27;re probably best off forgoing garbage collection and using Forth or a cross compiled language.
评论 #43469600 未加载
jononor大约 2 个月前
Will have to look closer at picoruby. I do love MicroPython development. One support thing is how easy it is to combine with C, because to get the most out of microcontroller devices one really needs to use low-level languages from time to time.
calebh大约 2 个月前
I&#x27;m the developer of Juniper, a functional reactive programming language for the Arduino. It&#x27;s very possible to run high level code on small devices. This even includes things like closures, which Juniper allocates on the stack!<p><a href="https:&#x2F;&#x2F;www.juniper-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.juniper-lang.org&#x2F;</a>
评论 #43479933 未加载
aidog大约 2 个月前
picoruby is a lot of fun. It&#x27;s a reimplementation of mruby&#x2F;c which is even smaller. You might be interested in my friend and creator HASUMI Hitoshi&#x27;s presentation. He shows off his Ruby REPL that runs on the Raspberry Pi pico. Recently he ported picoruby to other microcontrollers.<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;WxZNE5zTAjg?si=7DQUcQg80RMZoU0b" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;WxZNE5zTAjg?si=7DQUcQg80RMZoU0b</a>
评论 #43469615 未加载
评论 #43469633 未加载
xutopia大约 2 个月前
You can look at the documentation on their web site too: <a href="https:&#x2F;&#x2F;picoruby.github.io" rel="nofollow">https:&#x2F;&#x2F;picoruby.github.io</a>
TkTech大约 2 个月前
If this kind of stuff interests you, you may also like micropython[1], which is currently overwhelmingly dominate in this niche.<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;micropython&#x2F;micropython" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;micropython&#x2F;micropython</a>
bsder大约 2 个月前
256KB ROM&#x2F;128KB RAM isn&#x27;t very small.<p>That is larger than the average computer through about 1990 ...<p>(I know people will say I&#x27;m being pedantic. However, RAM and Flash define most of the price of a microcontroller. So, a factor of two--especially in RAM--means a significantly smaller and cheaper chip.)
评论 #43464593 未加载
评论 #43465006 未加载
rahil6272 个月前
some people hate to use C. Some people embrace it, even love it (including many game devs!). You have full control! But i wonder, what do HN folks think about these pico implementations of ruby, a complex language made for the tiniest devices, such as sensors? I mean.. is C really that bad??<p>also, it&#x27;s very cool they&#x27;re still being maintained!
评论 #43463355 未加载
评论 #43466897 未加载
评论 #43465033 未加载
评论 #43463927 未加载
评论 #43463591 未加载
actionfromafar大约 2 个月前
Time to mention Shedskin Python to C++ compiler!