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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Crystal in Production

2 点作者 sdogruyol超过 2 年前

1 comment

Normille超过 2 年前
Said it before and I&#x27;ll say it again:<p>I love the look of Crystal [I&#x27;ve always been a fan of Ruby&#x27;s syntax] but I&#x27;m completely put off by:<p>1: Lack of decent tooling [C&#x27;mon. Any language which doesn&#x27;t have a full-featured VScod[e&#x2F;ium] extension by now isn&#x27;t going to attract many people who want a modern IDE to work in!]<p>2: Unfriendly error mesages. When I have dabbled with Crystal in the past, I&#x27;ve nearly always had to look up error message to find what they actually mean, in terms those unfamiliar with the inner nuts &amp; bolts of the language would understand.<p>It may be [deservedly?] much maligned. But I think V sets the bar for error messages. The V compiler tells you what&#x27;s wrong in plain language and often suggests ways you could fix it. Crystal could learn a lot from V here.<p>3: Compile times are still far too slow. Rust is generally criticised for having glacial compile times. But has the &quot;if it compiles it will be safe&quot; defence as mitigation. Crystal&#x27;s compile times aren&#x27;t that bad. But they&#x27;re a lot slower than [for example] Go and V.<p>No.3 I could put up with, if no.s 1 and 2 were given some love. But, overall I&#x27;m just not attracted to investing time in learning Crystal, while it has these down sides.