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.

Parallelism in Crystal

139 pointsby sdogruyolover 5 years ago

9 comments

jackcodesover 5 years ago
I’ve been using Crystal on-and-off for a couple of years and have started to use it as my primary language for most non-enterprise work. The current web-app I’m building is primarily written in Crystal and it has been an absolute joy to use, and even if I don’t strictly need parallelism in this project I’m glad they’re pushing though with the big language changes.<p>It’s been so successful at everything I’ve needed it for, I wouldn’t consider going back to either Ruby or similar interpreted languages, regardless whether it’s a little CLI helper or a larger monolith server app. I’ve found my ability to allow the compiler to catch bugs incredibly reliable without feeling bogged down with types. I hadn’t worked much with typed languages previously and as a Ruby developer it allowed me to ‘learn’ types without even feeling like I was doing any learning.<p>It’s still somewhat of an obscure language so I thought it would be helpful to describe my experiences with it.
评论 #20901787 未加载
评论 #20903802 未加载
rishav_sharanover 5 years ago
I have been using crystal+ vanilla js for my pet project and the sheer joy i get from using this language is something else.<p>2019 has been a good year for crystal. Basic multithreading is in. Windows support is making good headway. I am optimistic that a working windows compiler would be out by end of year.<p>The last major dragon for crystal to slay would be the compilation time. It still feels unreasonably high. Hopefully that would be a major focus of 2020
评论 #20903798 未加载
Doctor_Feggover 5 years ago
Delighted with this. I&#x27;ve been working on and off on a shortest-path routing engine in Crystal. Parallelism means I can get performance on a par with C++ even on large graphs, but with the simplicity and readability of Ruby. Full marks to the Crystal devs for tackling the no 1 feature request.
faitswulffover 5 years ago
Aside, but is there a good class or resource for learning about parallelism in computing? I&#x27;m reading the blog post and vaguely recalling differences between threading and forking. I regularly encounter the same concepts over and over but they haven&#x27;t been sticking. A hands-on project would be great.
rarecoilover 5 years ago
I just learned about Crystal a couple of weeks ago and it&#x27;s completely subsumed every new personal project I have into its domain. I have long missed Ruby&#x27;s syntax and human-friendly feel, but began to prefer the speed I could find in other languages like Go.
maitredusoiover 5 years ago
Until crystal get a REPL I would stick to ruby &#x2F; rails for POC and MVP, then scaling problem &quot;could&quot; arose, so translate it to amber or lucky (Web Framework in crystal) could solve the issue. About Type and Casting Nil, gem like sorbet should be a good replacement in ruby
squarefootover 5 years ago
Waiting badly for an installable ARM port; small boards would benefit a lot from it. Is this planned in the future?
aidenn0over 5 years ago
I get why N=2 is slower than single-threaded, but why is N=4 more than twice as fast as N=2?
评论 #20901061 未加载
DSingularityover 5 years ago
Why Crystal over C++?
评论 #20901127 未加载
评论 #20900919 未加载
评论 #20900781 未加载
评论 #20903035 未加载
评论 #20901639 未加载