logoalt Hacker News

Mruby: Ruby for Embedded Systems

62 pointsby nateb2022last Monday at 5:00 AM17 commentsview on HN

Comments

pansa2today at 8:54 AM

Mruby isn’t aimed at embedded systems, it’s “lightweight Ruby” intended to be embedded within a lower-level application. The language it’s most similar to is Lua.

My gut feeling comparing the two is that mRuby is a better (or at least less “quirky”) language, but Lua has a better (more robust) implementation. I don’t know how the two compare in terms of performance or “lightweight-ness”.

Lua definitely seems to be more widely-used, at least outside Japan.

show 3 replies
sea-goldtoday at 1:19 PM

Previous discussions:

April 2012 (55 comments, 174 points): https://news.ycombinator.com/item?id=3866555

Asmod4ntoday at 1:01 PM

The one thing I like the most about mruby is the way you can ship apps.

When you normally want to ship apps which are written in Java, C#, python etc. you have to tell your users they have to download that runtime and your deps and how to start the runtime and which args to start your app from the command line.

With mruby you can just ship one file and everything is self contained.

show 2 replies
js4evertoday at 1:49 PM

Looking for a good tutorial about Visual Basic for Real time rocket guidance, any repo you can recommend?

nateb2022last Monday at 5:00 AM

Also worth a mention: mruby/c (https://github.com/mrubyc/mrubyc), which is an even smaller ruby for single-chip microprocessors

Broussebartoday at 8:46 AM

The best use case for Mruby I saw is this talk: "Developing your Dreamcast games with mruby"[0] by Yuji Yokoo

[0]: https://m.youtube.com/watch?v=ni-1x5Esa_o

show 1 reply
riffrafftoday at 12:36 PM

IIRC MRuby is also used as the implementation for the DragonRuby game engine[0]

[0] https://dragonruby.org/

sethammonstoday at 9:45 AM

/me tips fedora: "m'ruby"

I'm sorry, first thing that came to mind.

grimgrintoday at 8:57 AM

also possibly interesting to some is the cosmopolitan libc inclusion:

https://github.com/mruby/mruby/pull/6681

sillyboitoday at 8:35 AM

Let's call it Murby :)

show 1 reply
quapstertoday at 12:20 PM

[flagged]