TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Flirting with Crystal, a Rubyist Perspective

3 pointsby willlllalmost 9 years ago

1 comment

MrBraalmost 9 years ago
Quick summary:<p>Although Crystal is single threaded, it implements the reactor pattern (like Node.js), so it can be useful to build highly concurrent applications with the advantage that appears to be faster that Node.js (small benchmarks) and has a nicer syntax than JS, Go or Rust.<p>Crystal&#x27;s aim is not being a faster fully compatible Ruby runtime, it just wants to leverage Ruby&#x27;s nice syntax and standard lib in its own world. It does not support any idea of reflection and consequently meta-programming, but with Macros (and more effort), you could go somewhat close to it.<p>Also, if you are not interested in replacing Ruby with Crystal completely, you could just use it for some CPU intensive code, writing almost the same Ruby code but as a compiled native extension.<p>Crystal does not support Windows yet.