3 ms·
I think that's not quite right. Elixir is a subset (nay, it's a language within it's own right language now, the method chaining syntax is very readable) of Ru
by _joel 10y ago
I think that's not quite right.
Elixir is a subset (nay, it's a language within it's own right language now, the method chaining syntax is very readable) of Ruby running on the BEAM vm from Erlang.. not Erlang itself
Crystal is a native compilation of Ruby (or a subset at least), not Python btw.
- sotojuan 10y agoElixir is in no way a subset of Ruby.
- _joel 10y agoSure, perhaps incorrect definition, hence why I said it's a language in it's own right. It's definitely influenced by Ruby. https://www.sitepoint.com/an-interview-with-elixir-creator-jose-valim/ https://www.sitepoint.com/an-interview-with-elixir-creator-j...
- nine_k 10y agocrystal-lang.org states: Language Goals * Have a syntax similar to Ruby (but compatibility with it is not a goal) So it's more about being recognizable than being compatible.
- nine_k 10y agoIndeed, Elixir is not Erlang. But Erlang does have a few warts, both in the language syntax and in the standard library, and these warts are never going to go away, because backwards compatibility. (Erlang cannot hope to pull a Python 3 with any success.) Elixir is a new development, hopefully avoiding the downsides while not losing the upsides and the general FP-esque idea, and retaining the VM-level interoperability.
- actsasbuffoon 10y agoCrystal has a strong Ruby flavor, but it's not a subset of Ruby. For instance, Crystal has macros, which Ruby does not have. Think of Crystal as being a statically typed language that was made by people who love Ruby.