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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Overview of the Crystal language

147 点作者 sdogruyol超过 7 年前

10 条评论

RX14超过 7 年前
The consensus in this thread is that Crystal has lost a lot of steam recently and little is being done. In fact, it&#x27;s been nearly 6 months since the last release. As a member of the core team, I&#x27;ll be honest: this is correct.<p>Manas, Crystal&#x27;s main commercial backer has had a very tough year and has been unable to donate as much manpower to the project as previous years. The non-manas members of the core team have had difficulty finding time too. This has been a low point in the project, but it&#x27;s very possible that 2018 will be a different story. Development is picking up right now, extremely basic windows support is just a few days from being merged into master, and the 0.24.1 release is imminent. There will be a blog post regarding this on crystal-lang.org soon.
评论 #15962974 未加载
评论 #15961160 未加载
评论 #15965537 未加载
eatonphil超过 7 年前
Crystal seems like a great high-level language and alternative to Ruby, but the biggest blocker for me using it more generally is the lack of multi-threading support. There is WIP support for threading but it has not been committed. Moreover the Crystal developers either don&#x27;t do a great job of updating their multi-threading roadmap [0] or work on multi-threading has died off. (I assume it is the latter because the thread-support branch has not gotten any commits in 10 months [1].) Ultimately if I wanted the high-level aspects of Ruby or Python and wanted more performance and great thread support I&#x27;d probably go with Elixir (even taking into consideration BEAM weirdness).<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal&#x2F;wiki&#x2F;Threads-support" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal&#x2F;wiki&#x2F;Threads-support</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal&#x2F;tree&#x2F;thread-support" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal&#x2F;tree&#x2F;thread-support</a>
评论 #15960865 未加载
评论 #15960587 未加载
评论 #15962332 未加载
willcodeforfoo超过 7 年前
Worth nothing: Thoughtbot is working on a web framework for Crystal, called Lucky: <a href="https:&#x2F;&#x2F;luckyframework.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;luckyframework.org&#x2F;</a><p>It looks quite promising, but as others (including core team members) have noted, development on Crystal seems to be losing steam. It&#x27;s tempting but seems like a bit of a gamble to pick Crystal for anything serious, especially with great new languages like Elixir and Go gaining traction.
评论 #15965582 未加载
sdogruyol超过 7 年前
Crystal is a Ruby inspired compiled language, allowing it to run blazingly fast with a very low memory footprint. It uses LLVM for emitting native code, thus making use of all the optimisations built into the toolchain.<p>Website: <a href="https:&#x2F;&#x2F;crystal-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crystal-lang.org&#x2F;</a> Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal</a>
评论 #15959691 未加载
pritambarhate超过 7 年前
I really want a nice OO language with Garbage Collector &#x2F; ARC that compiles to native code on Windows, Mac and Linux. Swift is good, but Windows story is weak.<p>I am personally waiting for Kotlin Native to mature. Until that time Go it is.
评论 #15959684 未加载
评论 #15959845 未加载
评论 #15960495 未加载
评论 #15962364 未加载
评论 #15960084 未加载
评论 #15961445 未加载
评论 #15959734 未加载
评论 #15959677 未加载
评论 #15968768 未加载
skocznymroczny超过 7 年前
Does it support Windows yet?
评论 #15959395 未加载
isaiahg超过 7 年前
Ruby like syntax huh. Man I wish the Python syntax would catch on more. Most clean and readable code I&#x27;ve ever laid my eyes on. Wish I could use it but it&#x27;s just too slow for the stuff I do. What would I give for a language at least the speed Java but with a Python like syntax.
评论 #15960849 未加载
评论 #15962672 未加载
评论 #15960654 未加载
cyber1超过 7 年前
Nice language. Is someone use it in production?
评论 #15958710 未加载
didibus超过 7 年前
I don&#x27;t know why, but off all languages I&#x27;ve tried, Ruby&#x27;s syntax I just hate. I can&#x27;t do it, dunno why. That&#x27;s what turns me off of crystal also.
评论 #15960012 未加载
nnq超过 7 年前
&gt; In Crystal, as in Ruby, everything is an object. [...] When you write Crystal code, most of the time, you write classes.<p>Why, God, why?! Really, OOP is a great way of structuring lots of types of code (not all!). But I don&#x27;t think it really helps anyone to treat everything as an object. Some <i>things</i> are not <i>objects</i> they just are whatever they are. A <i>function</i> is just that, a <i>function</i>. If I have to call a `.call` method on a &quot;function&quot; as in ruby, then that&#x27;s simply not a function anymore. And... <i>it&#x27;s not an object either semantically,</i> because objects are about things that can receive and send multiple messages and sometimes encapsulate state... and that&#x27;s not how <i>anyone</i> thinks about <i>functions!</i><p>By making <i>everything</i> be an object, you actually f up the concept of &quot;object&quot; itself...<p>I like Ruby&#x27;s elegance, but every time I see the &quot;OOP at the core&quot; part, I suddenly get more love for Python and Javascript for at least getting this right.
评论 #15959669 未加载
评论 #15959665 未加载
评论 #15959725 未加载
评论 #15959810 未加载
评论 #15960670 未加载
评论 #15959686 未加载
评论 #15967320 未加载
评论 #15967208 未加载