Crystal (programming language): Difference between revisions

Content deleted Content added
No edit summary
BG19bot (talk | contribs)
m WP:CHECKWIKI error fix for #64. Do general fixes if a problem exists. - using AWB (11876)
Line 2:
 
==Description==
Although resembling the Ruby programming language in syntax, Crystal compiles to much more efficient native code using an [[LLVM|LLVM]] backend, at the cost of disallowing the dynamic aspects of Ruby. Recent benchmarks have demonstrated that Crystal has a performance broadly similar to [[C (programming language)|C]] for a wide range of computing tasks.<ref>[https://github.com/kostya/benchmarks Some benchmarks of different languages]</ref><ref>[https://github.com/kostya/crystal-benchmarks-game Crystal implementations for The Computer Language Benchmarks Game]</ref><ref>[https://github.com/smarr/are-we-fast-yet/tree/master/benchmarks/Crystal Are We Fast Yet?]</ref> The language has automated garbage collection and currently offers a [[Boehm garbage collector|Boehm collector]]. Crystal possesses a macro system and supports generics and method and operator overloading.
 
== Examples ==
Line 13:
</syntaxhighlight>
 
Or using an [[object-oriented programming|object-oriented programming]] style:
 
<syntaxhighlight lang="ruby">
Line 43:
server.listen
</syntaxhighlight>
 
==References==
{{Reflist}}
Line 49 ⟶ 50:
* [http://crystal-lang.org/ Crystal official site]
* [https://github.com/manastech/crystal Crystal source code]
 
[[Category:Object-oriented programming languages]]
 
 
{{Software-stub}}
 
 
 
[[Category:Object-oriented programming languages]]