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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Crystal in Production: Diploid

246 点作者 sdogruyol超过 7 年前

26 条评论

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>I&#x27;ve been using Crystal for more than 2 years have some projects in production. Can&#x27;t wait for 1.0 :)
评论 #15574871 未加载
评论 #15575522 未加载
评论 #15575983 未加载
interfixus超过 7 年前
I have dedicated this very weekend to digging into Crystal. Uncanny coincidence seeing it popping up here, today of all days.<p>It is a tremendously nice looking language - and I say this as a pythonesque guy who never wrote one line of Ruby. The feeling I get from community and projects is that it&#x27;s a very up-and-coming thing, about to take off in a major way. There is just too much enthusiasm and too many things done right for Crystal not to earn some solid share within a very foreseeable future.
评论 #15575067 未加载
评论 #15575059 未加载
curtis超过 7 年前
Crystal reminded me of Mirah [1], a Ruby-like programming language which is statically typed but relies heavily on type inference in order to compile efficiently to JVM bytecode, while retaining the appearance of being a dynamically typed language.<p>(I&#x27;ve got no real point here other than to say I had a strong feeling of deja vu while reading about Crystal.)<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Mirah_(programming_language)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Mirah_(programming_language)</a>
评论 #15576002 未加载
piyushpr134超过 7 年前
Crystal is one of the most exciting new languages out there. I have been using it for my one off tasks at Ola and it works pretty well. It is huge plus point that you have safety harness of statically typed languages and speed comparable to java and scala(unscientific benchmark here <a href="https:&#x2F;&#x2F;github.com&#x2F;kostya&#x2F;benchmarks" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kostya&#x2F;benchmarks</a>)
marcrosoft超过 7 年前
&gt; Features that we take for granted in Ruby or other languages, are not available in Go. Examples include operator overloading or keyword extensibility, as well as true OOP.<p>These are literally the top reasons why I love Go. To each their own?
WJW超过 7 年前
Crystal is a super cool project and doing websockets with Kemal (Crystals Sinatra equivalent) was one of the easiest ways of hosting websockets I&#x27;ve encountered so far.<p>That said, I&#x27;m eagerly waiting for true paralellism support since the use case we have in mind would greatly benefit from that. Some of the testing tools are also not quite as polished as Rspec (yet).
评论 #15574874 未加载
评论 #15574870 未加载
cyberferret超过 7 年前
I&#x27;ve been using Crystal for only a few months, but impressed with its speed and low memory footprint. Starting to build some small services with it now, but using Kemal or the Amber framework, I can see some medium sized projects coming out of it soon.<p>Was a cinch to swap over to it from Ruby. It is a little fussier with type definitions, but I guess that is to be understandable with a compiled system.<p>The third party ecosystem is still a little thin on the ground, or immature, and I hope it will grow. The Crystal community has also been really friendly and responsive. The couple of questions I have asked on Reddit or SO have been answered quickly and with lots of useful info.
cyberferret超过 7 年前
Here is another (sort of) real world app I wrote using Crystal and Kemal - a real time race telemetry display app for an F1 racing game [Blog post link] - <a href="http:&#x2F;&#x2F;devan.blaze.com.au&#x2F;blog&#x2F;2017&#x2F;10&#x2F;28&#x2F;racing-along-building-a-telemetry-system-using-crystal-rethinkdb" rel="nofollow">http:&#x2F;&#x2F;devan.blaze.com.au&#x2F;blog&#x2F;2017&#x2F;10&#x2F;28&#x2F;racing-along-build...</a>
humanrebar超过 7 年前
&gt; With Crystal, data scientists could have the ease-of-use of Python&#x2F;Ruby combined with the performance of C.<p>Big if true.<p>Are there any benchmarks to back up this claim? There is some mention of experiments, but I&#x27;m not seeing any numbers or code.
评论 #15575111 未加载
评论 #15574943 未加载
maxpert超过 7 年前
Still waiting for v1; Ruby being my fav in terms of syntax, Crystal is really going to lift my experience in terms of syntax. This interview describes low traffic usage, what I am looking for is high traffic usage scenario and how crystal’s GC behaves running for longer periods of time.
评论 #15577276 未加载
评论 #15575763 未加载
blunte超过 7 年前
&quot;...OOP. Moving from Ruby to Go sometimes feels like ignoring 20 years of progress made in language design.&quot;<p>If OOP is so important to them, why did they bother including Elixir in their list of possibilities?<p>Also, given their problem domain, I&#x27;m doubtful of the fit of OOP (vs functional). But regarding Crystal, it is nice to see a potential performant Ruby replacement.
评论 #15575068 未加载
mooreds超过 7 年前
As mentioned in the article, library support in Crystal is growing but still far from complete. This GitHub repo might be a good place to start searching for useful shards: <a href="https:&#x2F;&#x2F;github.com&#x2F;veelenga&#x2F;awesome-crystal&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;veelenga&#x2F;awesome-crystal&#x2F;blob&#x2F;master&#x2F;READ...</a>
评论 #15575280 未加载
faitswulff超过 7 年前
Is there an easy way to get interop working between crystal and ruby? It would be nice to be able to simply require a crystal module that calls out to a compiled binary in the middle of my Ruby code.
评论 #15575379 未加载
评论 #15576237 未加载
评论 #15575345 未加载
vram22超过 7 年前
Crystal looks interesting based on the comments in this thread by those using it. Anyone know why it seems to not be available for Windows (without WSL)? Does it have some POSIX dependencies?
评论 #15575679 未加载
singularity2001超过 7 年前
I love crystal yet it puzzles me how the heroic developers can make rapid progress when each compilation of the compiler takes half a minute.
tambourine_man超过 7 年前
How is the compile time on larger projects?
评论 #15577265 未加载
faaq超过 7 年前
Crystal is very good language, seems very promising<p>Waiting for parallelism &amp; Windows support +1
todd3834超过 7 年前
I’ve always wondered why Crystal doesn’t get more attention.
评论 #15576513 未加载
quickthrower2超过 7 年前
That&#x27;s a nice looking language. The inferred type system on an procedual &#x2F; OO language with protection against nulls is something I had wished existed. I didn&#x27;t know it had been done.
评论 #15576698 未加载
hetman超过 7 年前
I&#x27;d be curious to know what the compile times are like? Does ever compile run recompile the entire code base or is there some kind of incremental compilation?
dsign超过 7 年前
Is there a place with the distribution of the number of developers per programming language? I have the feeling it has a very long tail.
lobster_johnson超过 7 年前
I&#x27;m surprised Swift was outperformed by Ruby in their testing. I wonder what their benchmarking methodology was.
gtt超过 7 年前
On a related note, how well Crystal is suited for number-crunching?
cutler超过 7 年前
Crystal is currently no faster than Ruby when parsing a 19Mb Apache log file on OS X Sierra:<p><pre><code> fh = File.open(&quot;logs1.txt&quot;) fh.each_line {|x| puts x if (&#x2F;\b\w{15}\b&#x2F;.match x) } fh.close</code></pre>
评论 #15578505 未加载
评论 #15581551 未加载
eXpl0it3r超过 7 年前
Having no idea what Crystal is, my mind replaced it with crystal meth and it made the introduction text a lot more entertaining.
m3kw9超过 7 年前
I thought this is a new type of drug