TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Parallelism in Crystal

139 点作者 sdogruyol超过 5 年前

9 条评论

jackcodes超过 5 年前
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_sharan超过 5 年前
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_Fegg超过 5 年前
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.
faitswulff超过 5 年前
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.
rarecoil超过 5 年前
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.
maitredusoi超过 5 年前
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
squarefoot超过 5 年前
Waiting badly for an installable ARM port; small boards would benefit a lot from it. Is this planned in the future?
aidenn0超过 5 年前
I get why N=2 is slower than single-threaded, but why is N=4 more than twice as fast as N=2?
评论 #20901061 未加载
DSingularity超过 5 年前
Why Crystal over C++?
评论 #20901127 未加载
评论 #20900919 未加载
评论 #20900781 未加载
评论 #20903035 未加载
评论 #20901639 未加载