|
|
|
|
|
by chrisseaton
4033 days ago
|
|
People talk about how Crystal's performance is better because it's statically compiled and removes Ruby's dynamic features, but I'm not sure static compilation is the best way to achieve performance, and I don't think the dynamic features need to damage performance. For example, JRuby+Truffle runs Crystal's own sample programs around twice as fast as Crystal does, without static compilation, and while still supporting all the metaprogramming and dynamic features of Ruby such as monkey patching, send, method_missing, set_trace_func, ObjectSpace etc. https://gist.github.com/chrisseaton/91c7cbf8f6f4f6ea44bb However Crystal does start faster, and I'm sure it has lower overhead. |
|