Remix.run Logo
paulddraper 13 hours ago

From the link:

> Key features of Lily:

> Built-in template mode

> Embed/extend in C

> Single-inheritance classes

> Exceptions

> Generics

> Algebraic data types (with Option and Result predefined).

andsoitis 13 hours ago | parent [-]

That’s what. Not why.

nine_k 12 hours ago | parent | next [-]

The why: because Lua, Python, JavaScript, Janet, etc lack many or all these features. And each of these features is known to make life easier for a human programmer.

dismalaf 11 hours ago | parent [-]

Looking through that list of features, Ruby (the dynamic language I know best) has all but 1 built-in (and the other can be added with Gems). I'm guessing Python probably has them all too (but I don't know Python that well). They're pretty common. So the why still isn't clear.

nine_k 10 hours ago | parent [-]

Is Ruby easy to embed in a C program?

debugnik 8 hours ago | parent | next [-]

RPG Maker used to embed Ruby before it was cool (and before they switched to JS for web support).

bandrami 10 hours ago | parent | prev | next [-]

That was originally the point of Ruby

dismalaf 10 hours ago | parent | prev | next [-]

Yes -> https://mruby.org

It's also incredibly easy to extend the main Ruby implementation with C, C++, Odin, Zig, Rust, Fortran, etc... Literally a few lines.

vidarh 5 hours ago | parent [-]

The main Ruby implementation is also fairly easy to embed. It's just not easy to embed multiple MRI ruby instances in a single application, and it's also a lot bigger than mruby.

10 hours ago | parent | prev [-]
[deleted]
paulddraper 12 hours ago | parent | prev [-]

The reason it exists is to provide those features when programming computers.