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.

Crystal Language

254 pointsby necrodomealmost 10 years ago

18 comments

davexunitalmost 10 years ago
I don&#x27;t understand why Ruby&#x27;s syntax is seen as so elegant. It&#x27;s ambiguous and a nightmare to parse.<p><a href="http:&#x2F;&#x2F;programmingisterrible.com&#x2F;post&#x2F;42432568185&#x2F;how-to-parse-ruby" rel="nofollow">http:&#x2F;&#x2F;programmingisterrible.com&#x2F;post&#x2F;42432568185&#x2F;how-to-par...</a>
评论 #9671115 未加载
评论 #9670630 未加载
评论 #9671053 未加载
评论 #9671196 未加载
评论 #9670798 未加载
评论 #9672239 未加载
kibwenalmost 10 years ago
Crystal looks like a neat language, and it&#x27;s fun to see how many entrants there are in the modern renaissance of scripting languages that compile to native code. I wish there was some more documentation about it though... for example, does the bullet point &quot;Never have to specify the type of a variable or method argument&quot; from the home page imply gradual typing as per Dart and TypeScript, or is it something else entirely?
评论 #9669455 未加载
sergiotapiaalmost 10 years ago
I&#x27;m looking for something beautiful like Ruby but fast like Go. Do you think Crystal fits this bill?<p>Also, are there packages&#x2F;libs&#x2F;gems for Crystal? What are they called? What do I google for?<p>One of the major reasons why I dumped Go is that it&#x27;s just too verbose and makes me write too much boilerplate code. I want to sort a collection and I have to write the same algorithm every single time for every single type. It&#x27;s just boring and my time could be better spent elsewhere.<p>I appreciate the feedback HN!
评论 #9670784 未加载
评论 #9670484 未加载
评论 #9670560 未加载
评论 #9669980 未加载
评论 #9670107 未加载
评论 #9671169 未加载
评论 #9670197 未加载
评论 #9670064 未加载
评论 #9670680 未加载
评论 #9670048 未加载
aikahalmost 10 years ago
I&#x27;m a go user right now, but I really want to ditch it because I&#x27;m in total disarray with the way the go language is managed and the deafness of the go team. Been looking at D,Nim and Crystal.<p>- D is neat but I&#x27;m not interested at all in unsafe stuffs and don&#x27;t want to have to debug programs or 3rd party libs that relies on that, I want a safe language.<p>- Nim looks really good, although some features like (foo_bar = FooBar ) are just disgusting<p>- While Crystal is new and libs is non existent, it feels like a good candidate for the long run. I hope it will have the same concurrency capabilities as go. Good luck with the language.
评论 #9673782 未加载
评论 #9671596 未加载
评论 #9671421 未加载
评论 #9671477 未加载
评论 #9678311 未加载
评论 #9672196 未加载
rtpgalmost 10 years ago
<a href="http:&#x2F;&#x2F;crystal-lang.org&#x2F;2013&#x2F;07&#x2F;13&#x2F;null-pointer-exception.html" rel="nofollow">http:&#x2F;&#x2F;crystal-lang.org&#x2F;2013&#x2F;07&#x2F;13&#x2F;null-pointer-exception.ht...</a><p>The Null pointer analysis is great, hope this stuff pollinates some of the more mainstream languages
评论 #9669697 未加载
MCRedalmost 10 years ago
I love that we&#x27;re getting new languages lately, but almost all of them seem to be ignore the significant new requirement of our age: parallelism &amp; concurrency.<p>Specifically, you need lightweight processes and no-shared-memroy architecture.<p>While the number of cores on a machine is remaining relatively low, the number of machines in a system are going up.<p>Erlang got this right and build a lot of infrastructure around it (OTP) and while you can&#x27;t replicate that infrastructure quickly you can get the fundamentals right.<p>Simply getting this wrong rules out a lot of languages from consideration (because why learn a new language that is going to be obsolete, or only chosen by people who don&#x27;t understand how to build systems?)<p>It&#x27;s a lot easier to get this in when you&#x27;re new and can make major changes to the language. Once you start to solidify it would break things- this is why Go&#x27;s fake concurrency is a tragedy and a huge missed opportunity.
评论 #9669828 未加载
评论 #9670275 未加载
评论 #9669760 未加载
评论 #9670006 未加载
评论 #9669638 未加载
评论 #9670113 未加载
评论 #9669689 未加载
zeeonealmost 10 years ago
Just curious, why Crystal? It looks just like Ruby. What problem(s) are you addressing with Crystal?
评论 #9669688 未加载
评论 #9669669 未加载
singularity2001almost 10 years ago
Awesome! Did you consider synchronizing your syntax with Mirah &#x2F; typed ruby? Also what&#x27;s your opinion on the Vala&#x2F;Gini toolchain?
_RPMalmost 10 years ago
How long did it take to become self hosting? I checked the first tag on GitHub and it was still implemented in Crystal. Did you originally implement it in C or another language?
评论 #9669461 未加载
评论 #9669458 未加载
评论 #9669463 未加载
评论 #9669464 未加载
trengrjalmost 10 years ago
I&#x27;ve been looking at the benchmarks <a href="https:&#x2F;&#x2F;github.com&#x2F;kostya&#x2F;benchmarks" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kostya&#x2F;benchmarks</a> and am pleasantly surprised about the speed. It definitely smokes Ruby, but also is usually faster than Go. I know that all benchmarks are relative but Crystal seems a great language from a performance viewpoint.
评论 #9669754 未加载
agluszakalmost 10 years ago
Wow! Ruby was the first programming language I learnt and I still love it. Crystal is going to add features I&#x27;ve always missed: static typing and compilation. Thank you guys, it will be awesome!
评论 #9670004 未加载
AKiferalmost 10 years ago
At first look, I like it. Would be great if we can build a ruby-to-crystal bridge so all the ruby goodness can run on top of it without requiring programmers to learn a whole new language. No GIL, faster than ruby but syntactically close enough, the dream.
评论 #9669983 未加载
Nob-suzalmost 10 years ago
I made a Crystal Language Web&#x2F;Git information collection pages. <a href="https:&#x2F;&#x2F;github.com&#x2F;nob-suz&#x2F;crystal&#x2F;wiki&#x2F;1.-Read-First-%28general%29" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nob-suz&#x2F;crystal&#x2F;wiki&#x2F;1.-Read-First-%28gen...</a><p>See Wiki 1. to 9. If you enjoy your first try for Crystal Language, it&#x27;s nice.
zero_iqalmost 10 years ago
Wow, I started designing a language called Crystal in the 90s, which a) looks similar to this, and b) I&#x27;m pretty sure I even bought the domain crystal-lang.org at one point, but I never did anything with it! I had a very similar logo too :)
keypusheralmost 10 years ago
Python is to Nim as Ruby is to Crystal.
评论 #9670056 未加载
singularity2001almost 10 years ago
Now someone convince Matz to reimplement Ruby in crystal, add optional typing to CRuby, and you have won big time.
评论 #9670025 未加载
评论 #9670187 未加载
westoquealmost 10 years ago
Now. I just can&#x27;t wait till Rails or something similar gets ported to Crystal.
elcctalmost 10 years ago
Please don&#x27;t be inspired by Ruby, please... aaaah god dammit!