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.

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

70 pointsby rahil627about 2 months ago

9 comments

throwaway81523about 2 months ago
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 未加载
jononorabout 2 months ago
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.
calebhabout 2 months ago
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 未加载
aidogabout 2 months ago
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 未加载
xutopiaabout 2 months ago
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>
TkTechabout 2 months ago
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>
bsderabout 2 months ago
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 未加载
rahil627about 2 months ago
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 未加载
actionfromafarabout 2 months ago
Time to mention Shedskin Python to C++ compiler!