Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If mruby can make static ruby then that is actually kinda great, I didn't knew that.

I was thinking more of in terms of performance for some similar developer experience

Pardon me but isn't crystal OOP? i feel like it was because I was introduced to crystal lang via some youtuber some long time ago and the comments said that they didn't use because it was OOP

Also if mruby is so great (which it sounds here), then surely most ruby contributers can migrate over to mruby if that has these gains. I think mruby compiles to C as the intermediate right? So there are definitely some limitations as compared to being a interpreted langauge but that can be somewhat mitigated, no?

I am not a ruby expert or a crystal expert. Because If I was, I would be telling you your future (a slight pun ofc of being a future teller but yes I don't know much about it except the puts syntax or that 100 seconds video from fireship which gives me 10 year experience in ruby :p )



Crystal is object-oriented, but isn't a pure object system. In a pure object system, literally everything is, or can be turned into an object. Smalltalk is the only other example of a language family that offers a pure object system.

With a pure object system everything is accessible by the system at runtime. It's ruby's biggest strength, but also the superpowers it grants aren't always used for good, which is why a lot of coders hate working in it. I only code for myself, my coding career is behind me, so I don't have to worry about other people's code.

Mruby's big downside is precisely that it's compiled, so the library base available is very small, and there's not much point in building on it, though a few projects have, such as DragonRuby. It also doesn't have a pure object system. Ruby has thousands of gems, mruby dozens, and you can see them all on this page: https://mruby.org/libraries/

https://dragonruby.org/

Static typing is also available in ruby but I understand it's clunky.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: