![]() ![]() On the website, the same script takes only around 0.3 seconds ( Figure 2). Ruby 1.9.3 takes around six seconds, or around four seconds for JRuby. From the time measured at the start and end of the program, a simple subtraction gives you the execution time. It includes a loop containing a multiplication. The script in Figure 1 runs the Ruby code from Listing 1 as a simple benchmark. ![]() Newcomers can take their first steps without installing anything by entering code into a simple web-based Crystal editor and compiler. You can look up all of the language's functions in a GitBook. As of this writing, some 100 volunteers are pushing forward with the project on GitHub. The driving force behind the development of Crystal in recent years has been the Argentine software consulting company Manas, which is where Borenszweig works. In the fall of 2012, Argentinian Ary Borenszweig implemented his Crystal project as a "programming language for people and computers." This sentence probably best expresses what this language sets out to combine: the simplicity and elegance of a Ruby-esque language syntax with the efficiency and speed benefits of compiled languages such as C. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |