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.

The future of the Crystal language

122 pointsby cyloover 9 years ago

7 comments

0xFFCover 9 years ago
I don&#x27;t know it is only me or its apply to others too, My own field is OS and I love it. But recently I am literally fascinated by whats going on in &quot;Programming Language&quot; field. Rust, Go, Nim, Julia, Haskell, Ocaml, Racket, Clojure etc (though these are not scientific research in PL community, but we can claim these are mostly result of scientific research). I wasn&#x27;t aware of crystal . I literally Love them all and if I were going to an abandoned island for rest of my life , my only wish would have been : &quot;let me play with all of these for rest of my life&quot;<p>BTW : I looked at crystal syntax (I am talking about only syntax). Syntax designed extremely clear. I would say (my opinion, in short time I had to investigate crystal) maybe clear&#x27;er that python.
vinceguidryover 9 years ago
The real reason they couldn&#x27;t find anything when Googling the language in the future is because of the inconvenient naming. Every time I search for Crystal, I have to pick out the results from SAP Crystal Reports.<p>I wish more people took this aspect of their projects seriously. You don&#x27;t need a short domain name, but your project does at least need to be Googlable.
评论 #10806600 未加载
评论 #10806779 未加载
评论 #10806561 未加载
评论 #10806652 未加载
评论 #10806966 未加载
sdogruyolover 9 years ago
If you&#x27;re a web dev and want to build an API be sure to check out Kemal: <a href="http:&#x2F;&#x2F;serdardogruyol.com&#x2F;kemal&#x2F;" rel="nofollow">http:&#x2F;&#x2F;serdardogruyol.com&#x2F;kemal&#x2F;</a>
评论 #10807419 未加载
13of40over 9 years ago
&gt; Note that the above “if” starts with “if instance variables types remain the same”. But how can we know that? The problem is that the compiler determines their<p>&gt; type by traversing the program, instantiating methods, and checking what gets assigned to them. So we can’t really reuse the cache because we can’t know the final<p>&gt; types until we type the whole program! It’s a chicken and egg problem.&quot;<p>Maybe I&#x27;m oversimplifying it, but suppose you compiled a statement like...<p>a++<p>...into something like...<p>if a is an integer (which would presumably be something fast like &quot;CMP [RAX],123; JNZ NotAnInteger&quot;) do &quot;INC [RAX+8]&quot;, otherwise do more expensive stuff to look up the actual type and a function to use as a ++ operator?<p>As long as the programmer sticks to the same type, the compiled expression runs fast, and if they switch types midstream, it still runs, albeit with a performance hit.
评论 #10806294 未加载
评论 #10809084 未加载
评论 #10807530 未加载
评论 #10810172 未加载
dutchbritover 9 years ago
Taken from Github on the &quot;why?&quot;<p>We love Ruby&#x27;s efficiency for writing code.<p>We love C&#x27;s efficiency for running code.<p>We want the best of both worlds.<p>We want the compiler to understand what we mean without having to specify types everywhere.<p>We want full OOP.
评论 #10806619 未加载
评论 #10806583 未加载
评论 #10806456 未加载
thomasflover 9 years ago
If I had to optimize parts of a ruby project, I think it would be much better to port the code to crystal than C or Go.
69_years_andover 9 years ago
Only just had a quick peep and play and I like it - looking forward to using Crystal more often on a tooling level.<p>Nice work to date...