frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Mruby: Ruby for Embedded Systems

https://github.com/mruby/mruby
28•nateb2022•5d ago

Comments

nateb2022•5d ago
Also worth a mention: mruby/c (https://github.com/mrubyc/mrubyc), which is an even smaller ruby for single-chip microprocessors
sillyboi•2h ago
Let's call it Murby :)
shevy-java•1h ago
I think the name mruby kind of makes sense; we have MRI (matz ruby implementation) so the leading "M" there; we have jruby too. We also have truffleruby which is a bit against that name scheme ... but we could call it truby. Nobody does that, but we could. And MRI could also be called c-ruby. These are not great names though. Murby is also not a great name; it reminds me of Murphy from Robocop though.
Broussebar•2h ago
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

shevy-java•1h ago
I'd like mruby as some kind of fail-save boot system. Ruby powering the operating system as much as possible (ultimately ruby is just syntactic sugar over C, though, so I am fine using C of course).

The lack of documentation means that I'd just waste my time though. Not going to do that.

Also, I think mruby and MRI should not be separate. It doesn't do the project any good. It should be as modular as possible but one code base only.

pansa2•1h ago
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.

shevy-java•1h ago
Agreed. Lua is older though. It was created in 1993.

mruby was created in 2012.

I have only two gripes with regard to mruby.

1) The primary users are C hackers. That's ok, but it means it also leaves out many other people. (Lua has the same problem of course.)

2) Documentation. This is something that really plagues about 90% of ruby projects. And it's not getting any better. It is as if in ruby, only 10% care about documentation - at best. Look at rack, opal, wasm for ruby - the documentation is TOTAL TRASH. Non-existing; look at rack. What a joke.

Now that ruby is following perl in its extinction path (sorry, the numbers are hard and real, there is no way to deny it), the ruby community should instead try to reverse that trend. Instead you see mega-corporations such as shopify pwning the remaining ecosystem and cannibalizing on it or people such as DHH rant about how Europe is collapsing (what the actual ... https://world.hey.com/dhh/europe-is-weak-and-delusional-but-... - we need an alternative to rails, how can anyone still work with DHH? Lo and behold, another shopify guy. The message is so clear for everyone to see now). None of this will of course revitalize ruby. Without an active AND actively growing community, ruby is set to die. I say this as someone who still uses ruby daily; I am tired of the "rumours of ruby dying are exaggerated". Yes, the rumours are exaggerated - but they are not rumours. The numbers are solid. TIOBE alone, with its 10000 faults, shows this trend clearly.

Levitating•1h ago
There's no need to compare to Lua directly, there many similar languages. Notably TCL, or more recently Rhai for Rust.
grimgrin•1h ago
also possibly interesting to some is the cosmopolitan libc inclusion:

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

sethammons•1h ago
/me tips fedora: "m'ruby"

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

Show HN: Ez FFmpeg – Video editing in plain English

http://npmjs.com/package/ezff
72•josharsh•2h ago•26 comments

How uv got so fast

https://nesbitt.io/2025/12/26/how-uv-got-so-fast.html
912•zdw•17h ago•302 comments

Mruby: Ruby for Embedded Systems

https://github.com/mruby/mruby
28•nateb2022•5d ago•10 comments

AI Police Reports: Year in Review

https://www.eff.org/deeplinks/2025/12/ai-police-reports-year-review
128•hn_acker•3d ago•69 comments

Langjam-Gamejam Devlog: Making a language, compiler, VM and 5 games in 52 hours

https://github.com/Syn-Nine/gar-lang/blob/main/DEVLOG.md
44•suioir•5d ago•2 comments

Always bet on text (2014)

https://graydon2.dreamwidth.org/193447.html
220•jesseduffield•11h ago•114 comments

Exe.dev

https://exe.dev/
222•achairapart•11h ago•104 comments

QNX Self-Hosted Developer Desktop

https://devblog.qnx.com/qnx-self-hosted-developer-desktop-initial-release/
153•transpute•9h ago•83 comments

Experts explore new mushroom which causes fairytale-like hallucinations

https://nhmu.utah.edu/articles/experts-explore-new-mushroom-which-causes-fairytale-hallucinations
393•astronads•17h ago•205 comments

The best things and stuff of 2025

https://blog.fogus.me/2025/12/23/the-best-things-and-stuff-of-2025.html
259•adityaathalye•3d ago•27 comments

More dynamic cronjobs

https://george.mand.is/2025/09/more-dynamic-cronjobs/
40•0928374082•4h ago•7 comments

Package managers keep using Git as a database, it never works out

https://nesbitt.io/2025/12/24/package-managers-keep-using-git-as-a-database.html
635•birdculture•22h ago•362 comments

Publishing your work increases your luck

https://github.com/readme/guides/publishing-your-work
126•magoghm•10h ago•41 comments

Pre-commit hooks are fundamentally broken

https://jyn.dev/pre-commit-hooks-are-fundamentally-broken/
66•todsacerdoti•7h ago•39 comments

Researchers develop a camera that can focus on different distances at once

https://engineering.cmu.edu/news-events/news/2025/12/19-perfect-shot.html
50•gnabgib•3d ago•16 comments

One million (small web) screenshots

https://nry.me/posts/2025-10-09/small-web-screenshots/
99•squidhunter•4d ago•9 comments

How Lewis Carroll computed determinants (2023)

https://www.johndcook.com/blog/2023/07/10/lewis-carroll-determinants/
181•tzury•15h ago•45 comments

SIMD City: Auto-Vectorisation

https://xania.org/202512/20-simd-city
42•brewmarche•6d ago•5 comments

Show HN: Witr – Explain why a process is running on your Linux system

https://github.com/pranshuparmar/witr
327•pranshuparmar•19h ago•52 comments

Some Junk Theorems in Lean

https://github.com/James-Hanson/junk-theorems-in-lean
5•saithound•3d ago•0 comments

CloudFlare is ruining the internet (for me)

https://www.slashgeek.net/2016/05/17/cloudflare-is-ruining-the-internet-for-me/
19•nomilk•1h ago•4 comments

T-Ruby is Ruby with syntax for types

https://type-ruby.github.io/
126•thunderbong•14h ago•98 comments

Toys with the highest play-time and lowest clean-up-time

https://joannabregan.substack.com/p/toys-with-the-highest-play-time-and
385•surprisetalk•14h ago•226 comments

Inside the proton, the ‘most complicated thing you could possibly imagine’

https://www.quantamagazine.org/inside-the-proton-the-most-complicated-thing-imaginable-20221019/
44•tzury•7h ago•7 comments

LearnixOS

https://www.learnix-os.com
235•gtirloni•21h ago•92 comments

Parasites plagued Roman soldiers at Hadrian's Wall

https://arstechnica.com/science/2025/12/study-roman-soldiers-battled-parasites-at-hadrians-wall/
64•sipofwater•1w ago•41 comments

Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines

https://github.com/valdanylchuk/xcc700
127•isitcontent•19h ago•22 comments

Ask HN: What did you read in 2025?

233•kwar13•21h ago•328 comments

Moravec's Paradox and the Robot Olympics

https://www.physicalintelligence.company/blog/olympics
56•beklein•3d ago•6 comments

Drawing with zero-width characters

https://zw.swerdlow.dev
106•benswerd•15h ago•30 comments